Can't reach apache container in aio after server migration

  • Nextcloud version: AIO v9.8.0, not sure which nextcloud version exactly since new install
  • Operating system and version: Debian 12 (migrated from Ubuntu 22.04)
  • Apache or nginx version: nginx/1.22.1
  • PHP version: AIO

The issue you are facing:
After migrating to a new server my apache container is not reachable on the desired Port

Migration was done by following these steps:
On old machine:

  1. Update AIO via AIO interface
  2. Stop containers and create backup via AIO interface

Copied the borg folder on the new host. On new host:

  1. Create docker compose file
  2. Match NEXTCLOUD_DATADIR to new config
  3. docker compose up, check if aio interface is reachable, save aio passphrase
  4. Configure reverse proxy, TLS is ready
  5. Start Restore process in aio interface, restore latest backup
  6. Everything is green in the aio interface, but I can’t reach port 11000 on the host. Trying to reach via domain reaches nginx but throws 504 Gateway Time-out

the compose file:

services:
  nextcloud-aio-mastercontainer:
    image: nextcloud/all-in-one:latest
    init: true
    restart: always
    container_name: nextcloud-aio-mastercontainer # This line is not allowed to be changed as otherwise AIO will not work correctly
    volumes:
      - nextcloud_aio_mastercontainer:/mnt/docker-aio-config # This line is not allowed to be changed as otherwise the built-in backup solution will not work
      - /var/run/docker.sock:/var/run/docker.sock:ro # May be changed on macOS, Windows or docker rootless. See the applicable documentation. If adjusting, don't forget to also set 'WATCHTOWER_DOCKER_SOCKET_PATH'!
    ports:
      - 8081:8080
    environment: # Is needed when using any of the options below
      APACHE_PORT: 11000 # Is needed when running behind a web server or reverse proxy (like Apache, Nginx, Cloudflare Tunnel and else). See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
      APACHE_IP_BINDING: 127.0.0.1 # Should be set when running behind a web server or reverse proxy (like Apache, Nginx, Cloudflare Tunnel and else) that is running on the same host. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
      NEXTCLOUD_DATADIR: /home/tofu/apps/nextcloud/data/nc-aio # Allows to set the host directory for Nextcloud's datadir. ⚠️⚠️⚠️ Warning: do not set or adjust this value after the initial Nextcloud installation is done! See https://github.com/nextcloud/all-in-one#how-to-change-the-default-location-of-nextclouds-datadir
      BORG_RETENTION_POLICY: --keep-within=2d --keep-weekly=1 --keep-monthly=1 # Allows to adjust borgs retention policy. See https://github.com/nextcloud/all-in-one#how-to-adjust-borgs-retention-policy


volumes: # If you want to store the data on a different drive, see https://github.com/nextcloud/all-in-one#how-to-store-the-filesinstallation-on-a-separate-drive
  nextcloud_aio_mastercontainer:
    name: nextcloud_aio_mastercontainer # This line is not allowed to be changed as otherwise the built-in backup solution will not work

Trying to reach apache on the host system, bypassing nginx. Replaced the location.

$ curl -vvv 127.0.0.1:11000

