Nextcloud version 17.0.2
Operating system and version Debian Buster
Apache or nginx version Apache 2.4.38-3+deb10u3
PHP version 7.3
The issue you are facing:
The Overview page on the web UI reports:
Last background job execution ran 3 days ago. Something seems wrong. Check the background job settings.
This message started after I switched from webcron to system cron, as directed by the News app.
I have followed the instructions for setting up a cron job, and checking /var/log/syslog I can see that the cron job is in fact running every 5 minutes.
crontab -u www-data -l ... */5 * * * * php -f /var/www/nextcloud/cron.php
root@XXXXX:/var/log# grep CRON /var/log/syslog | tail Dec 27 09:45:02 cabbagetown CRON: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1) Dec 27 09:50:01 cabbagetown CRON: (www-data) CMD (php -f /var/www/nextcloud/cron.php) Dec 27 09:55:01 cabbagetown CRON: (www-data) CMD (php -f /var/www/nextcloud/cron.php) Dec 27 09:55:01 cabbagetown CRON: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1) Dec 27 10:00:01 cabbagetown CRON: (www-data) CMD (php -f /var/www/nextcloud/cron.php) Dec 27 10:05:01 cabbagetown CRON: (www-data) CMD (php -f /var/www/nextcloud/cron.php) Dec 27 10:05:01 cabbagetown CRON: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1) Dec 27 10:09:01 cabbagetown CRON: (root) CMD ( [ -x /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean) Dec 27 10:09:01 cabbagetown CRON: (root) CMD ( [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi) Dec 27 10:10:02 cabbagetown CRON: (www-data) CMD (php -f /var/www/nextcloud/cron.php)
I don’t know what the root cron job is, it’s not something I set manually. I assume it was set up by the Debian package manager.
Is this the first time you’ve seen this error? (Y):
Steps to replicate it:
- login to the web interface with an admin user
- check the overview tab in the setting menu
The output of your Nextcloud log in Admin > Logging:
Many info lines from the updater, related to updating from 17.0.1 to 17.0.2, which I did hoping it might fix the problem (it didn’t). Prior to that some errors regarding the php-pgsql module, which I fixed before getting the current problem. (that error hasn’t recurred since).
[updater] Info: \OC\Updater::resetLogLevel: Reset log level to Warning(2) GET /nextcloud/core/ajax/update.php?requesttoken=pQXphw9ceMumJNOcpsTBWK2YecXqY7ZaDFX81vJ9ppc%3D%3A627C4jgPTPL8b6fxwbzyOuWrM6SFFoFoNGaasrEW59g%3D from 18.104.22.168 at 2019-12-24T03:34:59+00:00
The output (I think you mean contents?) of your config.php file in
/path/to/nextcloud (make sure you remove any identifiable information!):
<?php $CONFIG = array ( 'passwordsalt' => <deleted>, 'secret' => <deleted>, 'trusted_domains' => array ( 0 => <deleted>,, ), 'datadirectory' => '/var/www/nextcloud/data', 'dbtype' => 'mysql', 'version' => '22.214.171.124', 'overwrite.cli.url' => 'http://localhost', 'dbname' => 'nextcloud', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'instanceid' => <deleted>, 'dbuser' => 'oc_admin', 'dbpassword' => <deleted>, 'mysql.utf8mb4' => true, 'installed' => true, 'maintenance' => false, 'updater.secret' => <deleted>, 'theme' => '', 'loglevel' => 2, 'mail_from_address' => <deleted>, 'mail_smtpmode' => 'smtp', 'mail_sendmailmode' => 'smtp', 'mail_domain' => <deleted>, 'mail_smtphost' => <deleted>, 'mail_smtpport' => '465', 'mail_smtpauthtype' => 'PLAIN', 'mail_smtpsecure' => 'ssl', 'mail_smtpauth' => 1, 'mail_smtpname' => <deleted>, 'mail_smtppassword' => <deleted>, );
The output of your Apache/nginx/system log in
root@XXXXX:/var/log/apache2# cat error.log [Fri Dec 27 00:00:02.124691 2019] [mpm_prefork:notice] [pid 606] AH00163: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured -- resuming normal operations [Fri Dec 27 00:00:02.124749 2019] [core:notice] [pid 606] AH00094: Command line: '/usr/sbin/apache2' [Fri Dec 27 06:20:23.753092 2019] [php7:error] [pid 22236] [client 126.96.36.199:58077] script '/var/www/html/router.php' not found or unable to stat [Fri Dec 27 06:26:09.119708 2019] [php7:error] [pid 22256] [client 188.8.131.52:59826] script '/var/www/html/download.php' not found or unable to stat, referer: http://plantarum.ca/download.php?file=../../../../../../../../../../../../etc/passwd [Fri Dec 27 07:51:58.030937 2019] [php7:error] [pid 22239] [client 184.108.40.206:51777] script '/var/www/html/router.php' not found or unable to stat [Fri Dec 27 10:11:30.667923 2019] [authz_core:error] [pid 25507] [client 220.127.116.11:33124] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
I have additional issues in my Overview page. I have been working down the list, and haven’t tried to fix these yet:
Your web server is not properly set up to resolve “/.well-known/caldav”.
Further information can be found in the documentation.
Your web server is not properly set up to resolve “/.well-known/carddav”.
Further information can be found in the documentation.
No memory cache has been configured. To enhance performance, please
configure a memcache, if available. Further information can be found in
Some columns in the database are missing a conversion to big int. Due to
the fact that changing column types on big tables could take some time
they were not changed automatically. By running ‘occ
db:convert-filecache-bigint’ those pending changes could be applied
manually. This operation needs to be made while the instance is offline.
For further details read the documentation page about this.
Is my cron job running properly? What do I need to do to fix the cron job, or set up nextcloud so that it recognizes the cron job is running as expected?