Support intro
Sorry to hear you’re facing problems
help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
example
Or for longer, use three backticks above and below the code snippet:
longer
example
here
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
Nextcloud version : 27.1.7
Operating system and version : Ubuntu 20.04.6 LTS
Apache or nginx version : Apache/2.4.41 (Ubuntu)
PHP version (eg, 7.4): I couldn't find the version - says php not installed????
The issue you are facing: Periodically I see AIO being unable to start containers after an update.
Is this the first time you’ve seen this error? : No
Steps to replicate it:
-
Allow AIO to perform regular updates. These seems to be scheduled for Friday evenings.
-
I see this in AIO:
so I stop and update the containers. -
But no matter how long I wait this is all that I get. When it happens, I typically I arrive Monday morning to complaints the server is “down”. It doesn’t matter what I do in the AIO interface at this juncture, it always brings back the above showing stopped containers… Until I reboot the host I am stuck in a cycle where AIO only reports the above.
-
After a host reboot AIO show this for a while as I would expect on updating:
-
which then completes and I am updates and back with users able to log in again:
The output of your Nextcloud log in Admin > Logging:
{"reqId":"qOe4Ukh3hT8dmfsffAV4","level":2,"time":"2023-12-11T14:01:06+00:00","remoteAddr":"","user":"--","app":"OC\\Log\\Rotate","method":"","url":"--","message":"Log file \"/var/www/html/data/nextcloud.log\" was over 10485760 bytes, moved to \"/var/www/html/data/nextcloud.log.1\"","userAgent":"--","version":"27.1.4.1","data":{"app":"OC\\Log\\Rotate"}}
{"reqId":"qOe4Ukh3hT8dmfsffAV4","level":3,"time":"2023-12-11T14:01:09+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Error while running background job (class: OCA\\Files_Trashbin\\BackgroundJob\\ExpireTrash, arguments: )","userAgent":"--","version":"27.1.4.1","exception":{"Exception":"OC\\ServerNotAvailableException","Message":"Lost connection to LDAP server.","Code":0,"Trace":[{"file":"/var/www/html/apps/user_ldap/lib/LDAP.php","line":420,"function":"processLDAPError","class":"OCA\\User_LDAP\\LDAP","type":"->","args":["*** sensitive parameters replaced ***","*** sensitive parameters replaced ***",-1,"Can't contact LDAP server"]},{"file":"/var/www/html/apps/user_ldap/lib/LDAP.php","line":309,"function":"postFunctionCall","class":"OCA\\User_LDAP\\LDAP","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/user_ldap/lib/LDAP.php","line":67,"function":"invokeLDAPMethod","class":"OCA\\User_LDAP\\LDAP","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/user_ldap/lib/Connection.php","line":719,"function":"bind","class":"OCA\\User_LDAP\\LDAP","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/user_ldap/lib/Connection.php","line":630,"function":"bind","class":"OCA\\User_LDAP\\Connection","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/user_ldap/lib/Connection.php","line":238,"function":"establishConnection","class":"OCA\\User_LDAP\\Connection","type":"->","args":[]},{"file":"/var/www/html/apps/user_ldap/lib/Connection.php","line":246,"function":"init","class":"OCA\\User_LDAP\\Connection","type":"->","args":[]},{"file":"/var/www/html/apps/user_ldap/lib/Access.php","line":190,"function":"getConnectionResource","class":"OCA\\User_LDAP\\Connection","type":"->","args":[]},{"file":"/var/www/html/apps/user_ldap/lib/User_LDAP.php","line":324,"function":"readAttribute","class":"OCA\\User_LDAP\\Access","type":"->","args":["cn=paul d. o'rorke,cn=users,dc=pdf-xchange,dc=net","","(&(|(objectclass=person))(|(|(memberof=CN=sales,OU=sales,OU=staff,DC=pdf-xchange,DC=net)(primaryGroupID=1106))(|(memberof=CN=dev-team,OU=dev team,OU=staff,DC=pdf-xchange,DC=net)(primaryGroupID=1104))(|(memberof=CN=support,OU=support,OU=staff,DC=pdf-xchange,DC=net)(primaryGroupID=1105))(|(memberof=CN=Management,CN=Users,DC=pdf-xchange,DC=net)(primaryGroupID=1108))))"]},{"function":"userExistsOnLDAP","class":"OCA\\User_LDAP\\User_LDAP","type":"->","args":[["OCA\\User_LDAP\\User\\User"],false]},{"file":"/var/www/html/apps/user_ldap/lib/User_Proxy.php","line":110,"function":"call_user_func_array","args":[[["OCA\\User_LDAP\\User_LDAP"],"userExistsOnLDAP"],["A942253C-FC53-4359-AA7C-B228C0CECC2B",false]]},{"file":"/var/www/html/apps/user_ldap/lib/Proxy.php","line":140,"function":"walkBackends","class":"OCA\\User_LDAP\\User_Proxy","type":"->","args":["A942253C-FC53-4359-AA7C-B228C0CECC2B","userExistsOnLDAP",["A942253C-FC53-4359-AA7C-B228C0CECC2B",false]]},{"file":"/var/www/html/apps/user_ldap/lib/User_Proxy.php","line":246,"function":"handleRequest","class":"OCA\\User_LDAP\\Proxy","type":"->","args":["A942253C-FC53-4359-AA7C-B228C0CECC2B","userExistsOnLDAP",["A942253C-FC53-4359-AA7C-B228C0CECC2B",false]]},{"file":"/var/www/html/apps/user_ldap/lib/User_Proxy.php","line":223,"function":"userExistsOnLDAP","class":"OCA\\User_LDAP\\User_Proxy","type":"->","args":["A942253C-FC53-4359-AA7C-B228C0CECC2B"]},{"file":"/var/www/html/lib/private/User/Manager.php","line":630,"function":"userExists","class":"OCA\\User_LDAP\\User_Proxy","type":"->","args":["A942253C-FC53-4359-AA7C-B228C0CECC2B"]},{"file":"/var/www/html/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php","line":81,"function":"callForSeenUsers","class":"OC\\User\\Manager","type":"->","args":[["Closure"]]},{"file":"/var/www/html/lib/public/BackgroundJob/Job.php","line":81,"function":"run","class":"OCA\\Files_Trashbin\\BackgroundJob\\ExpireTrash","type":"->","args":[null]},{"file":"/var/www/html/lib/public/BackgroundJob/TimedJob.php","line":103,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->","args":[["OC\\BackgroundJob\\JobList"]]},{"file":"/var/www/html/lib/public/BackgroundJob/TimedJob.php","line":93,"function":"start","class":"OCP\\BackgroundJob\\TimedJob","type":"->","args":[["OC\\BackgroundJob\\JobList"]]},{"file":"/var/www/html/cron.php","line":152,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->","args":[["OC\\BackgroundJob\\JobList"],["OC\\Log"]]}],"File":"/var/www/html/apps/user_ldap/lib/LDAP.php","Line":382,"message":"Error while running background job (class: OCA\\Files_Trashbin\\BackgroundJob\\ExpireTrash, arguments: )","exception":{},"CustomMessage":"Error while running background job (class: OCA\\Files_Trashbin\\BackgroundJob\\ExpireTrash, arguments: )"}}
The output of your config.php file in /path/to/nextcloud
(make sure you 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' => 'REDACTED',
'port' => 6379,
),
'overwritehost' => 'files.tracker-software.support',
'overwriteprotocol' => 'https',
'passwordsalt' => 'REDACTED',
'secret' => 'REDACTED',
'trusted_domains' =>
array (
0 => 'localhost',
1 => 'files.tracker-software.support',
),
'datadirectory' => '/mnt/ncdata',
'dbtype' => 'pgsql',
'version' => '27.1.7.2',
'overwrite.cli.url' => 'https://files.tracker-software.support/',
'dbname' => 'nextcloud_database',
'dbhost' => 'nextcloud-aio-database',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'oc_nextcloud',
'dbpassword' => 'REDACTED',
'installed' => true,
'instanceid' => 'REDACTED',
'maintenance' => false,
'updater.release.channel' => 'stable',
'updatedirectory' => '/nc-updater',
'loglevel' => '2',
'app_install_overwrite' =>
array (
0 => 'nextcloud-aio',
),
'log_type' => 'file',
'logfile' => '/var/www/html/data/nextcloud.log',
'log_rotate_size' => '10485760',
'log.condition' =>
array (
'apps' =>
array (
0 => 'admin_audit',
),
),
'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',
),
'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',
'htaccess.RewriteBase' => '/',
'files_external_allow_create_new_local' => true,
'trusted_proxies' =>
array (
0 => '127.0.0.1',
1 => '::1',
),
'allow_local_remote_servers' => true,
'mail_domain' => 'tracker-software.com',
'mail_from_address' => 'paul',
'mail_smtphost' => 'tmail.tracker-software.com',
'mail_sendmailmode' => 'smtp',
'mail_smtpport' => '587',
'mail_smtpauth' => 1,
'mail_smtpname' => 'trackersoftware\\po\'rorke',
'mail_smtppassword' => 'M1llbay!Jun2023!',
'default_phone_region' => 'CA',
'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
'davstorage.request_timeout' => 3600,
'dbpersistent' => false,
'uth.bruteforce.protection.enabled' => true,
'ratelimit.protection.enabled' => true,
'appsallowlist' => false,
);
The output of your Apache/nginx/system log in /var/log/____
:
I am having a challenge finding these. The scripts in logrotate.d suggest it should be in /var/log/apache2 but that location is empty.
From what I can see these appears to be an issue connecting to my Active Directory Domain controller. Why would it require a host restart?
What can I do so that these updates do not prevent user access. I am having a challenge convincing users to use the service because they complain it is unavailable too often.