Problem starting container nextcloud_aio_nextcloud

Hi everyone.

Fresh installation on a clean virtual machine. Three containers can’t start, but as far as I understand, the problem is only with one. The logs don’t indicate where to look for the problem.

Container nextcloud-aio-nextcloud

2025-11-24T11:43:14.581375326Z              now              
2025-11-24T11:43:14.581422794Z ------------------------------
2025-11-24T11:43:14.581436930Z  2025-11-24 12:43:14.58087+01
2025-11-24T11:43:14.581439034Z (1 row)
2025-11-24T11:43:14.581441018Z 
2025-11-24T11:43:14.587224105Z + '[' -f /dev-dri-group-was-added ']'
2025-11-24T11:43:14.587288564Z ++ find /dev -maxdepth 1 -mindepth 1 -name dri
2025-11-24T11:43:14.587829546Z + '[' -n '' ']'
2025-11-24T11:43:14.588064531Z + set +x
2025-11-24T11:43:14.674023948Z Connection to nextcloud-aio-redis (172.18.0.8) 6379 port [tcp/redis] succeeded!
2025-11-24T11:43:14.946182726Z The initial Nextcloud installation failed.
2025-11-24T11:43:14.946208764Z For more information about what went wrong, check the logs above.
2025-11-24T11:43:14.946211610Z Please reset AIO properly and try again.
2025-11-24T11:43:14.946213243Z See:
2025-11-24T11:43:14.946214705Z   https://github.com/nextcloud/all-in-one#how-to-properly-reset-the-instance
2025-11-24T11:44:06.290416989Z Connection to nextcloud-aio-database (172.18.0.7) 5432 port [tcp/postgresql] succeeded!
2025-11-24T11:44:08.309972674Z               now              
2025-11-24T11:44:08.310001147Z -------------------------------
2025-11-24T11:44:08.310003571Z  2025-11-24 12:44:08.309514+01
2025-11-24T11:44:08.310005525Z (1 row)
2025-11-24T11:44:08.310007358Z 
2025-11-24T11:44:08.323154853Z + '[' -f /dev-dri-group-was-added ']'
2025-11-24T11:44:08.324175192Z ++ find /dev -maxdepth 1 -mindepth 1 -name dri
2025-11-24T11:44:08.324997845Z + '[' -n '' ']'
2025-11-24T11:44:08.325033761Z + set +x
2025-11-24T11:44:08.421860941Z Connection to nextcloud-aio-redis (172.18.0.8) 6379 port [tcp/redis] succeeded!
2025-11-24T11:44:08.687702173Z The initial Nextcloud installation failed.
2025-11-24T11:44:08.687729404Z For more information about what went wrong, check the logs above.
2025-11-24T11:44:08.687732199Z Please reset AIO properly and try again.
2025-11-24T11:44:08.687734183Z See:
2025-11-24T11:44:08.687736357Z   https://github.com/nextcloud/all-in-one#how-to-properly-reset-the-instance

Container nextcloud-aio-apache

2025-11-24T11:44:03.805642829Z nc: getaddrinfo for host "nextcloud-aio-nextcloud" port 9000: Try again
2025-11-24T11:44:03.805792475Z Waiting for Nextcloud to start...
2025-11-24T11:44:13.811793813Z nc: getaddrinfo for host "nextcloud-aio-nextcloud" port 9000: Try again
2025-11-24T11:44:13.811952878Z Waiting for Nextcloud to start...
2025-11-24T11:44:23.817276137Z nc: getaddrinfo for host "nextcloud-aio-nextcloud" port 9000: Try again
2025-11-24T11:44:23.817510200Z Waiting for Nextcloud to start...
2025-11-24T11:44:33.824178935Z nc: getaddrinfo for host "nextcloud-aio-nextcloud" port 9000: Try again
2025-11-24T11:44:33.824232954Z Waiting for Nextcloud to start...

Container nextcloud-aio-mastercontainer

