Nextcloud version : 18.0.0.10
Operating system and version: Ubuntu Server 18.04 LTS
Apache or nginx version : 2.4.29
PHP version : 7.2.24
The issue you are facing:
My nextcloud is complaining about cron.php not beeing executed.
Is this the first time you’ve seen this error? : Y
Steps to replicate it:
- None,
The output of your Nextcloud log in Admin > Logging:
PASTE HERE
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'passwordsalt' => '***',
'secret' => '****',
'trusted_domains' =>
array (
0 => 'localhost',
1 => '192.168.0.10',
2 => 'cloud.***.net',
3 => 'cloud.***.net',
),
'datadirectory' => '/mnt/ncdata',
'dbtype' => 'pgsql',
'version' => '18.0.0.10',
'overwrite.cli.url' => 'https://cloud.quirinlippl.net/',
'dbname' => 'nextcloud_db',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'ncadmin',
'dbpassword' => '****',
'installed' => true,
'instanceid' => 'ocns94zifdu4',
'log_type' => 'file',
'logfile' => '/var/log/nextcloud/nextcloud.log',
'loglevel' => '2',
'mail_smtpmode' => 'smtp',
'remember_login_cookie_lifetime' => '1800',
'log_rotate_size' => '10485760',
'trashbin_retention_obligation' => 'auto, 180',
'versions_retention_obligation' => 'auto, 365',
'simpleSignUpLink.shown' => 'false',
'memcache.local' => '\\OC\\Memcache\\APCu',
'filelocking.enabled' => true,
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/var/run/redis/redis-server.sock',
'port' => 0,
'timeout' => 0.5,
'dbindex' => 0,
'password' => '***',
),
'logtimezone' => 'Europe/Berlin',
'htaccess.RewriteBase' => '/',
'enable_previews' => true,
'preview_libreoffice_path' => '/usr/bin/libreoffice',
'maintenance' => false,
'mail_smtpsecure' => 'tls',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => '***',
'mail_domain' => '***.com',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpauth' => 1,
'mail_smtphost' => 'SMTP.office365.com',
'mail_smtpport' => '587',
'mail_smtpname' => '***@***.com',
'mail_smtppassword' => '****',
'app_install_overwrite' =>
array (
0 => 'ocr',
1 => 'dropit',
),
);
The output of your Apache/nginx/system log in /var/log/____
:
[Thu Feb 06 06:25:01.525468 2020] [mpm_event:notice] [pid 16070:tid 140586132143040] AH00489: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 configured -- resuming normal operations
[Thu Feb 06 06:25:01.527570 2020] [core:notice] [pid 16070:tid 140586132143040] AH00094: Command line: '/usr/sbin/apache2'
Hi Guys,
i recently noticed my cron.php was not executed since 6 days now. I’m wondering what is causing this?
When I look into /var/mail/www-data I can see my cron tasks I added into
crontab -u www-data -e
are beeing executed.
My crontab:
*/5 * * * * php -f /var/www/nextcloud/cron.php
*/15 * * * * /var/www/nextcloud/occ preview:pre-generate >> /var/log/previewgenerator.log
30 2 1 * * /var/www/nextcloud/occ trashbin:cleanup
0 */1 * * * /var/www/nextcloud/occ maps:scan-photos
*/10 * * * * /var/www/nextcloud/occ files:cleanup
Has anyone a clue?
My root crontab is:
#*/5 * * * * php -f /var/www/nextcloud/cron.php > /dev/null 2>&1
0 2 * * 1 /var/scripts/update.sh minor >> /var/log/nextcloud/update.log
3 */12 * * * /var/scripts/letsencryptrenew.sh
@weekly /var/scripts/dockerprune.sh
I installed nextcloud via the VM Script.
quintz