*   Trying 127.0.0.1:11000...
* Connected to 127.0.0.1 (127.0.0.1) port 11000 (#0)
> GET / HTTP/1.1
> Host: 127.0.0.1:11000
> User-Agent: curl/7.88.1
> Accept: */*
> 
< HTTP/1.1 302 Found
< Content-Length: 0
< Content-Security-Policy: default-src 'self'; script-src 'self' 'nonce-WG1ycmRlQUMzampIeXM1QXR1OVE4cm43THUrWVJZb080bnc5bzlhWCtOZz06Y1ZtK0JxVnhoa21Ma0kwc2dJbGtwK0M0SFlIS0orUjcxQnQ0N1pxZzE0cz0='; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *; object-src 'none'; base-uri 'self';
< Content-Type: text/html; charset=UTF-8
< Date: Sun, 10 Nov 2024 18:25:38 GMT
< Location: https://cloud.my.domain/login
< Referrer-Policy: no-referrer
< Set-Cookie: oc_sessionPassphrase=fE4QTVTfx0bA26pu%2F1K0YVvDnZhX521HJQimjN5Bv1kBiW37yT6%2BubfkOgYiTKjyHwo4Ds1jMyzPp7mUTsvgdadhyYX9%2Bwz6e%2Brb8pOCqoYlG9aajQv1ZFJC2vbTYuSU; path=/; secure; HttpOnly; SameSite=Lax
< Set-Cookie: __Host-nc_sameSiteCookielax=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax
< Set-Cookie: __Host-nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict
< Set-Cookie: oc5nyxd4xdhi=8886ca7327744289bbdbd66ac8f03b76; path=/; secure; HttpOnly; SameSite=Lax
< Strict-Transport-Security: max-age=31536000;
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< X-Permitted-Cross-Domain-Policies: none
< X-Robots-Tag: noindex, nofollow
< X-Xss-Protection: 1; mode=block
< 
* Connection #0 to host 127.0.0.1 left intact

Apache container logs:

2024-11-10T18:22:05.300475041Z Waiting for Nextcloud to start...
2024-11-10T18:22:10.303848299Z Waiting for Nextcloud to start...
2024-11-10T18:22:15.306880141Z Waiting for Nextcloud to start...
2024-11-10T18:22:20.309894759Z Waiting for Nextcloud to start...
2024-11-10T18:22:25.312829742Z Waiting for Nextcloud to start...
2024-11-10T18:22:30.315061201Z Connection to nextcloud-aio-nextcloud (172.25.0.7) 9000 port [tcp/*] succeeded!
2024-11-10T18:22:31.907162133Z [Sun Nov 10 18:22:31.906529 2024] [mpm_event:notice] [pid 41:tid 41] AH00489: Apache/2.4.62 (Unix) configured -- resuming normal operations
2024-11-10T18:22:31.907495851Z [Sun Nov 10 18:22:31.907322 2024] [core:notice] [pid 41:tid 41] AH00094: Command line: '/usr/local/apache2/bin/httpd -D FOREGROUND'
2024-11-10T18:22:31.926503475Z {"level":"info","ts":1731262951.9260764,"msg":"using config from file","file":"/tmp/Caddyfile"}
2024-11-10T18:22:31.930386523Z {"level":"info","ts":1731262951.930076,"msg":"adapted config to JSON","adapter":"caddyfile"}

Nextcloud container logs (replaced the actual domain):

2024-11-10T18:22:02.370192890Z Connection to nextcloud-aio-database (172.25.0.4) 5432 port [tcp/postgresql] succeeded!
2024-11-10T18:22:04.457172858Z               now              
2024-11-10T18:22:04.457224915Z -------------------------------
2024-11-10T18:22:04.457234984Z  2024-11-10 18:22:04.453955+00
2024-11-10T18:22:04.457243557Z (1 row)
2024-11-10T18:22:04.457251956Z 
2024-11-10T18:22:04.466711411Z + '[' -f /dev-dri-group-was-added ']'
2024-11-10T18:22:04.467362016Z ++ find /dev -maxdepth 1 -mindepth 1 -name dri
2024-11-10T18:22:04.468189857Z + '[' -n '' ']'
2024-11-10T18:22:04.468209930Z + set +x
2024-11-10T18:22:04.485655777Z Enabling Imagick...
2024-11-10T18:22:06.054625317Z WARNING: opening from cache https://dl-cdn.alpinelinux.org/alpine/v3.20/main: No such file or directory
2024-11-10T18:22:06.054659939Z WARNING: opening from cache https://dl-cdn.alpinelinux.org/alpine/v3.20/community: No such file or directory
2024-11-10T18:22:06.087446001Z Connection to nextcloud-aio-redis (172.25.0.5) 6379 port [tcp/redis] succeeded!
2024-11-10T18:22:09.257281728Z Applying one-click-instance settings...
2024-11-10T18:22:09.878277858Z System config value one-click-instance set to boolean true
2024-11-10T18:22:10.429994515Z System config value one-click-instance.user-limit set to integer 100
2024-11-10T18:22:10.964639863Z System config value one-click-instance.link set to string https://nextcloud.com/all-in-one/
2024-11-10T18:22:11.500306052Z support already enabled
2024-11-10T18:22:11.522416955Z Adjusting log files...
2024-11-10T18:22:12.017206998Z System config value upgrade.cli-upgrade-link set to string https://github.com/nextcloud/all-in-one/discussions/2726
2024-11-10T18:22:12.558966890Z System config value logfile set to string /var/www/html/data/nextcloud.log
2024-11-10T18:22:13.142603297Z Config value were not updated
2024-11-10T18:22:13.769329432Z System config value updatedirectory set to string /nc-updater
2024-11-10T18:22:14.303363168Z System config value maintenance_window_start set to integer 100
2024-11-10T18:22:14.325469599Z Applying network settings...
2024-11-10T18:22:14.833551578Z System config value allow_local_remote_servers set to boolean true
2024-11-10T18:22:15.370072599Z System config value davstorage.request_timeout set to integer 3600
2024-11-10T18:22:15.909026980Z System config value trusted_domains => 1 set to string cloud.my.domain
2024-11-10T18:22:16.457923195Z System config value overwrite.cli.url set to string https://cloud.my.domain/
2024-11-10T18:22:16.982765018Z System config value htaccess.RewriteBase set to string /
2024-11-10T18:22:17.514118372Z .htaccess has been updated
2024-11-10T18:22:18.074546782Z System config value dbpersistent set to boolean false
2024-11-10T18:22:18.617080304Z System config value auth.bruteforce.protection.enabled set to boolean true
2024-11-10T18:22:19.164009525Z System config value ratelimit.protection.enabled set to boolean true
2024-11-10T18:22:19.700357455Z System config value files_external_allow_create_new_local set to boolean false
2024-11-10T18:22:21.403123646Z notify_push is up-to-date or no updates could be found
2024-11-10T18:22:21.943467868Z System config value trusted_proxies => 0 set to string 127.0.0.1
2024-11-10T18:22:22.456640106Z System config value trusted_proxies => 1 set to string ::1
2024-11-10T18:22:23.042005316Z System config value trusted_proxies => 10 set to string 172.25.0.0/16
2024-11-10T18:22:23.607461972Z Config value were not updated
2024-11-10T18:22:23.628606293Z + echo nextcloud-aio-collabora
2024-11-10T18:22:23.628744302Z + grep -q 'nextcloud-.*-collabora'
2024-11-10T18:22:23.630047820Z + COLLABORA_HOST=cloud.my.domain
2024-11-10T18:22:23.630065827Z + set +x
2024-11-10T18:22:24.719250269Z richdocuments is up-to-date or no updates could be found
2024-11-10T18:22:25.260241275Z Config value were not updated
2024-11-10T18:22:25.872483616Z No ipv6-address found for cloud.my.domain.
2024-11-10T18:22:26.385414322Z Config value were not updated
2024-11-10T18:22:26.906075175Z System config value enabledPreviewProviders => 0 set to string OC\Preview\Imaginary
2024-11-10T18:22:27.441378266Z System config value preview_imaginary_url set to string http://nextcloud-aio-imaginary:9000
2024-11-10T18:22:27.968205258Z System config value preview_imaginary_key set to string 018c5b939223d43650bd26744c253948b87da10934ee2af5
2024-11-10T18:22:28.025069816Z + '[' true = true ']'
2024-11-10T18:22:28.025105838Z + '[' 11000 = 443 ']'
2024-11-10T18:22:28.025114613Z + set +x
2024-11-10T18:22:29.566251994Z [10-Nov-2024 18:22:29] NOTICE: fpm is running, pid 401
2024-11-10T18:22:29.566378600Z [10-Nov-2024 18:22:29] NOTICE: ready to handle connections
2024-11-10T18:22:44.391149840Z Activating Collabora config...
2024-11-10T18:22:44.992992505Z ✓ Reset callback url autodetect
2024-11-10T18:22:44.993042015Z Checking configuration
2024-11-10T18:22:44.993066431Z 🛈 Configured WOPI URL: https://cloud.my.domain
2024-11-10T18:22:44.993075028Z 🛈 Configured public WOPI URL: https://cloud.my.domain
2024-11-10T18:22:44.993090660Z 🛈 Configured callback URL: 
2024-11-10T18:22:44.993098813Z 
2024-11-10T18:22:50.055019681Z Failed to fetch discovery endpoint from https://cloud.my.domain
2024-11-10T18:22:50.055062657Z cURL error 28: Operation timed out after 5002 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://cloud.my.domain/hosting/discovery

AIO logs throws a http error but according to other comments it’s not dagerous:

2024-11-10T18:19:07.094355565Z Trying to fix docker.sock permissions internally...
2024-11-10T18:19:07.103310442Z Creating docker group internally with id 109
2024-11-10T18:19:07.385062186Z WARNING: bridge-nf-call-iptables is disabled
2024-11-10T18:19:07.385121174Z WARNING: bridge-nf-call-ip6tables is disabled
2024-11-10T18:19:07.415553250Z WARNING: bridge-nf-call-iptables is disabled
2024-11-10T18:19:07.415586237Z WARNING: bridge-nf-call-ip6tables is disabled
2024-11-10T18:19:07.660909910Z e[0;92mInitial startup of Nextcloud All-in-One complete!
2024-11-10T18:19:07.660938697Z You should be able to open the Nextcloud AIO Interface now on port 8080 of this server!
2024-11-10T18:19:07.660948147Z E.g. https://internal.ip.of.this.server:8080
2024-11-10T18:19:07.660956544Z ⚠️ Important: do always use an ip-address if you access this port and not a domain as HSTS might block access to it later!
2024-11-10T18:19:07.660976869Z 
2024-11-10T18:19:07.660986848Z If your server has port 80 and 8443 open and you point a domain to your server, you can get a valid certificate automatically by opening the Nextcloud AIO Interface via:
2024-11-10T18:19:07.660995702Z https://your-domain-that-points-to-this-server.tld:8443e[0m
2024-11-10T18:19:09.476667708Z ++ head -1 /mnt/docker-aio-config/data/daily_backup_time
2024-11-10T18:19:09.484300717Z + BACKUP_TIME=04:00
2024-11-10T18:19:09.484337488Z + export BACKUP_TIME
2024-11-10T18:19:09.484346247Z + export DAILY_BACKUP=1
2024-11-10T18:19:09.484354203Z + DAILY_BACKUP=1
2024-11-10T18:19:09.488783111Z ++ sed -n 2p /mnt/docker-aio-config/data/daily_backup_time
2024-11-10T18:19:09.490587875Z + '[' automaticUpdatesAreNotEnabled '!=' automaticUpdatesAreNotEnabled ']'
2024-11-10T18:19:09.490634507Z + export AUTOMATIC_UPDATES=0
2024-11-10T18:19:09.490643897Z + AUTOMATIC_UPDATES=0
2024-11-10T18:19:09.490652400Z + export START_CONTAINERS=1
2024-11-10T18:19:09.490660958Z + START_CONTAINERS=1
2024-11-10T18:19:09.498212799Z ++ sed -n 3p /mnt/docker-aio-config/data/daily_backup_time
2024-11-10T18:19:09.500358120Z + '[' '' '!=' successNotificationsAreNotEnabled ']'
2024-11-10T18:19:09.500393951Z + export SEND_SUCCESS_NOTIFICATIONS=1
2024-11-10T18:19:09.500403064Z + SEND_SUCCESS_NOTIFICATIONS=1
2024-11-10T18:19:09.500411311Z + set +x
2024-11-10T18:19:09.558168779Z {"level":"info","ts":1731262749.5577648,"msg":"using config from file","file":"/Caddyfile"}
2024-11-10T18:19:09.560353089Z {"level":"info","ts":1731262749.560106,"msg":"adapted config to JSON","adapter":"caddyfile"}
2024-11-10T18:19:09.569837423Z [Sun Nov 10 18:19:09.569484 2024] [mpm_event:notice] [pid 143:tid 143] AH00489: Apache/2.4.62 (Unix) OpenSSL/3.3.2 configured -- resuming normal operations
2024-11-10T18:19:09.570262576Z [Sun Nov 10 18:19:09.570068 2024] [core:notice] [pid 143:tid 143] AH00094: Command line: 'httpd -D FOREGROUND'
2024-11-10T18:19:09.593836709Z [10-Nov-2024 18:19:09] NOTICE: fpm is running, pid 150
2024-11-10T18:19:09.593871017Z [10-Nov-2024 18:19:09] NOTICE: ready to handle connections
2024-11-10T18:22:51.716469504Z NOTICE: PHP message: 404 Not Found
2024-11-10T18:22:51.717172731Z Type: Slim\Exception\HttpNotFoundException
2024-11-10T18:22:51.717189491Z Code: 404
2024-11-10T18:22:51.717198772Z Message: Not found.
2024-11-10T18:22:51.717207304Z File: /var/www/docker-aio/php/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php
2024-11-10T18:22:51.717215686Z Line: 76
2024-11-10T18:22:51.717223713Z Trace: #0 /var/www/docker-aio/php/vendor/slim/slim/Slim/Routing/RouteRunner.php(62): Slim\Middleware\RoutingMiddleware->performRouting(Object(GuzzleHttp\Psr7\ServerRequest))
2024-11-10T18:22:51.717233149Z #1 /var/www/docker-aio/php/vendor/slim/csrf/src/Guard.php(482): Slim\Routing\RouteRunner->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2024-11-10T18:22:51.717241967Z #2 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(177): Slim\Csrf\Guard->process(Object(GuzzleHttp\Psr7\ServerRequest), Object(Slim\Routing\RouteRunner))
2024-11-10T18:22:51.717251017Z #3 /var/www/docker-aio/php/vendor/slim/twig-view/src/TwigMiddleware.php(117): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2024-11-10T18:22:51.717260105Z #4 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(129): Slim\Views\TwigMiddleware->process(Object(GuzzleHttp\Psr7\ServerRequest), Object(Psr\Http\Server\RequestHandlerInterface@anonymous))
2024-11-10T18:22:51.717269105Z #5 /var/www/docker-aio/php/src/Middleware/AuthMiddleware.php(36): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2024-11-10T18:22:51.717277967Z #6 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(280): AIO\Middleware\AuthMiddleware->__invoke(Object(GuzzleHttp\Psr7\ServerRequest), Object(Psr\Http\Server\RequestHandlerInterface@anonymous))
2024-11-10T18:22:51.717287148Z #7 /var/www/docker-aio/php/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(77): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2024-11-10T18:22:51.717295952Z #8 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(129): Slim\Middleware\ErrorMiddleware->process(Object(GuzzleHttp\Psr7\ServerRequest), Object(Psr\Http\Server\RequestHandlerInterface@anonymous))
2024-11-10T18:22:51.717304973Z #9 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2024-11-10T18:22:51.717316292Z #10 /var/www/docker-aio/php/vendor/slim/slim/Slim/App.php(209): Slim\MiddlewareDispatcher->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2024-11-10T18:22:51.717325185Z #11 /var/www/docker-aio/php/vendor/slim/slim/Slim/App.php(193): Slim\App->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2024-11-10T18:22:51.717333589Z #12 /var/www/docker-aio/php/public/index.php(186): Slim\App->run()
2024-11-10T18:22:51.717354463Z #13 {main}
2024-11-10T18:22:51.717363686Z Tips: To display error details in HTTP response set "displayErrorDetails" to true in the ErrorHandler constructor.
2024-11-10T18:26:49.184643205Z NOTICE: PHP message: 404 Not Found
2024-11-10T18:26:49.184687365Z Type: Slim\Exception\HttpNotFoundException
2024-11-10T18:26:49.184696863Z Code: 404
2024-11-10T18:26:49.184704848Z Message: Not found.
2024-11-10T18:26:49.184712632Z File: /var/www/docker-aio/php/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php
2024-11-10T18:26:49.184720840Z Line: 76
2024-11-10T18:26:49.184728655Z Trace: #0 /var/www/docker-aio/php/vendor/slim/slim/Slim/Routing/RouteRunner.php(62): Slim\Middleware\RoutingMiddleware->performRouting(Object(GuzzleHttp\Psr7\ServerRequest))
2024-11-10T18:26:49.184737513Z #1 /var/www/docker-aio/php/vendor/slim/csrf/src/Guard.php(482): Slim\Routing\RouteRunner->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2024-11-10T18:26:49.184745966Z #2 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(177): Slim\Csrf\Guard->process(Object(GuzzleHttp\Psr7\ServerRequest), Object(Slim\Routing\RouteRunner))
2024-11-10T18:26:49.184754656Z #3 /var/www/docker-aio/php/vendor/slim/twig-view/src/TwigMiddleware.php(117): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2024-11-10T18:26:49.184763471Z #4 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(129): Slim\Views\TwigMiddleware->process(Object(GuzzleHttp\Psr7\ServerRequest), Object(Psr\Http\Server\RequestHandlerInterface@anonymous))
2024-11-10T18:26:49.184772241Z #5 /var/www/docker-aio/php/src/Middleware/AuthMiddleware.php(36): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2024-11-10T18:26:49.184780779Z #6 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(280): AIO\Middleware\AuthMiddleware->__invoke(Object(GuzzleHttp\Psr7\ServerRequest), Object(Psr\Http\Server\RequestHandlerInterface@anonymous))
2024-11-10T18:26:49.184789533Z #7 /var/www/docker-aio/php/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(77): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2024-11-10T18:26:49.184798085Z #8 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(129): Slim\Middleware\ErrorMiddleware->process(Object(GuzzleHttp\Psr7\ServerRequest), Object(Psr\Http\Server\RequestHandlerInterface@anonymous))
2024-11-10T18:26:49.184806910Z #9 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2024-11-10T18:26:49.184816835Z #10 /var/www/docker-aio/php/vendor/slim/slim/Slim/App.php(209): Slim\MiddlewareDispatcher->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2024-11-10T18:26:49.184825515Z #11 /var/www/docker-aio/php/vendor/slim/slim/Slim/App.php(193): Slim\App->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2024-11-10T18:26:49.184852818Z #12 /var/www/docker-aio/php/public/index.php(186): Slim\App->run()
2024-11-10T18:26:49.184945171Z #13 {main}
2024-11-10T18:26:49.184956367Z Tips: To display error details in HTTP response set "displayErrorDetails" to true in the ErrorHandler constructor.
2024-11-10T18:36:47.306232090Z NOTICE: PHP message: 404 Not Found
2024-11-10T18:36:47.306278078Z Type: Slim\Exception\HttpNotFoundException
2024-11-10T18:36:47.306287485Z Code: 404
2024-11-10T18:36:47.306295427Z Message: Not found.
2024-11-10T18:36:47.306303292Z File: /var/www/docker-aio/php/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php
2024-11-10T18:36:47.306311225Z Line: 76
2024-11-10T18:36:47.306319043Z Trace: #0 /var/www/docker-aio/php/vendor/slim/slim/Slim/Routing/RouteRunner.php(62): Slim\Middleware\RoutingMiddleware->performRouting(Object(GuzzleHttp\Psr7\ServerRequest))
2024-11-10T18:36:47.306327896Z #1 /var/www/docker-aio/php/vendor/slim/csrf/src/Guard.php(482): Slim\Routing\RouteRunner->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2024-11-10T18:36:47.306336325Z #2 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(177): Slim\Csrf\Guard->process(Object(GuzzleHttp\Psr7\ServerRequest), Object(Slim\Routing\RouteRunner))
2024-11-10T18:36:47.306344941Z #3 /var/www/docker-aio/php/vendor/slim/twig-view/src/TwigMiddleware.php(117): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2024-11-10T18:36:47.306353470Z #4 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(129): Slim\Views\TwigMiddleware->process(Object(GuzzleHttp\Psr7\ServerRequest), Object(Psr\Http\Server\RequestHandlerInterface@anonymous))
2024-11-10T18:36:47.306362321Z #5 /var/www/docker-aio/php/src/Middleware/AuthMiddleware.php(36): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2024-11-10T18:36:47.306370858Z #6 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(280): AIO\Middleware\AuthMiddleware->__invoke(Object(GuzzleHttp\Psr7\ServerRequest), Object(Psr\Http\Server\RequestHandlerInterface@anonymous))
2024-11-10T18:36:47.306379594Z #7 /var/www/docker-aio/php/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(77): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2024-11-10T18:36:47.306388172Z #8 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(129): Slim\Middleware\ErrorMiddleware->process(Object(GuzzleHttp\Psr7\ServerRequest), Object(Psr\Http\Server\RequestHandlerInterface@anonymous))
2024-11-10T18:36:47.306397025Z #9 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2024-11-10T18:36:47.306406862Z #10 /var/www/docker-aio/php/vendor/slim/slim/Slim/App.php(209): Slim\MiddlewareDispatcher->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2024-11-10T18:36:47.306415590Z #11 /var/www/docker-aio/php/vendor/slim/slim/Slim/App.php(193): Slim\App->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2024-11-10T18:36:47.306424130Z #12 /var/www/docker-aio/php/public/index.php(186): Slim\App->run()
2024-11-10T18:36:47.306447929Z #13 {main}
2024-11-10T18:36:47.306456770Z Tips: To display error details in HTTP response set "displayErrorDetails" to true in the ErrorHandler constructor.

nginx config (replaced domain, garden is the host aio is on):

map $http_upgrade $connection_upgrade {
    default upgrade;
    '' close;
}

server {

    server_name cloud.my.domain www.cloud.my.domain;
        
    location / {
        proxy_pass http://garden:11000;

        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Port $server_port;
        proxy_set_header X-Forwarded-Scheme $scheme;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header Accept-Encoding "";
        proxy_set_header Host $host;
    
        client_body_buffer_size 512k;
        proxy_read_timeout 86400s;
        client_max_body_size 0;

        # Websocket
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade;

    }

    listen [::]:443 ssl; # managed by Certbot
    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/cloud.my.domain/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/cloud.my.domain/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

}server {
    if ($host = cloud.my.domain) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


    listen 80;
    listen [::]:80;

    server_name cloud.my.domain www.cloud.my.domain;
    return 404; # managed by Certbot


}

Seems like apache is reachable.
How did you install nginx and can you post the used nginx config here?

Nginx is installed on another host from Debian sources. The config is in the last gist in my original post.

I can also not reach it in the browser via local-ip:11000. Maybe I need to bind it to localhost:11000 instead of 127.0.0.1:11000, I’ll check that in a minute.

Context: AIO is in 1 VM on my local Proxmox box, nginx on another. I can reach both via hostname and IP from my laptop

I see. Then APACHE_IP_BINDING: 127.0.0.1 cannot work.

Please follow all-in-one/reverse-proxy.md at main · nextcloud/all-in-one · GitHub and refer to all-in-one/reverse-proxy.md at main · nextcloud/all-in-one · GitHub.

Replaced APACHE_IP_BINDING with the local ip and now it works. Thanks a lot.

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.