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

Docker shows 404 page not found. Port missing. #339

Closed
leochoo opened this issue Sep 2, 2024 · 3 comments
Closed

Docker shows 404 page not found. Port missing. #339

leochoo opened this issue Sep 2, 2024 · 3 comments

Comments

@leochoo
Copy link

leochoo commented Sep 2, 2024

I am following this tutorial.

using Rancher Desktop.

However, as show in the below screenshot, the port is not shown for master-nextcloud-1. Also there is no open with browser button.

CleanShot 2024-09-02 at 15 01 43

Therefore, accessing http://nextcloud.local/ is not possible.

I read #322 , but it still did not have any answer.

Can anyone please help? Thanks.

@juliusknorr
Copy link
Owner

Can you try to disable Traefik from the Rancher settings and see if that makes a difference?

https://docs.rancherdesktop.io/faq/

Q: Can I disable Traefik, and will doing so remove Traefik resources?
A: Yes, you can disable Traefik in order to free up port 80 and 443 for alternate ingress configuration. Disabling Traefik will not delete existing resources. By default, the Enable Traefik feature is selected under Kubernetes Settings; uncheck this box to disable it.

@juliusknorr
Copy link
Owner

Otherwise maybe you can try adding the following to the docker-compose file for the nextcloud container and recreate the containers:

diff --git a/docker-compose.yml b/docker-compose.yml
index 28b560a..7a46185 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -99,6 +99,10 @@ services:
       - ${PROXY_SERVICE:-proxy}
     extra_hosts:
       - host.docker.internal:host-gateway
+    labels:
+      - "traefik.enable=true"
+      - "traefik.http.routers.whoami.rule=Host(`nextcloud.local`)"
+      - "traefik.http.routers.whoami.entrypoints=web"

   nextcloud2:
     image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-81}:latest

@leochoo
Copy link
Author

leochoo commented Sep 2, 2024

Disabling Traefik solved the problem ✅
@juliushaertl Thank you very much.

CleanShot 2024-09-02 at 16 01 52

I clicked on update and it successfully updated and redirected me to the login page.

CleanShot 2024-09-02 at 16 03 15

CleanShot 2024-09-02 at 16 03 38

(Oh wow, I definitely disabling Traefik before, but I could have messed it up somewhere. Apparently it worked!)

@leochoo leochoo closed this as completed Sep 3, 2024
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

2 participants