Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug: NotFoundException: Cannot GET /dashboarddashboard/ #8443

Closed
1 task done
schobernoise opened this issue May 9, 2024 · 2 comments
Closed
1 task done

馃悰 Bug: NotFoundException: Cannot GET /dashboarddashboard/ #8443

schobernoise opened this issue May 9, 2024 · 2 comments
Labels
馃憢 For : Community or Good First Issue Targeting community to contribute

Comments

@schobernoise
Copy link

Please confirm if bug report does NOT exist already ?

  • I confirm there is no existing issue for this

Steps to reproduce ?

I cloned the github repo and cd'd into mysql. Then I edited the docker-compose.yml file to look somewhat like this:

version: "2.1"
services:
  nocodb:
    depends_on:
      root_db:
        condition: service_healthy
    environment:
      NC_DB: "mysql2://root_db:3306?u=noco&p=password&d=root_db"
      NC_PUBLIC_URL: https://example.com
      VIRTUAL_HOST: noco.example.com
    image: "nocodb/nocodb:latest"
    ports:
      - "8080:8080"
    restart: always
    volumes:
      - "nc_data:/usr/app/data"
  root_db:
    environment:
      MYSQL_DATABASE: nocodb
      MYSQL_PASSWORD: H4PnLDfx7gdfdgdfgdfgyLuUEpgfgfDABh
      MYSQL_ROOT_PASSWORD: gA9Wksdfsdfsdfsdf6PJ%ghjjj!u
      MYSQL_USER: nocodb
    healthcheck:
      retries: 10
      test:
        - CMD
        - mysqladmin
        - ping
        - "-h"
        - localhost
      timeout: 20s
    image: "mysql:8.3.0"
    restart: always
    volumes:
      - "db_data:/var/lib/mysql"
#    below line shows how to change charset and collation
#    uncomment it if necessary
#    command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
volumes:
  db_data: {}
  nc_data: {}

I configured my apache virtual host like this:

<VirtualHost *:80>
    ServerName noco.example.com
ServerAdmin mail@example.com
    ServerAlias www.noco.example.com
	# DocumentRoot /var/www/noco

    ProxyRequests Off
        <Proxy *>
          Order deny,allow
          Allow from all
        </Proxy>


    RewriteEngine On
    # auto redirect HTTP to HTTPS
   Redirect permanent / https://noco.example.com/

	# auto redirect www to non-www
    <If "%{HTTP_HOST} == 'www.noco.example.com'">
        Redirect permanent / https://noco.example.com/
    </If>

     ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        <IfModule mod_dir.c>
            DirectoryIndex index.php index.pl index.cgi index.html index.xhtml index.htm
        </IfModule>

       	<Proxy *>
        	Require all granted
    	</Proxy>

	
	ProxyPreserveHost on
    	ProxyPass / http://127.0.0.1:8080/
    	ProxyPassReverse / http://127.0.0.1:8080/

        <Location />
          Order allow,deny
          Allow from all
        </Location>

</VirtualHost>


<VirtualHost *:443>
	ServerAdmin reach@fabianschober.com
	ServerName noco.example.com
	ServerAlias www.noco.example.com
    ServerAdmin reach@fabianschober.com

    ProxyRequests Off
        <Proxy *>
          Order deny,allow
          Allow from all
        </Proxy>


    # auto redirect www to non-www
    <If "%{HTTP_HOST} == 'www.noco.example.com'">
        Redirect permanent / https://noco.example.com/
    </If>

    	# log files
    	ErrorLog /var/log/apache2/noco-error.log
    	CustomLog /var/log/apache2/noco-access.log combined

    	SSLEngine On
    	SSLCertificateFile /etc/letsencrypt/live/noco.example.com/fullchain.pem
    	SSLCertificateKeyFile /etc/letsencrypt/live/noco.example.com/privkey.pem

    <Location />
          Order allow,deny
          Allow from all
        </Location>

    	ProxyPreserveHost on
    	ProxyPass / http://127.0.0.1:8080/
    	ProxyPassReverse / http://127.0.0.1:8080/


</VirtualHost>

I made sure this is working fine.

Then I ran docker compose up -d, docker ps -a and docker logs <container-id>. At this piint, everything was green in the logs. Then I tried to access the site, and I always just get this error.

Desired Behavior

I should be able to access nocodb via the proxy.

Project Details

NocoDB used with Docker, mysql variant, see details in the code above.

Attachments

image
image

@o1lab o1lab added the 馃憢 For : Community or Good First Issue Targeting community to contribute label May 10, 2024
@schobernoise
Copy link
Author

Short update: I just tinkered with npx-create-nocodb-app. The Node.js application is a dependency hell, but the docker option would work fine, except I am running in the same issue. I suspect something wrong with my apache configuration. Will look into it some more these days.

@schobernoise
Copy link
Author

For anyone coming here in the future:

I had mistakenly loaded an apache configuration file, which looked like this:

```

ProxyPreserveHost on
ProxyPass / http://127.0.0.1:8080/dashboard
ProxyPassReverse / http://127.0.0.1:8080/dashboard


This caused the problem. Everything working fine now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
馃憢 For : Community or Good First Issue Targeting community to contribute
Projects
None yet
Development

No branches or pull requests

2 participants