Nextcloud mastercontainer resets every minute

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):
    *
    • 32.0.0
  • Operating system and version (e.g., Ubuntu 24.04):
    • Synology 7.3
  • Web server and version (e.g, Apache 2.4.25):
    • 2.4.65
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • ??e
  • PHP version (e.g, 8.3):
    • 8.4.15
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • In the morning of 29 november after the backup and restart of all containers
  • 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:

[After the restart on the 29 of november I get an error message that nextcloud-aio-mastercontainer is stopped every 1,5 minutes. Nextcloud works fine but I can’t stop this container

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

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.

date	stream	content
2025/12/01 10:41:46	stdout	If you are on TrueNas SCALE, see https://github.com/nextcloud/all-in-one#can-i-run-aio-on-truenas-scale
2025/12/01 10:41:46	stdout	If SELinux is enabled on your host, see https://github.com/nextcloud/all-in-one#are-there-known-problems-when-selinux-is-enabled
2025/12/01 10:41:46	stdout	Did you maybe remove group read permissions for the docker socket? AIO needs them in order to access the docker socket.
2025/12/01 10:41:46	stdout	e[0;31mCannot connect to the docker socket. Cannot proceed.e[0m
2025/12/01 10:40:41	stdout	If you are on TrueNas SCALE, see https://github.com/nextcloud/all-in-one#can-i-run-aio-on-truenas-scale
2025/12/01 10:40:41	stdout	If SELinux is enabled on your host, see https://github.com/nextcloud/all-in-one#are-there-known-problems-when-selinux-is-enabled
2025/12/01 10:40:41	stdout	Did you maybe remove group read permissions for the docker socket? AIO needs them in order to access the docker socket.
2025/12/01 10:40:41	stdout	e[0;31mCannot connect to the docker socket. Cannot proceed.e[0m
2025/12/01 10:39:36	stdout	If you are on TrueNas SCALE, see https://github.com/nextcloud/all-in-one#can-i-run-aio-on-truenas-scale
2025/12/01 10:39:36	stdout	If SELinux is enabled on your host, see https://github.com/nextcloud/all-in-one#are-there-known-problems-when-selinux-is-enabled
2025/12/01 10:39:36	stdout	Did you maybe remove group read permissions for the docker socket? AIO needs them in order to access the docker socket.
2025/12/01 10:39:36	stdout	e[0;31mCannot connect to the docker socket. Cannot proceed.e[0m
2025/12/01 10:38:31	stdout	If you are on TrueNas SCALE, see https://github.com/nextcloud/all-in-one#can-i-run-aio-on-truenas-scale
2025/12/01 10:38:31	stdout	If SELinux is enabled on your host, see https://github.com/nextcloud/all-in-one#are-there-known-problems-when-selinux-is-enabled
2025/12/01 10:38:31	stdout	Did you maybe remove group read permissions for the docker socket? AIO needs them in order to access the docker socket.
2025/12/01 10:38:31	stdout	e[0;31mCannot connect to the docker socket. Cannot proceed.e[0m
2025/12/01 10:37:26	stdout	If you are on TrueNas SCALE, see https://github.com/nextcloud/all-in-one#can-i-run-aio-on-truenas-scale
2025/12/01 10:37:26	stdout	If SELinux is enabled on your host, see https://github.com/nextcloud/all-in-one#are-there-known-problems-when-selinux-is-enabled
2025/12/01 10:37:26	stdout	Did you maybe remove group read permissions for the docker socket? AIO needs them in order to access the docker socket.
2025/12/01 10:37:26	stdout	e[0;31mCannot connect to the docker socket. Cannot proceed.e[0m
2025/12/01 10:36:21	stdout	If you are on TrueNas SCALE, see https://github.com/nextcloud/all-in-one#can-i-run-aio-on-truenas-scale
2025/12/01 10:36:21	stdout	If SELinux is enabled on your host, see https://github.com/nextcloud/all-in-one#are-there-known-problems-when-selinux-is-enabled
2025/12/01 10:36:21	stdout	Did you maybe remove group read permissions for the docker socket? AIO needs them in order to access the docker socket.
2025/12/01 10:36:21	stdout	e[0;31mCannot connect to the docker socket. Cannot proceed.e[0m
2025/12/01 10:35:13	stdout	If you are on TrueNas SCALE, see https://github.com/nextcloud/all-in-one#can-i-run-aio-on-truenas-scale
2025/12/01 10:35:13	stdout	If SELinux is enabled on your host, see https://github.com/nextcloud/all-in-one#are-there-known-problems-when-selinux-is-enabled
2025/12/01 10:35:13	stdout	Did you maybe remove group read permissions for the docker socket? AIO needs them in order to access the docker socket.
2025/12/01 10:35:13	stdout	e[0;31mCannot connect to the docker socket. Cannot proceed.e[0m
2025/12/01 10:34:08	stdout	If you are on TrueNas SCALE, see https://github.com/nextcloud/all-in-one#can-i-run-aio-on-truenas-scale
2025/12/01 10:34:08	stdout	If SELinux is enabled on your host, see https://github.com/nextcloud/all-in-one#are-there-known-problems-when-selinux-is-enabled
2025/12/01 10:34:08	stdout	Did you maybe remove group read permissions for the docker socket? AIO needs them in order to access the docker socket.
2025/12/01 10:34:08	stdout	e[0;31mCannot connect to the docker socket. Cannot proceed.e[0m
2025/12/01 10:33:03	stdout	If you are on TrueNas SCALE, see https://github.com/nextcloud/all-in-one#can-i-run-aio-on-truenas-scale
2025/12/01 10:33:03	stdout	If SELinux is enabled on your host, see https://github.com/nextcloud/all-in-one#are-there-known-problems-when-selinux-is-enabled
2025/12/01 10:33:03	stdout	Did you maybe remove group read permissions for the docker socket? AIO needs them in order to access the docker socket.
2025/12/01 10:33:03	stdout	e[0;31mCannot connect to the docker socket. Cannot proceed.e[0m PASTE HERE

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

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

date	stream	content
2025/12/01 10:16:14	stdout	[Mon Dec 01 09:16:13.882829 2025] [core:notice] [pid 127:tid 127] AH00094: Command line: '/usr/local/apache2/bin/httpd -D FOREGROUND'
2025/12/01 10:16:13	stdout	[Mon Dec 01 09:16:13.882708 2025] [mpm_event:notice] [pid 127:tid 127] AH00489: Apache/2.4.65 (Unix) configured -- resuming normal operations
2025/12/01 10:16:12	stdout	{"level":"info","ts":1764580572.706416,"msg":"serving initial configuration"}
2025/12/01 10:16:12	stdout	{"level":"info","ts":1764580572.6973937,"msg":"adapted config to JSON","adapter":"caddyfile"}
2025/12/01 10:16:12	stdout	{"level":"info","ts":1764580572.6918359,"msg":"using config from file","file":"/tmp/Caddyfile"}
2025/12/01 10:16:12	stdout	{"level":"info","ts":1764580572.6916244,"msg":"GOMEMLIMIT is updated","package":"github.com/KimMachineGun/automemlimit/memlimit","GOMEMLIMIT":7362960998,"previous":9223372036854775807}
2025/12/01 10:16:12	stdout	{"level":"warn","ts":1764580572.6901038,"msg":"failed to set GOMAXPROCS","error":"open /sys/fs/cgroup/cpu/cpu.cfs_quota_us: no such file or directory"}
2025/12/01 10:16:10	stdout	  import pkg_resources
2025/12/01 10:16:10	stdout	/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/12/01 10:15:55	stdout	Connection to nextcloud-aio-nextcloud (172.18.0.3) 9000 port [tcp/*] succeeded!
2025/12/01 10:15:50	stdout	Waiting for Nextcloud to start... PASTE HERE

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!):

<?php
$CONFIG = array (
  'one-click-instance' => true,
  'one-click-instance.user-limit' => 100,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      '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' => 
  array (
    'host' => 'nextcloud-aio-redis',
    'password' => 'c288caeb5cfc8213b253dc9bb73889ddd662433b473bd5f8',
    'port' => 6379,
  ),
  'overwritehost' => 'nextcloud.depijl-mz.synology.me',
  'overwriteprotocol' => 'https',
  'passwordsalt' => 'A2czktRihnyl9rRDITaNT5AkLTJ2df',
  'secret' => 'jJ5++BU7+mmcyh0iNQiibE9ocuOsLeGUQZRSdXC+cfPN2sNp',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => 'nextcloud.depijl-mz.synology.me',
  ),
  'datadirectory' => '/mnt/ncdata',
  'dbtype' => 'pgsql',
  'version' => '32.0.0.13',
  'overwrite.cli.url' => 'https://nextcloud.depijl-mz.synology.me/',
  'dbname' => 'nextcloud_database',
  'dbhost' => 'nextcloud-aio-database:5432',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_nextcloud',
  'dbpassword' => '0026429d9a057b528380ff275433bda967019cf18db90461',
  'installed' => true,
  'instanceid' => 'ocvbwgfx88rm',
  'maintenance' => false,
  'updatechecker' => true,
  'loglevel' => 2,
  'log_type' => 'file',
  'logfile' => '/var/www/html/data/nextcloud.log',
  'log_rotate_size' => 10485760,
  'log.condition' => 
  array (
    'apps' => 
    array (
      0 => 'admin_audit',
    ),
  ),
  'preview_max_x' => 2048,
  'preview_max_y' => 2048,
  'jpeg_quality' => 60,
  'enabledPreviewProviders' => 
  array (
    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' => true,
  'trusted_proxies' => 
  array (
    0 => '127.0.0.1',
    1 => '::1',
    10 => '172.18.0.0/16',
  ),
  'preview_imaginary_url' => 'http://nextcloud-aio-imaginary:9000',
  'preview_imaginary_key' => 'f0936f96c0ac340bfd7ab9e803d231bf0bf3d1e87598c8f4',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'admin',
  'mail_domain' => 'depijl-mz.nl',
  'mail_smtphost' => 'mail.antagonist.nl',
  'mail_smtpport' => '465',
  'mail_smtpauth' => true,
  'mail_smtpname' => 'm.reijnen@depijl-mz.nl',
  'mail_smtppassword' => '#24DitjaarWeernieuweWijnin5Flessen!',
  'forbidden_filename_basenames' => 
  array (
    0 => 'con',
    1 => 'prn',
    2 => 'aux',
    3 => 'nul',
    4 => 'com0',
    5 => 'com1',
    6 => 'com2',
    7 => 'com3',
    8 => 'com4',
    9 => 'com5',
    10 => 'com6',
    11 => 'com7',
    12 => 'com8',
    13 => 'com9',
    14 => 'com¹',
    15 => 'com²',
    16 => 'com³',
    17 => 'lpt0',
    18 => 'lpt1',
    19 => 'lpt2',
    20 => 'lpt3',
    21 => 'lpt4',
    22 => 'lpt5',
    23 => 'lpt6',
    24 => 'lpt7',
    25 => 'lpt8',
    26 => 'lpt9',
    27 => 'lpt¹',
    28 => 'lpt²',
    29 => 'lpt³',
  ),
  'forbidden_filename_characters' => 
  array (
    0 => '<',
    1 => '>',
    2 => ':',
    3 => '"',
    4 => '|',
    5 => '?',
    6 => '*',
    7 => '\\',
    8 => '/',
  ),
  'forbidden_filename_extensions' => 
  array (
    0 => ' ',
    1 => '.',
    2 => '.filepart',
    3 => '.part',
  ),
  'mail_smtpsecure' => 'ssl',
  'twofactor_enforced' => 'false',
  'twofactor_enforced_groups' => 
  array (
    0 => 'admin',
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
    0 => 'Pod Governance',
  ),
  'app_install_overwrite' => 
  array (
    0 => 'ransomware_protection',
    1 => 'nextcloud-aio',
  ),
  'data-fingerprint' => '8306b406b4c467c861a06ec352a0eabf',
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
  'updater.release' => 
  array (
    'channel' => 'stable',
  ),
  'config_preset' => 3,
  'default_phone_region' => 'NL',
);
PASTE HERE

Apps

The output of occ app:list (if possible).

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.
1 Like

Hi, see AIO mastercontainer fails to start after update (20251128_084214) due to Docker socket connection error on Synology Ā· Issue #7223 Ā· nextcloud/all-in-one Ā· GitHub

2 Likes

Thank you! I tried this and it worked!

I supose I have to revert back to ā€˜latest’ when the issue is solved in the new image?

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