2025-11-24T10:50:32.085727980Z [24-Nov-2025 10:50:32] NOTICE: Terminating ...
2025-11-24T10:50:32.086900535Z [24-Nov-2025 10:50:32] NOTICE: exiting, bye-bye!
2025-11-24T10:50:35.118815994Z [Mon Nov 24 10:50:35.118379 2025] [mpm_event:notice] [pid 149:tid 149] AH00491: caught SIGTERM, shutting down
2025-11-24T10:50:36.021655675Z e[0;92mInitial startup of Nextcloud All-in-One complete!
2025-11-24T10:50:36.021696752Z You should be able to open the Nextcloud AIO Interface now on port 8080 of this server!
2025-11-24T10:50:36.021698977Z E.g. https://internal.ip.of.this.server:8080
2025-11-24T10:50:36.021700459Z ⚠️ Important: do always use an ip-address if you access this port and not a domain as HSTS might block access to it later!
2025-11-24T10:50:36.021702473Z 
2025-11-24T10:50:36.021703916Z 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:
2025-11-24T10:50:36.021705529Z https://your-domain-that-points-to-this-server.tld:8443e[0m
2025-11-24T10:50:36.316514936Z /usr/lib/python3.12/site-packages/supervisor/options.py:13: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
2025-11-24T10:50:36.316540874Z   import pkg_resources
2025-11-24T10:50:37.413523205Z [Mon Nov 24 10:50:37.412876 2025] [mpm_event:notice] [pid 142:tid 142] AH00489: Apache/2.4.65 (Unix) OpenSSL/3.5.4 configured -- resuming normal operations
2025-11-24T10:50:37.413549944Z [Mon Nov 24 10:50:37.413276 2025] [core:notice] [pid 142:tid 142] AH00094: Command line: 'httpd -D FOREGROUND'
2025-11-24T10:50:37.418376592Z [24-Nov-2025 10:50:37] NOTICE: fpm is running, pid 148
2025-11-24T10:50:37.418411957Z [24-Nov-2025 10:50:37] NOTICE: ready to handle connections
2025-11-24T10:50:37.421258604Z {"level":"info","ts":1763981437.4209528,"msg":"maxprocs: Leaving GOMAXPROCS=4: CPU quota undefined"}
2025-11-24T10:50:37.421448177Z {"level":"info","ts":1763981437.4211636,"msg":"GOMEMLIMIT is updated","package":"github.com/KimMachineGun/automemlimit/memlimit","GOMEMLIMIT":5591734272,"previous":9223372036854775807}
2025-11-24T10:50:37.421457014Z {"level":"info","ts":1763981437.42121,"msg":"using config from file","file":"/Caddyfile"}
2025-11-24T10:50:37.422843458Z {"level":"info","ts":1763981437.42262,"msg":"adapted config to JSON","adapter":"caddyfile"}
2025-11-24T10:50:37.424739772Z {"level":"info","ts":1763981437.424445,"msg":"serving initial configuration"}
2025-11-24T10:54:36.279465578Z NOTICE: PHP message: 404 Not Found
2025-11-24T10:54:36.279497657Z Type: Slim\Exception\HttpNotFoundException
2025-11-24T10:54:36.279500793Z Code: 404
2025-11-24T10:54:36.279503188Z Message: Not found.
2025-11-24T10:54:36.279505592Z File: /var/www/docker-aio/php/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php
2025-11-24T10:54:36.279508047Z Line: 76
2025-11-24T10:54:36.279510471Z Trace: #0 /var/www/docker-aio/php/vendor/slim/slim/Slim/Routing/RouteRunner.php(62): Slim\Middleware\RoutingMiddleware->performRouting(Object(GuzzleHttp\Psr7\ServerRequest))
2025-11-24T10:54:36.279513958Z #1 /var/www/docker-aio/php/vendor/slim/csrf/src/Guard.php(482): Slim\Routing\RouteRunner->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2025-11-24T10:54:36.279527594Z #2 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(178): Slim\Csrf\Guard->process(Object(GuzzleHttp\Psr7\ServerRequest), Object(Slim\Routing\RouteRunner))
2025-11-24T10:54:36.279530608Z #3 /var/www/docker-aio/php/vendor/slim/twig-view/src/TwigMiddleware.php(117): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2025-11-24T10:54:36.279532752Z #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))
2025-11-24T10:54:36.279534936Z #5 /var/www/docker-aio/php/src/Middleware/AuthMiddleware.php(36): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2025-11-24T10:54:36.279537040Z #6 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(283): AIO\Middleware\AuthMiddleware->__invoke(Object(GuzzleHttp\Psr7\ServerRequest), Object(Psr\Http\Server\RequestHandlerInterface@anonymous))
2025-11-24T10:54:36.279539275Z #7 /var/www/docker-aio/php/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(77): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2025-11-24T10:54:36.279541299Z #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))
2025-11-24T10:54:36.279543432Z #9 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2025-11-24T10:54:36.279546047Z #10 /var/www/docker-aio/php/vendor/slim/slim/Slim/App.php(209): Slim\MiddlewareDispatcher->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2025-11-24T10:54:36.279548101Z #11 /var/www/docker-aio/php/vendor/slim/slim/Slim/App.php(193): Slim\App->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2025-11-24T10:54:36.279550045Z #12 /var/www/docker-aio/php/public/index.php(198): Slim\App->run()
2025-11-24T10:54:36.279551888Z #13 {main}
2025-11-24T10:54:36.279553551Z Tips: To display error details in HTTP response set "displayErrorDetails" to true in the ErrorHandler constructor.

And in the last log, I can’t figure out where those tiny lines mentioning “Caddyfile“ are coming from? Why is it there?

Thx for help.

Please post your Compose file (or run command).

And perhaps whatever context you can think of about what steps were taken before this occurred.