SLIM application error after OS update and reboot

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • Nextcloud Hub 10 (31.0.10)
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 22.04.5 LTS
  • Web server and version (e.g, Apache 2.4.25):
    • AIO
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • AIO
  • PHP version (e.g, 8.3):
    • AIO
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • After Apt upgrade and reboot
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • AIO
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

I am no longer able to use the Nextcloud AIO interface:
Slim Application Error

Steps to replicate it (hint: details matter!):

  1. Open the AIO interface at: https://dock-cloud.familie-dokter.lan:8080/containers

Log entries

docker logs nextcloud-aio-mastercontainer

E.g. https://internal.ip.of.this.server:8080
⚠️ Important: do always use an ip-address if you access this port and not a domain as HSTS might block access to it later!

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:
https://your-domain-that-points-to-this-server.tld:8443
/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.
  import pkg_resources
[Fri Dec 26 09:55:03.262257 2025] [mpm_event:notice] [pid 141:tid 141] AH00489: Apache/2.4.65 (Unix) OpenSSL/3.5.4 configured -- resuming normal operations
[Fri Dec 26 09:55:03.262506 2025] [core:notice] [pid 141:tid 141] AH00094: Command line: 'httpd -D FOREGROUND'
{"level":"info","ts":1766742903.272031,"msg":"maxprocs: Leaving GOMAXPROCS=2: CPU quota undefined"}
{"level":"info","ts":1766742903.2722888,"msg":"GOMEMLIMIT is updated","package":"github.com/KimMachineGun/automemlimit/memlimit","GOMEMLIMIT":1758917836,"previous":9223372036854775807}
{"level":"info","ts":1766742903.2723496,"msg":"using config from file","file":"/Caddyfile"}
{"level":"info","ts":1766742903.2759166,"msg":"adapted config to JSON","adapter":"caddyfile"}
{"level":"info","ts":1766742903.282474,"msg":"serving initial configuration"}
[26-Dec-2025 09:55:03] NOTICE: fpm is running, pid 146
[26-Dec-2025 09:55:03] NOTICE: ready to handle connections
NOTICE: PHP message: Slim Application Error
Type: Exception
Code: 0
Message: Could not create the nextcloud-aio network: {"message":"client version 1.41 is too old. Minimum supported API version is 1.44, please upgrade your client to a newer version"}
File: /var/www/docker-aio/php/src/Docker/DockerActionManager.php
Line: 838
Trace: #0 /var/www/docker-aio/php/src/Docker/DockerActionManager.php(868): AIO\Docker\DockerActionManager->ConnectContainerIdToNetwork('nextcloud-aio-m...', '')
#1 /var/www/docker-aio/php/public/index.php(83): AIO\Docker\DockerActionManager->ConnectMasterContainerToNetwork()
#2 /var/www/docker-aio/php/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(39): Closure->{closure:/var/www/docker-aio/php/public/index.php:74}(Object(GuzzleHttp\Psr7\ServerRequest), Object(GuzzleHttp\Psr7\Response), Array)
#3 /var/www/docker-aio/php/vendor/slim/slim/Slim/Routing/Route.php(362): Slim\Handlers\Strategies\RequestResponse->__invoke(Object(Closure), Object(GuzzleHttp\Psr7\ServerRequest), Object(GuzzleHttp\Psr7\Response), Array)
#4 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Slim\Routing\Route->handle(Object(GuzzleHttp\Psr7\ServerRequest))
#5 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Slim\MiddlewareDispatcher->handle(Object(GuzzleHttp\Psr7\ServerRequest))
#6 /var/www/docker-aio/php/vendor/slim/slim/Slim/Routing/Route.php(321): Slim\MiddlewareDispatcher->handle(Object(GuzzleHttp\Psr7\ServerRequest))
#7 /var/www/docker-aio/php/vendor/slim/slim/Slim/Routing/RouteRunner.php(74): Slim\Routing\Route->run(Object(GuzzleHttp\Psr7\ServerRequest))
#8 /var/www/docker-aio/php/vendor/slim/csrf/src/Guard.php(482): Slim\Routing\RouteRunner->handle(Object(GuzzleHttp\Psr7\ServerRequest))
#9 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(178): Slim\Csrf\Guard->process(Object(GuzzleHttp\Psr7\ServerRequest), Object(Slim\Routing\RouteRunner))
#10 /var/www/docker-aio/php/vendor/slim/twig-view/src/TwigMiddleware.php(117): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(GuzzleHttp\Psr7\ServerRequest))
#11 /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))
#12 /var/www/docker-aio/php/src/Middleware/AuthMiddleware.php(36): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(GuzzleHttp\Psr7\ServerRequest))
#13 /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))
#14 /var/www/docker-aio/php/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(77): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(GuzzleHttp\Psr7\ServerRequest))
#15 /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))
#16 /var/www/docker-aio/php/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(GuzzleHttp\Psr7\ServerRequest))
#17 /var/www/docker-aio/php/vendor/slim/slim/Slim/App.php(209): Slim\MiddlewareDispatcher->handle(Object(GuzzleHttp\Psr7\ServerRequest))
#18 /var/www/docker-aio/php/vendor/slim/slim/Slim/App.php(193): Slim\App->handle(Object(GuzzleHttp\Psr7\ServerRequest))
#19 /var/www/docker-aio/php/public/index.php(198): Slim\App->run()
#20 {main}
Tips: To display error details in HTTP response set "displayErrorDetails" to true in the ErrorHandler constructor.

