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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page not found after running docker compose up on rancher desktop #322

Open
liebsoer opened this issue Apr 20, 2024 · 5 comments
Open

Page not found after running docker compose up on rancher desktop #322

liebsoer opened this issue Apr 20, 2024 · 5 comments

Comments

@liebsoer
Copy link

liebsoer commented Apr 20, 2024

Hi :)

I cloned the repository, ran ./bootstrap.sh groupfolders inside the repository and started everything with docker compose up -d nextcloud. Everything looks fine so far. I got no errors and can see all container up and running.

When I try to access nextcloud.local, I get a 404 Page not found. Starting nextcloud 2 with docker compose up -d nextcloud2 I get the same issue using nextcloud.local and/or nextcloud2.local. When I then use nextcloud2.local:8211, I get an login screen. I assume its because a port is exposed for nextcloud2. The PORTBASE is defined as 821 in the .env file. The DOCKER_SUBNET in .env is 192.168.21.0/24.

I haven't modified any config file in the repo.

If the content of any of the files is needed for further analysis or any other information, please say what is needed and I will post it :)

As I am not that deep into Docker Compose and Rancher Desktop, I can't find a solution to make it work. Also asking ChatGPT hasn't helped me.

What can I do or what do I have to change in the config files to make it work?

P.S. Using the standalone version (run --rm -p 8080:80 ghcr.io/juliushaertl/nextcloud-dev-php83:latest) works fine.

@juliushaertl
Copy link
Owner

Using the docker-compose setup there wil be a proxy container started that distributes requests bassed on the hostname (e.g. nextcloud.local). You could check with docker-compose logs -f proxy if that is actually handling the 404 response. If not, do you maybe have another webserver running on port 80 on your machine?

@liebsoer
Copy link
Author

It looks like rancher desktop is running ssh on port 80. For that I don't see the proxy handling the request.

Wenn I set the env variable PROXY_PORT_HTTP=8880 I can see that the proxy handling the request but the browser is redirecting from nextcloud.local:8880 to http://nextcloud.local/index.php/login 🤔

Is there a way to set the base URL of Nextcloud to nextcloud.local:8880 as well? 🤔

@juliushaertl
Copy link
Owner

According to rancher-sandbox/rancher-desktop#1194 rancher comes with its own reverse proxy, supporting that might be a bit of work, for now maybe you can check if you can disable that as the issue mentions there should be a setting

@juliushaertl
Copy link
Owner

From a quick look for supporting the external traefik we might need to add labels to all the containers as described in
https://doc.traefik.io/traefik/user-guides/docker-compose/basic-example/

    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.whoami.rule=Host(`whoami.localhost`)"
      - "traefik.http.routers.whoami.entrypoints=web"

@leochoo
Copy link

leochoo commented Sep 2, 2024

I actually have the same issue in the Docker Desktop as well.
#339
#339

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants