I updraged NC 21.0.2 to NC 21.0.3 and the Cron stopped working. Actually the Cron gets executed but NC still tells that it haven’t run for x minutes. Executing the Cron on the command line (sudo -u http php74 /var/services/web/nextcloud/cron.php) does not generate any error. There is no error in nc log, apache error log or access log. The command gets executed immediately.
If I disable memcache.local in the NC config, the execution takes a few seconds and the cron is actually executed and NC shows that the cron ran this moment.
Nextcloud version (eg, 20.0.5): working: 21.0.2, not working 21.0.3
Operating system and version (eg, Ubuntu 20.04): Linux (Synology DSM)
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4
PHP version (eg, 7.4): 7.4 (tried also 7.3 on the cli)
The issue you are facing:
See description above
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Update to NC 21.0.3
- Execute nextcloud/cron.php
- Check admin area if cron got executed
The output of your Nextcloud log in Admin > Logging:
nothing
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
$CONFIG = array (
'instanceid' => 'X',
'passwordsalt' => 'X',
'secret' => 'X',
'trusted_domains' =>
array (
X
),
'datadirectory' => '/volume1/ncData',
'overwrite.cli.url' => 'X',
'dbtype' => 'mysql',
'version' => '21.0.3.1',
'dbname' => 'X',
'dbhost' => 'X:3307',
'dbtableprefix' => 'oc_',
'dbuser' => 'X',
'dbpassword' => 'X',
'logtimezone' => 'Europe/Berlin',
'installed' => true,
'memcache.local' => '\\OC\\Memcache\\APCu',
'mail_from_address' => 'nextcloud',
'mail_smtpmode' => 'smtp',
'mail_domain' => 'X',
'loglevel' => 2,
'updater.server.url' => 'https://updates.nextcloud.com/updater_server/',
'maintenance' => false,
'theme' => '',
'htaccess.RewriteBase' => '/',
'updater.release.channel' => 'stable',
'filelocking.enabled' => true,
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'X',
'port' => 6379,
'timeout' => 0,
'password' => '',
'dbindex' => 0,
),
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpauth' => 1,
'mail_smtphost' => 'X',
'mail_smtpport' => '587',
'mail_smtpname' => 'X',
'mail_smtppassword' => 'X',
'mysql.utf8mb4' => true,
'app_install_overwrite' =>
array (
0 => 'calendar',
),
'default_phone_region' => 'AT',
'updater.secret' => 'X',
);
The output of your Apache/nginx/system log in /var/log/____
:
nothing