docker ps -a

localuser@dock-cloud:/srv/all-in-one$ docker ps -a
CONTAINER ID   IMAGE                                               COMMAND                  CREATED          STATUS                     PORTS                                                                                                                                     NAMES
a56d87e7d359   nextcloud/all-in-one:latest                         "/start.sh"              18 minutes ago   Up 18 minutes (healthy)    0.0.0.0:80->80/tcp, [::]:80->80/tcp, 0.0.0.0:8080->8080/tcp, [::]:8080->8080/tcp, 0.0.0.0:8443->8443/tcp, [::]:8443->8443/tcp, 9000/tcp   nextcloud-aio-mastercontainer
c6f288094d7f   ghcr.io/nextcloud-releases/aio-apache:latest        "/start.sh /usr/bin/…"   7 weeks ago      Up 18 minutes (healthy)    80/tcp, 0.0.0.0:11000->11000/tcp                                                                                                          nextcloud-aio-apache
344711c0e84e   ghcr.io/nextcloud-releases/aio-nextcloud:latest     "/start.sh /usr/bin/…"   7 weeks ago      Up 18 minutes (healthy)    9000/tcp                                                                                                                                  nextcloud-aio-nextcloud
0dd80d724e06   ghcr.io/nextcloud-releases/aio-imaginary:latest     "/start.sh"              7 weeks ago      Up 18 minutes (healthy)                                                                                                                                              nextcloud-aio-imaginary
9c07aababdaf   ghcr.io/nextcloud-releases/aio-redis:latest         "/start.sh"              7 weeks ago      Up 18 minutes (healthy)    6379/tcp                                                                                                                                  nextcloud-aio-redis
c0700e5150c9   ghcr.io/nextcloud-releases/aio-postgresql:latest    "/start.sh"              7 weeks ago      Up 18 minutes (healthy)    5432/tcp                                                                                                                                  nextcloud-aio-database
d22b0f16b996   ghcr.io/nextcloud-releases/aio-notify-push:latest   "/start.sh"              7 weeks ago      Up 18 minutes (healthy)                                                                                                                                              nextcloud-aio-notify-push
73623d93f060   ghcr.io/nextcloud-releases/aio-talk:latest          "/start.sh superviso…"   7 weeks ago      Up 18 minutes (healthy)    0.0.0.0:3478->3478/tcp, 0.0.0.0:3478->3478/udp, [::]:3478->3478/tcp, [::]:3478->3478/udp                                                  nextcloud-aio-talk
13a640d9cb57   ghcr.io/nextcloud-releases/aio-watchtower:latest    "/start.sh"              7 weeks ago      Exited (0) 7 weeks ago                                                                                                                                               nextcloud-aio-watchtower
25d003728508   nextcloud/aio-collabora:latest                      "/start-collabora-on…"   12 months ago    Exited (0) 11 months ago                                                                                                                                             nextcloud-aio-collabora
d79954be6ebb   nextcloud/aio-borgbackup:latest                     "/start.sh"              13 months ago    Exited (0) 13 months ago                                                                                                                                             nextcloud-aio-borgbackup

docker version

localuser@dock-cloud:~$ docker version
Client: Docker Engine - Community
 Version:           29.1.3
 API version:       1.52
 Go version:        go1.25.5
 Git commit:        f52814d
 Built:             Fri Dec 12 14:49:37 2025
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          29.1.3
  API version:      1.52 (minimum version 1.44)
  Go version:       go1.25.5
  Git commit:       fbf3ed2
  Built:            Fri Dec 12 14:49:37 2025
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v2.2.1
  GitCommit:        dea7da592f5d1d2b7755e3a161be07f43fad8f75
 runc:
  Version:          1.3.4
  GitCommit:        v1.3.4-0-gd6d73eb8
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Configuration

