The Basics
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
Nextcloud AIO v11.3.0
- Nextcloud Server version (e.g., 29.x.x):
Nextcloud 31.0.6
- Operating system and version (e.g., Ubuntu 24.04):
Debian 12 (Version 12.11)
- Reverse proxy and version _(e.g. nginx 1.27.2)
Caddy 2.6.2 (running on VPS)
- Custom Environment Variables
- APACHE_PORT=11000
- APACHE_IP_BINDING=0.0.0.0
- SKIP_DOMAIN_VALIDATION=false
- PHP_DEFAULT_SOCKET_TIMEOUT=1200
- PHP_MEMORY_LIMIT=2048M
-
Is this the first time youāve seen this error? (Yes / No):
No
-
When did this problem seem to first start?
Since setting up the AIO two weeks ago
-
Are you using CloudfIare, mod_security, or similar? (Yes / No)
I don't think so
Summary of the issue you are facing:
The nextcloud-aio-nextcloud container consistently gets stuck after the scheduled internal backup process completes. The last visible log message is āEnabling Imagickā¦ā, after which the container hangs, making the entire Nextcloud instance inaccessible until a manual intervention is performed.
Steps to replicate it (hint: details matter!):
- Configure a scheduled backup in the Nextcloud AIO Interface.
- Let the scheduled backup run automatically.
- After the backup completes, the AIO mastercontainer attempts to restart all stopped containers.
- Observe that the
nextcloud-aio-nextcloudcontainer hangs and never becomes healthy.
Log entries
nextcloud-aio-nextcloud
now
-------------------------------
2025-07-17 06:50:27.941412+00
(1 row)
+ '[' -f /dev-dri-group-was-added ']'
++ find /dev -maxdepth 1 -mindepth 1 -name dri
+ '[' -n '' ']'
+ set +x
Enabling Imagick...
Configuration
Nextcloud
Output of occ config:list system
docker exec -u www-data nextcloud-aio-nextcloud php /var/www/html/occ config:list system
{
"system": {
"one-click-instance": true,
"one-click-instance.user-limit": 100,
"memcache.local": "\\OC\\Memcache\\APCu",
"apps_paths": [
{
"path": "\/var\/www\/html\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/var\/www\/html\/custom_apps",
"url": "\/custom_apps",
"writable": true
}
],
"check_data_directory_permissions": false,
"memcache.distributed": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"password": "***REMOVED SENSITIVE VALUE***",
"port": 6379
},
"overwritehost": "my.dyndns.here",
"overwriteprotocol": "https",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"localhost",
"my.dyndns.here"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "pgsql",
"version": "31.0.6.2",
"overwrite.cli.url": "https:\/\/my.dyndns.here\/",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"instanceid": "***REMOVED SENSITIVE VALUE***",
"maintenance": false,
"updatechecker": false,
"loglevel": 2,
"log_type": "file",
"logfile": "\/var\/www\/html\/data\/nextcloud.log",
"log_rotate_size": 10485760,
"log.condition": {
"apps": [
"admin_audit"
]
},
"preview_max_x": 2048,
"preview_max_y": 2048,
"jpeg_quality": 60,
"enabledPreviewProviders": {
"1": "OC\\Preview\\Image",
"2": "OC\\Preview\\MarkDown",
"3": "OC\\Preview\\MP3",
"4": "OC\\Preview\\TXT",
"5": "OC\\Preview\\OpenDocument",
"6": "OC\\Preview\\Movie",
"7": "OC\\Preview\\Krita",
"0": "OC\\Preview\\Imaginary",
"23": "OC\\Preview\\ImaginaryPDF"
},
"enable_previews": true,
"upgrade.disable-web": true,
"mail_smtpmode": "smtp",
"trashbin_retention_obligation": "auto, 30",
"versions_retention_obligation": "auto, 30",
"activity_expire_days": 30,
"simpleSignUpLink.shown": false,
"share_folder": "\/Shared",
"one-click-instance.link": "https:\/\/nextcloud.com\/all-in-one\/",
"upgrade.cli-upgrade-link": "https:\/\/github.com\/nextcloud\/all-in-one\/discussions\/2726",
"updatedirectory": "\/nc-updater",
"maintenance_window_start": 100,
"allow_local_remote_servers": true,
"davstorage.request_timeout": 3600,
"documentation_url.server_logs": "https:\/\/github.com\/nextcloud\/all-in-one\/discussions\/5425",
"htaccess.RewriteBase": "\/",
"dbpersistent": false,
"auth.bruteforce.protection.enabled": true,
"ratelimit.protection.enabled": true,
"files_external_allow_create_new_local": false,
"trusted_proxies": "***REMOVED SENSITIVE VALUE***",
"preview_imaginary_url": "***REMOVED SENSITIVE VALUE***",
"preview_imaginary_key": "***REMOVED SENSITIVE VALUE***",
"mail_smtpsecure": "ssl",
"mail_sendmailmode": "smtp",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "465",
"mail_smtpauth": true,
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"data-fingerprint": "09d349fd9737a7fb78bf2dc85e19fa29",
"memories.db.triggers.fcu": true,
"memories.exiftool": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/exiftool-amd64-musl",
"memories.vod.path": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/go-vod-amd64",
"memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
"memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
"DOMAIN": "my.dyndns.here"
}
}
Apps
The output of occ app:list (if possible).
docker exec -u www-data nextcloud-aio-nextcloud php /var/www/html/occ app:list
Enabled:
- activity: 4.0.0
- admin_audit: 1.21.0
- bookmarks: 15.1.2
- bruteforcesettings: 4.0.0
- calendar: 5.3.5
- circles: 31.0.0
- cloud_federation_api: 1.14.0
- comments: 1.21.0
- contacts: 7.1.5
- contactsinteraction: 1.12.0
- dashboard: 7.11.0
- dav: 1.33.0
- deck: 1.15.1
- federatedfilesharing: 1.21.0
- federation: 1.21.0
- files: 2.3.1
- files_downloadlimit: 4.0.0
- files_pdfviewer: 4.0.0
- files_reminders: 1.4.0
- files_sharing: 1.23.1
- files_trashbin: 1.21.0
- files_versions: 1.24.0
- firstrunwizard: 4.0.0
- integration_paperless: 1.0.6
- logreader: 4.0.0
- lookup_server_connector: 1.19.0
- memories: 7.6.0
- news: 26.0.2
- nextcloud-aio: 0.8.0
- nextcloud_announcements: 3.0.0
- notifications: 4.0.0
- notify_push: 1.1.0
- oauth2: 1.19.1
- password_policy: 3.0.0
- photos: 4.0.0-dev.1
- previewgenerator: 5.9.0
- privacy: 3.0.0
- profile: 1.0.0
- provisioning_api: 1.21.0
- recognize: 9.0.3
- recommendations: 4.0.0
- related_resources: 2.0.0
- serverinfo: 3.0.0
- settings: 1.14.0
- sharebymail: 1.21.0
- support: 3.0.0
- survey_client: 3.0.0
- systemtags: 1.21.1
- tasks: 0.16.1
- text: 5.0.0
- theming: 2.6.1
- twofactor_backupcodes: 1.20.0
- twofactor_totp: 13.0.0-dev.0
- updatenotification: 1.21.0
- user_status: 1.11.0
- viewer: 4.0.0
- weather_status: 1.11.0
- webhook_listeners: 1.2.0
- workflowengine: 2.13.0
Disabled:
- app_api: 5.0.2 (installed 5.0.2)
- encryption: 2.19.0
- files_external: 1.23.0
- suspicious_login: 9.0.1
- twofactor_nextcloud_notification: 5.0.0
- user_ldap: 1.22.0
Expected Behaviour The container should fully start after the backup process is complete.
Actual Behaviour The containerās startup process halts. The final entry in the Docker logs for the container is Enabling Imagick.... The container remains in this unresponsive state indefinitely.
Workaround The only way to recover the instance is a specific manual restart sequence:
- Manually stop all AIO containers.
- Manually start only the
nextcloud-aio-mastercontainer. - The mastercontainer then starts all dependent containers. However, sometimes the
nextcloud-aio-nextcloudcontainer requires one additional, manual restart before the instance becomes fully available.
Diagnostic Hypothesis
While the log indicates the process hangs at āEnabling Imagickā¦ā, an investigation inside the unresponsive container suggests a possible root cause.
Connecting via docker exec revealed a running process that appears to be stuck:
Bash
# ps aux | grep apk
root 32 0.0 0.0 12048 10156 ? S 06:01 0:00 apk add --no-cache --virtual .docker-php-ext-enable-deps binutils
This suggests the entrypoint script may be hanging on a package installation command that runs after the Imagick step, possibly due to a network timing issue. Any subsequent manual attempt to run apk fails with a database lock error.
Additional Troubleshooting Information
The following configuration changes have been tried and did not solve the problem, pointing away from a simple environment issue:
The Docker daemon is configured with static DNS servers in /etc/docker/daemon.json.
The MTU of the Docker network has been set in /etc/docker/daemon.json to match the MTU of the Wireguard interface (wg0).
Any help or suggestions on how to approach this would be greatly appreciated.