The Basics
- Nextcloud Server version (e.g., 29.x.x):
- 30.0.11.1
- Operating system and version (e.g., Ubuntu 24.04):
- Synology DSM 7.2.2-72806 Update 3
- Web server and version (e.g, Apache 2.4.25):
- Whichever version of Apache AIO installs
- Reverse proxy and version _(e.g. nginx 1.27.2)
- Synology Built-In Reverse Proxy
- PHP version (e.g, 8.3):
- Whichever version of PHP AIO installs
- Is this the first time you’ve seen this error? (Yes / No):
- yes
- When did this problem seem to first start?
- After initial setup
- 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:
When I complete AIO setup, Nextcloud never comes up.
Steps to replicate it (hint: details matter!):
- Use the following compose.yaml in Portainer on Synology to install AIO:
services:
nextcloud-aio-mastercontainer:
image: ghcr.io/nextcloud-releases/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'!
network_mode: bridge # add to the same network as docker run would do
ports:
# - 80:80 # Can be removed when running behind a web server or reverse proxy (like Apache, Nginx, Caddy, Cloudflare Tunnel and else). See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
- 28080:8080
# - 8443:8443 # Can be removed when running behind a web server or reverse proxy (like Apache, Nginx, Caddy, Cloudflare Tunnel and else). See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
environment: # Is needed when using any of the options below
# AIO_DISABLE_BACKUP_SECTION: false # Setting this to true allows to hide the backup section in the AIO interface. See https://github.com/nextcloud/all-in-one#how-to-disable-the-backup-section
APACHE_PORT: 11000 # Is needed when running behind a web server or reverse proxy (like Apache, Nginx, Caddy, 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, Caddy, Cloudflare Tunnel and else) that is running on the same host. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
# APACHE_ADDITIONAL_NETWORK: frontend_net # (Optional) Connect the apache container to an additional docker network. Needed when behind a web server or reverse proxy (like Apache, Nginx, Caddy, Cloudflare Tunnel and else) running in a different docker network on same server. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
# BORG_RETENTION_POLICY: --keep-within=7d --keep-weekly=4 --keep-monthly=6 # Allows to adjust borgs retention policy. See https://github.com/nextcloud/all-in-one#how-to-adjust-borgs-retention-policy
# 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
# FULLTEXTSEARCH_JAVA_OPTIONS: "-Xms1024M -Xmx1024M" # Allows to adjust the fulltextsearch java options. See https://github.com/nextcloud/all-in-one#how-to-adjust-the-fulltextsearch-java-options
# NEXTCLOUD_DATADIR: /mnt/ncdata # 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
NEXTCLOUD_MOUNT: /volume1/ # 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
# NEXTCLOUD_UPLOAD_LIMIT: 16G # 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: 3600 # Can be adjusted if you need more. See https://github.com/nextcloud/all-in-one#how-to-adjust-the-max-execution-time-for-nextcloud
# NEXTCLOUD_MEMORY_LIMIT: 512M # Can be adjusted if you need more. See https://github.com/nextcloud/all-in-one#how-to-adjust-the-php-memory-limit-for-nextcloud
# NEXTCLOUD_TRUSTED_CACERTS_DIR: /path/to/my/cacerts # CA certificates in this directory will be trusted by the OS of the nextcloud container (Useful e.g. for LDAPS) See https://github.com/nextcloud/all-in-one#how-to-trust-user-defined-certification-authorities-ca
# NEXTCLOUD_STARTUP_APPS: deck twofactor_totp tasks calendar contacts notes # Allows to modify the Nextcloud apps that are installed on starting AIO the first time. See https://github.com/nextcloud/all-in-one#how-to-change-the-nextcloud-apps-that-are-installed-on-the-first-startup
# NEXTCLOUD_ADDITIONAL_APKS: imagemagick # This allows to add additional packages to the Nextcloud container permanently. Default is imagemagick but can be overwritten by modifying this value. See https://github.com/nextcloud/all-in-one#how-to-add-os-packages-permanently-to-the-nextcloud-container
# NEXTCLOUD_ADDITIONAL_PHP_EXTENSIONS: imagick # This allows to add additional php extensions to the Nextcloud container permanently. Default is imagick but can be overwritten by modifying this value. See https://github.com/nextcloud/all-in-one#how-to-add-php-extensions-permanently-to-the-nextcloud-container
NEXTCLOUD_ENABLE_DRI_DEVICE: true # This allows to enable the /dev/dri device for containers that profit from it. ⚠️⚠️⚠️ Warning: this only works if the '/dev/dri' device is present on the host! If it should not exist on your host, don't set this to true as otherwise the Nextcloud container will fail to start! See https://github.com/nextcloud/all-in-one#how-to-enable-hardware-acceleration-for-nextcloud
# NEXTCLOUD_ENABLE_NVIDIA_GPU: true # This allows to enable the NVIDIA runtime and GPU access for containers that profit from it. ⚠️⚠️⚠️ Warning: this only works if an NVIDIA gpu is installed on the server. See https://github.com/nextcloud/all-in-one#how-to-enable-hardware-acceleration-for-nextcloud.
# NEXTCLOUD_KEEP_DISABLED_APPS: false # Setting this to true will keep Nextcloud apps that are disabled in the AIO interface and not uninstall them if they should be installed. See https://github.com/nextcloud/all-in-one#how-to-keep-disabled-apps
# SKIP_DOMAIN_VALIDATION: false # This should only be set to true if things are correctly configured. See https://github.com/nextcloud/all-in-one?tab=readme-ov-file#how-to-skip-the-domain-validation
# TALK_PORT: 3478 # This allows to adjust the port that the talk container is using which is exposed on the host. See https://github.com/nextcloud/all-in-one#how-to-adjust-the-talk-port
# WATCHTOWER_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. For macos it needs to be '/var/run/docker.sock'
# security_opt: ["label:disable"] # Is needed when using SELinux
# # Optional: Caddy reverse proxy. See https://github.com/nextcloud/all-in-one/discussions/575
# # Alternatively, use Tailscale if you don't have a domain yet. See https://github.com/nextcloud/all-in-one/discussions/5439
# # Hint: You need to uncomment APACHE_PORT: 11000 above, adjust cloud.example.com to your domain and uncomment the necessary docker volumes at the bottom of this file in order to make it work
# # 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:
# - 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: |
# # Adjust cloud.example.com to your domain below
# https://cloud.example.com:443 {
# reverse_proxy localhost:11000
# }
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
# caddy_certs:
# caddy_config:
# caddy_data:
# caddy_sites:
- Follow the guide to setup the Synology reverse proxy.
- Complete the AIO setup
- Let it run
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.
Connection to nextcloud-aio-database (172.19.0.13) 5432 port [tcp/postgresql] succeeded!
+ '[' -f /dev-dri-group-was-added ']'
+ set +x
Connection to nextcloud-aio-redis (172.19.0.12) 6379 port [tcp/redis] succeeded!
Initializing nextcloud 30.0.11.1 ...
Connection to nextcloud-aio-database (172.19.0.13) 5432 port [tcp/postgresql] succeeded!
+ '[' -f /dev-dri-group-was-added ']'
+ set +x
Connection to nextcloud-aio-redis (172.19.0.12) 6379 port [tcp/redis] succeeded!
Initializing nextcloud 30.0.11.1 ...
This repeats until the container simply exits.
Web server / Reverse Proxy
The output of your Apache/nginx/system log in /var/log/____
:
Waiting for Nextcloud to start...
This line is repeated over 100 times.
I’m on a Synology DS220+ and I was wondering, does AIO require an up-to-date/supported version of Docker Engine? If it does, then Synology with it’s unsupported version of Docker (v24) could be the cause of my issues.
EDIT: My Nextcloud AIO has updated itself to version 11.0.0 and Nextcloud itself updated to version 31.0.5.1 but nothing has changed. The following is the log of my Nextcloud container:
Connection to nextcloud-aio-database (172.19.0.3) 5432 port [tcp/postgresql] succeeded!
+ '[' -f /dev-dri-group-was-added ']'
++ find /dev -maxdepth 1 -mindepth 1 -name dri
+ '[' -n /dev/dri ']'
++ find /dev/dri -maxdepth 1 -mindepth 1 -name renderD128
+ '[' -n /dev/dri/renderD128 ']'
++ stat -c %g /dev/dri/renderD128
7
+ groupadd -g 937 render2
++ cut -d: -f1
++ getent group 937
+ GROUP=render2
+ usermod -aG render2 www-data
+ touch /dev-dri-group-was-added
+ set +x
Enabling Imagick...
WARNING: opening from cache https://dl-cdn.alpinelinux.org/alpine/v3.21/main: No such file or directory
WARNING: opening from cache https://dl-cdn.alpinelinux.org/alpine/v3.21/community: No such file or directory
Connection to nextcloud-aio-redis (172.19.0.4) 6379 port [tcp/redis] succeeded!
Initializing nextcloud 31.0.5.1 ...
Connection to nextcloud-aio-database (172.19.0.3) 5432 port [tcp/postgresql] succeeded!
+ '[' -f /dev-dri-group-was-added ']'
+ set +x
Connection to nextcloud-aio-redis (172.19.0.4) 6379 port [tcp/redis] succeeded!
Initializing nextcloud 31.0.5.1 ...
Connection to nextcloud-aio-database (172.19.0.3) 5432 port [tcp/postgresql] succeeded!
+ '[' -f /dev-dri-group-was-added ']'
+ set +x
Connection to nextcloud-aio-redis (172.19.0.4) 6379 port [tcp/redis] succeeded!
Initializing nextcloud 31.0.5.1 ...
You can see that it keeps restarting. I have tried with /dev/dri off and on but I know the device is there, I currently have it attached to the Plex server on the same hardware.
EDIT 2: Something has changed! Unfortunately it’s still failing. Here’s my current output:
2025-06-11T09:10:34.190114100Z Connection to nextcloud-aio-database (172.19.0.3) 5432 port [tcp/postgresql] succeeded!
2025-06-11T09:10:34.193450725Z + '[' -f /dev-dri-group-was-added ']'
2025-06-11T09:10:34.194710069Z ++ find /dev -maxdepth 1 -mindepth 1 -name dri
2025-06-11T09:10:34.295622617Z + '[' -n /dev/dri ']'
2025-06-11T09:10:34.296870477Z ++ find /dev/dri -maxdepth 1 -mindepth 1 -name renderD128
2025-06-11T09:10:34.297630633Z + '[' -n /dev/dri/renderD128 ']'
2025-06-11T09:10:34.298231226Z ++ stat -c %g /dev/dri/renderD128
2025-06-11T09:10:34.675241697Z + GID=937
2025-06-11T09:10:34.675814598Z + groupadd -g 937 render2
2025-06-11T09:10:36.721276185Z ++ cut -d: -f1
2025-06-11T09:10:36.724040162Z ++ getent group 937
2025-06-11T09:10:36.925092101Z + GROUP=render2
2025-06-11T09:10:36.925247230Z + usermod -aG render2 www-data
2025-06-11T09:10:38.487638511Z + touch /dev-dri-group-was-added
2025-06-11T09:10:38.490440896Z + set +x
2025-06-11T09:10:38.610330252Z Enabling Imagick...
2025-06-11T09:11:01.767560646Z WARNING: opening from cache https://dl-cdn.alpinelinux.org/alpine/v3.21/main: No such file or directory
2025-06-11T09:11:01.768099277Z WARNING: opening from cache https://dl-cdn.alpinelinux.org/alpine/v3.21/community: No such file or directory
2025-06-11T09:11:02.753394661Z Connection to nextcloud-aio-redis (172.19.0.4) 6379 port [tcp/redis] succeeded!
2025-06-11T09:11:05.846944434Z Initializing nextcloud 31.0.5.1 ...
2025-06-11T09:13:51.745356016Z Connection to nextcloud-aio-database (172.19.0.3) 5432 port [tcp/postgresql] succeeded!
2025-06-11T09:13:51.751048551Z + '[' -f /dev-dri-group-was-added ']'
2025-06-11T09:13:51.751578710Z + set +x
2025-06-11T09:13:54.025265167Z Connection to nextcloud-aio-redis (172.19.0.4) 6379 port [tcp/redis] succeeded!
2025-06-11T09:14:06.248081744Z Initializing nextcloud 31.0.5.1 ...
2025-06-11T09:19:46.416709692Z Connection to nextcloud-aio-database (172.19.0.3) 5432 port [tcp/postgresql] succeeded!
2025-06-11T09:19:47.043065635Z + '[' -f /dev-dri-group-was-added ']'
2025-06-11T09:19:47.043198667Z + set +x
2025-06-11T09:19:49.232663582Z Connection to nextcloud-aio-redis (172.19.0.4) 6379 port [tcp/redis] succeeded!
2025-06-11T09:20:10.459720877Z Initializing nextcloud 31.0.5.1 ...
2025-06-11T09:43:47.255954424Z Connection to nextcloud-aio-database (172.19.0.3) 5432 port [tcp/postgresql] succeeded!
2025-06-11T09:43:47.471691583Z + '[' -f /dev-dri-group-was-added ']'
2025-06-11T09:43:47.471838111Z + set +x
2025-06-11T09:43:50.462016645Z Connection to nextcloud-aio-redis (172.19.0.4) 6379 port [tcp/redis] succeeded!
2025-06-11T09:44:37.486457974Z Initializing nextcloud 31.0.5.1 ...
2025-06-11T09:47:49.082998091Z Connection to nextcloud-aio-database (172.19.0.3) 5432 port [tcp/postgresql] succeeded!
2025-06-11T09:47:49.219491917Z + '[' -f /dev-dri-group-was-added ']'
2025-06-11T09:47:49.219592869Z + set +x
2025-06-11T09:47:49.943883097Z Connection to nextcloud-aio-redis (172.19.0.4) 6379 port [tcp/redis] succeeded!
2025-06-11T09:48:16.375670214Z Initializing nextcloud 31.0.5.1 ...
2025-06-11T09:53:35.884659903Z Connection to nextcloud-aio-database (172.19.0.3) 5432 port [tcp/postgresql] succeeded!
2025-06-11T09:53:36.007335645Z + '[' -f /dev-dri-group-was-added ']'
2025-06-11T09:53:36.007423299Z + set +x
2025-06-11T09:53:37.447702767Z Connection to nextcloud-aio-redis (172.19.0.4) 6379 port [tcp/redis] succeeded!
2025-06-11T09:53:52.729008068Z Initializing nextcloud 31.0.5.1 ...
2025-06-11T09:59:20.840557417Z Connection to nextcloud-aio-database (172.19.0.3) 5432 port [tcp/postgresql] succeeded!
2025-06-11T09:59:20.915842679Z + '[' -f /dev-dri-group-was-added ']'
2025-06-11T09:59:20.915936663Z + set +x
2025-06-11T09:59:21.371100616Z Connection to nextcloud-aio-redis (172.19.0.4) 6379 port [tcp/redis] succeeded!
2025-06-11T09:59:33.214385064Z Initializing nextcloud 31.0.5.1 ...
2025-06-11T10:03:57.861685559Z Initializing finished
2025-06-11T10:03:57.862900318Z New Nextcloud instance.
2025-06-11T10:03:58.052434379Z Installing with pgsql database
2025-06-11T10:03:58.052578142Z Starting Nextcloud installation...
2025-06-11T10:04:56.332835228Z Connection to nextcloud-aio-database (172.19.0.3) 5432 port [tcp/postgresql] succeeded!
2025-06-11T10:04:58.514390538Z now
2025-06-11T10:04:58.514826760Z -------------------------------
2025-06-11T10:04:58.514857089Z 2025-06-11 06:04:58.513562-04
2025-06-11T10:04:58.514886793Z (1 row)
2025-06-11T10:04:58.514914314Z
2025-06-11T10:04:58.692385689Z + '[' -f /dev-dri-group-was-added ']'
2025-06-11T10:04:58.692736131Z + set +x
2025-06-11T10:04:58.712903858Z Connection to nextcloud-aio-redis (172.19.0.4) 6379 port [tcp/redis] succeeded!
2025-06-11T10:04:59.466861747Z Nextcloud is not installed - only a limited number of commands are available
2025-06-11T10:04:59.690097392Z Nextcloud is not installed - only a limited number of commands are available
2025-06-11T10:04:59.747146211Z Appdata is not present. Did you maybe change the datadir after the initial Nextcloud installation? This is not supported!
2025-06-11T10:04:59.823811611Z See https://github.com/nextcloud/all-in-one#how-to-change-the-default-location-of-nextclouds-datadir
2025-06-11T10:04:59.823850444Z If you adjusted the datadir to be located on an external drive, make sure that the drive is still mounted!
2025-06-11T10:04:59.823887084Z In the datadir was found:
2025-06-11T10:04:59.823916520Z total 0
2025-06-11T10:04:59.823941173Z drwxr-x--- 1 www-data root 26 Jun 11 06:04 .
2025-06-11T10:04:59.823973784Z drwxr-xr-x 1 root root 12 Jun 11 05:10 ..
2025-06-11T10:04:59.824005003Z -rw-r--r-- 1 www-data www-data 0 Jun 11 06:04 nextcloud.log
2025-06-11T10:05:23.022192642Z Connection to nextcloud-aio-database (172.19.0.3) 5432 port [tcp/postgresql] succeeded!
2025-06-11T10:05:25.061080917Z now
2025-06-11T10:05:25.061526096Z -------------------------------
2025-06-11T10:05:25.061556735Z 2025-06-11 06:05:25.060252-04
2025-06-11T10:05:25.061586239Z (1 row)
2025-06-11T10:05:25.061612951Z
2025-06-11T10:05:25.223940372Z + '[' -f /dev-dri-group-was-added ']'
2025-06-11T10:05:25.224078593Z + set +x
2025-06-11T10:05:25.242084308Z Connection to nextcloud-aio-redis (172.19.0.4) 6379 port [tcp/redis] succeeded!
2025-06-11T10:05:25.807572134Z Nextcloud is not installed - only a limited number of commands are available
2025-06-11T10:05:26.471490490Z Nextcloud is not installed - only a limited number of commands are available
2025-06-11T10:05:26.394824857Z Appdata is not present. Did you maybe change the datadir after the initial Nextcloud installation? This is not supported!
2025-06-11T10:05:26.471605800Z See https://github.com/nextcloud/all-in-one#how-to-change-the-default-location-of-nextclouds-datadir
2025-06-11T10:05:26.471641831Z If you adjusted the datadir to be located on an external drive, make sure that the drive is still mounted!
2025-06-11T10:05:26.471731523Z In the datadir was found:
2025-06-11T10:05:26.471764253Z total 0
2025-06-11T10:05:26.471788205Z drwxr-x--- 1 www-data root 26 Jun 11 06:05 .
2025-06-11T10:05:26.471820202Z drwxr-xr-x 1 root root 12 Jun 11 05:10 ..
2025-06-11T10:05:26.471845427Z -rw-r--r-- 1 www-data www-data 0 Jun 11 06:04 nextcloud.log
Needless to say, I haven’t touched the datadir at all. Isn’t it supposed to be in a docker volume? The lines between the hyphens have been repeating for the last 90 minutes so far. Since I’m not trying to change the datadir, the link there doesn’t help me much. I have noticed that the gap between the line Starting Nextcloud installation...
and the first Nextcloud is not installed - only a limited number of commands are available
is only about a minute. Did the installation simply fail?