AIO docker-compose.yml

localuser@dock-cloud:/srv/all-in-one$ cat docker-compose.yml 
version: "3.8"

volumes:
  nextcloud_aio_mastercontainer:
    name: nextcloud_aio_mastercontainer # This line is not allowed to be changed

services:
  nextcloud:
    image: nextcloud/all-in-one:latest # Must be changed to 'nextcloud/all-in-one:latest-arm64' when used with an arm64 CPU
    restart: always
    container_name: nextcloud-aio-mastercontainer # This line is not allowed to be changed
    volumes:
      - nextcloud_aio_mastercontainer:/mnt/docker-aio-config # This line is not allowed to be changed
      - /var/run/docker.sock:/var/run/docker.sock:ro # May be changed on macOS, Windows or docker rootless. See the applicable documentation
    ports:
      - 80:80 # Can be removed when running behind a reverse proxy. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
      - 8080:8080
      - 8443:8443 # Can be removed when running behind a reverse proxy. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
    environment: # Is needed when using any of the options below
      #- SKIP_DOMAIN_VALIDATION=true
       - TRUSTED_CACERTS_DIR=/srv/certs # CA certificates in this directory will be trusted by the OS of the nexcloud container (Useful e.g. for LDAPS) See See https://github.com/nextcloud/all-in-one#how-to-trust-user-defiend-certification-authorities-ca
       - APACHE_PORT=11000 # Is needed when running behind a reverse proxy. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
       - APACHE_IP_BINDING=0.0.0.0 # Should be set when running behind a reverse proxy that is running on the same host. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
      # - TALK_PORT=3478 # This allows to adjust the port that the talk container is using.
       - NEXTCLOUD_DATADIR=/mnt/ncdata # Allows to set the host directory for Nextcloud's datadir. See https://github.com/nextcloud/all-in-one#how-to-change-the-default-location-of-nextclouds-datadir
       - NEXTCLOUD_MOUNT=/mnt/external # Allows the Nextcloud container to access the chosen directory on the host. See https://github.com/nextcloud/all-in-one#how-to-allow-the-nextcloud-container-to-access-directories-on-the-host
      # - DOCKER_SOCKET_PATH=/var/run/docker.sock # Needs to be specified if the docker socket on the host is not located in the default '/var/run/docker.sock'. Otherwise mastercontainer updates will fail.
      # - DISABLE_BACKUP_SECTION=true # Setting this to true allows to hide the backup section in the AIO interface.
       - NEXTCLOUD_UPLOAD_LIMIT=100G # Can be adjusted if you need more. See https://github.com/nextcloud/all-in-one#how-to-adjust-the-upload-limit-for-nextcloud
       - NEXTCLOUD_MAX_TIME=36000 # Can be adjusted if you need more. See https://github.com/nextcloud/all-in-one#how-to-adjust-the-max-execution-time-for-nextcloud
      # - COLLABORA_SECCOMP_DISABLED=false # Setting this to true allows to disable Collabora's Seccomp feature. See https://github.com/nextcloud/all-in-one#how-to-disable-collaboras-seccomp-feature

  # # Optional: Caddy reverse proxy. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
  # # You can find further examples here: https://github.com/nextcloud/all-in-one/discussions/588
  # caddy:
  #   image: caddy:alpine
  #   restart: always
  #   container_name: caddy
  #   volumes:
  #     - ./Caddyfile:/etc/caddy/Caddyfile
  #     - ./certs:/certs
  #     - ./config:/config
  #     - ./data:/data
  #     - ./sites:/srv
  #   network_mode: "host"

I wanted to upgrade my Nextcloud using AIO. So I looked at the release notes and read: “API version that is used by the mastercontainer was upgraded to v1.44”. I was already running the minimal version of docker but just to be safe I upgraded my OS before trying the AIO update. The OS upgrade was followed by a reboot. After that reboot I wanted to start the AIO update but I am no longer able to use the Nextcloud AIO interface:
Slim Application Error.

The nextcloud-aio-mastercontainer log shows:

Message: Could not create the nextcloud-aio network: {"message":"client version 1.41 is too old. 

Which is strange as docker version shows:

  Version:          29.1.3
  API version:      1.52 (minimum version 1.44)

What am I missing here?

Ah, it looks like we should have made the release notes a bit more explicit how to upgrade to this version properly.

You should be able to upgrade the mastercontainer to the new version with sudo docker start nextcloud-aio-watchtower

1 Like