juliusknorr / nextcloud-docker-dev

Nextcloud development environment using docker-compose
GNU Affero General Public License v3.0
139 stars 74 forks source link

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

Closed leochoo closed 1 month ago

leochoo commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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!)