Nextcloud version: 18.0.2
Operating system and version: Ubuntu 18.04.4
Apache or nginx version: Apache 2.4.29
PHP version: 7.3.16
The issue you are facing:
Running cron.php
takes a variable amount of time but always takes more than 5 minutes. Often, it will take over 30 minutes. This can cause significant problems because cron
just ends up spawning more and more copies of the script.
Curiously, a comment in the script itself suggests that it should be run every 15 minutes:
// We only ask for jobs for 14 minutes, because after 15 minutes the next
// system cron task should spawn.
$endTime = time() + 14 * 60;
I don’t know why the script is taking so long to finish running and, consequently, I’m not sure how frequently I should be running the script. This situation appears to be made worse by the fact that the script seems to need to be run frequently in order to resolve problems identified in https://github.com/nextcloud/documentserver_community/issues/12
Is this the first time you’ve seen this error? (Y/N): N
Steps to replicate it:
- Configure
cron
to runcron.php
every 5 minutes. - Watch the number of
cron.php
tasks multiply …
The output of the Nextcloud log file is 8Mb. It can be downloaded from https://fileserver.linaro.org/s/cZ7Dc5LNa5TC8Ms
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => '',
'passwordsalt' => '',
'secret' => '',
'trusted_domains' =>
array (
0 => 'fileserver.linaro.org',
1 => 'fileserver-ec2.linaro.org',
),
'datadirectory' => '/srv/nextcloud-data',
'overwrite.cli.url' => 'https://fileserver.linaro.org/',
'htaccess.RewriteBase' => '/',
'dbtype' => 'mysql',
'version' => '18.0.2.2',
'dbname' => 'owncloud',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => 'ownclouddb',
'dbpassword' => '',
'logtimezone' => 'UTC',
'installed' => true,
'ldapIgnoreNamingRules' => false,
'mail_smtpmode' => 'smtp',
'mail_smtphost' => '127.0.0.1',
'mail_from_address' => 'fileserver-dont-reply',
'mail_domain' => 'linaro.org',
'loglevel' => 3,
'lost_password_link' => '',
'mail_smtpport' => '25',
'theme' => '',
'maintenance' => false,
'updatechecker' => false,
'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory',
'mysql.utf8mb4' => true,
'skeletondirectory' => '',
'memcache.local' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'localhost',
'port' => 6379,
),
'data-fingerprint' => 'a657e209ca3b7be23f878f862c344fe2',
);
The output of your Apache/nginx/system log in /var/log/____
:
… these are massive files. If someone wants them, I’ll put them somewhere but I’d prefer to dig out specific information from the logs if possible.