Nextcloud AIO with Caddy TLS and Pihole ISSUES "slim application error or nothing at all"

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • aio-nextcloud:beta and the main channel docker
  • Operating system and version (e.g., Ubuntu 24.04):
    • ubuntu 20.04
  • Web server and version (e.g, Apache 2.4.25):
    • Server version: Apache/2.4.52 (Ubuntu)
      Server built: 2025-08-11T12:10:10
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • caddy 551f793700fe1550845c824470b623fd1aa03d36
  • PHP version (e.g, 8.3):
    • PHP 8.1.2-1ubuntu2.22
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • in the last 2 weeks or sumthin
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • docker
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no

Summary of the issue you are facing:

I installed from the main docker channel AIO using caddy reverse proxy and proceeded to the main page https://192.168.1.11:8080/ started the containers then clicked “open your nextcloud” Nothing showed up. Nuked the whole thing and reinstalled from scratch and got “slim application error” sooo then I installed the beta version and fixed that problem but now I still have my original issue.

Log entries



Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

2025-11-18T19:44:53.621854012Z Trying to fix docker.sock permissions internally...
2025-11-18T19:44:53.625135535Z Adding internal www-data to group ping
2025-11-18T19:44:57.131112024Z e[0;92mInitial startup of Nextcloud All-in-One complete!
2025-11-18T19:44:57.131174141Z You should be able to open the Nextcloud AIO Interface now on port 8080 of this server!
2025-11-18T19:44:57.131193124Z E.g. https://internal.ip.of.this.server:8080
2025-11-18T19:44:57.131208987Z ⚠️ 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-18T19:44:57.131225855Z 
2025-11-18T19:44:57.131239869Z 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-18T19:44:57.131255399Z https://your-domain-that-points-to-this-server.tld:8443e[0m
2025-11-18T19:44:57.630202167Z /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-18T19:44:57.630237769Z   import pkg_resources
2025-11-18T19:45:00.229188113Z {"level":"info","ts":1763495100.2286994,"msg":"maxprocs: Leaving GOMAXPROCS=8: CPU quota undefined"}
2025-11-18T19:45:00.229231931Z {"level":"info","ts":1763495100.228897,"msg":"GOMEMLIMIT is updated","package":"github.com/KimMachineGun/automemlimit/memlimit","GOMEMLIMIT":15017213952,"previous":9223372036854775807}
2025-11-18T19:45:00.229241401Z {"level":"info","ts":1763495100.2289753,"msg":"using config from file","file":"/Caddyfile"}
2025-11-18T19:45:00.230447045Z {"level":"info","ts":1763495100.2302947,"msg":"adapted config to JSON","adapter":"caddyfile"}
2025-11-18T19:45:00.232805638Z [18-Nov-2025 19:45:00] NOTICE: fpm is running, pid 173
2025-11-18T19:45:00.232880880Z [18-Nov-2025 19:45:00] NOTICE: ready to handle connections
2025-11-18T19:45:00.233019364Z {"level":"info","ts":1763495100.2326043,"msg":"serving initial configuration"}
2025-11-18T19:45:00.410193372Z [Tue Nov 18 19:45:00.409807 2025] [mpm_event:notice] [pid 167:tid 167] AH00489: Apache/2.4.65 (Unix) OpenSSL/3.5.4 configured -- resuming normal operations
2025-11-18T19:45:00.410228762Z [Tue Nov 18 19:45:00.409900 2025] [core:notice] [pid 167:tid 167] AH00094: Command line: 'httpd -D FOREGROUND'
2025-11-18T19:48:14.305527769Z [18-Nov-2025 19:48:14] NOTICE: Terminating ...
2025-11-18T19:48:14.305573472Z [18-Nov-2025 19:48:14] NOTICE: exiting, bye-bye!
2025-11-18T19:48:17.356677474Z [Tue Nov 18 19:48:17.356195 2025] [mpm_event:notice] [pid 167:tid 167] AH00491: caught SIGTERM, shutting down
2025-11-18T19:53:15.478431984Z e[0;31mIt seems like you did not give the mastercontainer the correct name? (The 'nextcloud-aio-mastercontainer' container was not found.)
2025-11-18T19:53:15.478451892Z Using a different name is not supported since mastercontainer updates will not work in that case!
2025-11-18T19:53:15.478468091Z If you are on docker swarm and try to run AIO, see https://github.com/nextcloud/all-in-one#can-i-run-this-with-docker-swarme[0m
2025-11-18T19:53:20.256416099Z e[0;92mInitial startup of Nextcloud All-in-One complete!
2025-11-18T19:53:20.256437918Z You should be able to open the Nextcloud AIO Interface now on port 8080 of this server!
2025-11-18T19:53:20.256442591Z E.g. https://internal.ip.of.this.server:8080
2025-11-18T19:53:20.256457531Z ⚠️ 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-18T19:53:20.256465294Z 
2025-11-18T19:53:20.256479589Z 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-18T19:53:20.256483771Z https://your-domain-that-points-to-this-server.tld:8443e[0m
2025-11-18T19:53:20.496403020Z /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-18T19:53:20.714890031Z   import pkg_resources
2025-11-18T19:53:21.779289194Z [Tue Nov 18 19:53:21.778918 2025] [mpm_event:notice] [pid 171:tid 171] AH00489: Apache/2.4.65 (Unix) OpenSSL/3.5.4 configured -- resuming normal operations
2025-11-18T19:53:21.779364646Z [Tue Nov 18 19:53:21.778962 2025] [core:notice] [pid 171:tid 171] AH00094: Command line: 'httpd -D FOREGROUND'
2025-11-18T19:53:21.782932705Z [18-Nov-2025 19:53:21] NOTICE: fpm is running, pid 180
2025-11-18T19:53:21.782947796Z [18-Nov-2025 19:53:21] NOTICE: ready to handle connections
2025-11-18T19:53:21.790027882Z {"level":"info","ts":1763495601.7898226,"msg":"maxprocs: Leaving GOMAXPROCS=8: CPU quota undefined"}
2025-11-18T19:53:21.790133725Z {"level":"info","ts":1763495601.7900147,"msg":"GOMEMLIMIT is updated","package":"github.com/KimMachineGun/automemlimit/memlimit","GOMEMLIMIT":15017213952,"previous":9223372036854775807}
2025-11-18T19:53:21.790238842Z {"level":"info","ts":1763495601.7900732,"msg":"using config from file","file":"/Caddyfile"}
2025-11-18T19:53:21.791350524Z {"level":"info","ts":1763495601.7912366,"msg":"adapted config to JSON","adapter":"caddyfile"}
2025-11-18T19:53:21.792859233Z {"level":"info","ts":1763495601.7927127,"msg":"serving initial configuration"}
2025-11-18T19:55:44.557012114Z NOTICE: PHP message: Skipping domain validation
2025-11-18T20:13:56.051013070Z NOTICE: PHP message: 404 Not Found
2025-11-18T20:13:56.080377837Z Type: Slim\Exception\HttpNotFoundException
2025-11-18T20:13:56.080397007Z Code: 404
2025-11-18T20:13:56.080401171Z Message: Not found.
2025-11-18T20:13:56.080404665Z File: /var/www/docker-aio/php/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php
2025-11-18T20:13:56.080408196Z Line: 76
2025-11-18T20:13:56.080422480Z 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-18T20:13:56.080426717Z #1 /var/www/docker-aio/php/vendor/slim/csrf/src/Guard.php(482): Slim\Routing\RouteRunner->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2025-11-18T20:13:56.080429632Z #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-18T20:13:56.080434616Z #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-18T20:13:56.080437666Z #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-18T20:13:56.080440672Z #5 /var/www/docker-aio/php/src/Middleware/AuthMiddleware.php(53): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2025-11-18T20:13:56.080443506Z #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-18T20:13:56.080446434Z #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-18T20:13:56.080449212Z #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-18T20:13:56.080452155Z #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-18T20:13:56.080457530Z #10 /var/www/docker-aio/php/vendor/slim/slim/Slim/App.php(209): Slim\MiddlewareDispatcher->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2025-11-18T20:13:56.080460391Z #11 /var/www/docker-aio/php/vendor/slim/slim/Slim/App.php(193): Slim\App->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2025-11-18T20:13:56.080463036Z #12 /var/www/docker-aio/php/public/index.php(199): Slim\App->run()
2025-11-18T20:13:56.080465449Z #13 {main}
2025-11-18T20:13:56.080467671Z Tips: To display error details in HTTP response set "displayErrorDetails" to true in the ErrorHandler constructor.
2025-11-19T04:00:25.633589459Z nextcloud-aio-domaincheck
2025-11-19T04:00:25.653186555Z Total reclaimed space: 0B
2025-11-19T04:50:23.140796378Z Deleting duplicate sessions
2025-11-19T04:51:25.275157714Z Deleting duplicate sessions
2025-11-19T04:54:59.447373164Z NOTICE: PHP message: 404 Not Found
2025-11-19T04:54:59.447425945Z Type: Slim\Exception\HttpNotFoundException
2025-11-19T04:54:59.447454296Z Code: 404
2025-11-19T04:54:59.447461374Z Message: Not found.
2025-11-19T04:54:59.447467396Z File: /var/www/docker-aio/php/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php
2025-11-19T04:54:59.447473432Z Line: 76
2025-11-19T04:54:59.447478851Z 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-19T04:54:59.447485907Z #1 /var/www/docker-aio/php/vendor/slim/csrf/src/Guard.php(482): Slim\Routing\RouteRunner->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2025-11-19T04:54:59.447492507Z #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-19T04:54:59.447501126Z #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-19T04:54:59.447508368Z #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-19T04:54:59.447515579Z #5 /var/www/docker-aio/php/src/Middleware/AuthMiddleware.php(53): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2025-11-19T04:54:59.447522161Z #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-19T04:54:59.447529177Z #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-19T04:54:59.447535717Z #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-19T04:54:59.447542587Z #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-19T04:54:59.447551034Z #10 /var/www/docker-aio/php/vendor/slim/slim/Slim/App.php(209): Slim\MiddlewareDispatcher->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2025-11-19T04:54:59.447557882Z #11 /var/www/docker-aio/php/vendor/slim/slim/Slim/App.php(193): Slim\App->handle(Object(GuzzleHttp\Psr7\ServerRequest))
2025-11-19T04:54:59.447564153Z #12 /var/www/docker-aio/php/public/index.php(199): Slim\App->run()
2025-11-19T04:54:59.447569854Z #13 {main}
2025-11-19T04:54:59.447575012Z Tips: To display error details in HTTP response set "displayErrorDetails" to true in the ErrorHandler constructor.
2025-11-19T05:16:05.277174575Z Deleting duplicate sessions

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

PASTE

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

PASTE HEREservices:
  nextcloud-aio-mastercontainer:
    image: ghcr.io/nextcloud-releases/all-in-one:beta
    init: true
    restart: always
    container_name: nextcloud-aio-mastercontainer
    volumes:
      - nextcloud_aio_mastercontainer:/mnt/docker-aio-config
      - /var/run/docker.sock:/var/run/docker.sock:ro
    network_mode: bridge

    ports:
      - 8080:8080
    environment:
      APACHE_PORT: 11000
      APACHE_IP_BINDING: 127.0.0.1
      SKIP_DOMAIN_VALIDATION: true

  caddy:
    image: caddy:alpine
    restart: always
    container_name: caddy
    volumes:
      - caddy_certs:/certs
      - caddy_config:/config
      - caddy_data:/data
      - caddy_sites:/srv
    network_mode: "host"
    configs:
      - source: Caddyfile
        target: /etc/caddy/Caddyfile
configs:
  Caddyfile:
    content: |
     https://andy.nextcloud:443 {
      tls internal
      reverse_proxy localhost:11000
      }

volumes:
  nextcloud_aio_mastercontainer:
    name: nextcloud_aio_mastercontainer
  caddy_certs:
  caddy_config:
  caddy_data:
  caddy_sites:

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

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