Verbose cron.php messages

Hi,

just upgraded to 11.0.1 yesterday and from that moment on I get this with every cron.php run:

{“reqId”:“8krmFSV+2ym+gpbot/nf”,“remoteAddr”:"",“app”:“cron”,“message”:“Run OCA\Files\BackgroundJob\ScanFiles job with ID 1”,“level”:0,“time”:“2017-02-13T09:30:00+00:00”,“method”:"–",“url”:"/nextcloud/cron.php",“user”:"–",“version”:“11.0.1.2”}
{“reqId”:“8krmFSV+2ym+gpbot/nf”,“remoteAddr”:"",“app”:“cron”,“message”:“Finished OCA\Files\BackgroundJob\ScanFiles job with ID 1”,“level”:0,“time”:“2017-02-13T09:30:00+00:00”,“method”:"–",“url”:"/nextcloud/cron.php",“user”:"–",“version”:“11.0.1.2”}
{“reqId”:“8krmFSV+2ym+gpbot/nf”,“remoteAddr”:"",“app”:“cron”,“message”:“Run OCA\Files\BackgroundJob\DeleteOrphanedItems job with ID 2”,“level”:0,“time”:“2017-02-13T09:30:00+00:00”,“method”:"–",“url”:"/nextcloud/cron.php",“user”:"–",“version”:“11.0.1.2”}
{“reqId”:“8krmFSV+2ym+gpbot/nf”,“remoteAddr”:"",“app”:“cron”,“message”:“Finished OCA\Files\BackgroundJob\DeleteOrphanedItems job with ID 2”,“level”:0,“time”:“2017-02-13T09:30:00+00:00”,“method”:"–",“url”:"/nextcloud/cron.php",“user”:"–",“version”:“11.0.1.2”}
{“reqId”:“8krmFSV+2ym+gpbot/nf”,“remoteAddr”:"",“app”:“cron”,“message”:“Run OCA\Files\BackgroundJob\CleanupFileLocks job with ID 3”,“level”:0,“time”:“2017-02-13T09:30:00+00:00”,“method”:"–",“url”:"/nextcloud/cron.php",“user”:"–",“version”:“11.0.1.2”}
{“reqId”:“8krmFSV+2ym+gpbot/nf”,“remoteAddr”:"",“app”:“cron”,“message”:“Finished OCA\Files\BackgroundJob\CleanupFileLocks job with ID 3”,“level”:0,“time”:“2017-02-13T09:30:00+00:00”,“method”:"–",“url”:"/nextcloud/cron.php",“user”:"–",“version”:“11.0.1.2”}
{“reqId”:“8krmFSV+2ym+gpbot/nf”,“remoteAddr”:"",“app”:“cron”,“message”:“Run OCA\Activity\BackgroundJob\EmailNotification job with ID 4”,“level”:0,“time”:“2017-02-13T09:30:00+00:00”,“method”:"–

and much more. Any idea how this can be adjusted?

Regards,
JP

Hi,
if i understood correctly you want to hide the cron messages?
Edit your config.php

sudo -u www-data vi /var/www/nextcloud/config/config.php

and set

‘cron_log’ => false,

cheers, carsten

Yes and no. I did not have these cron messages before the upgrade. Hiding all cron messages altogether will result in followup problems due to not recognizing errors.

So the question is: Why is the cron command suddenly spitting those messages in the log? Is this reflecting an error (something is wrong in my setup) or a bug (obvious stuff being logged verbosely even though it should not be)?

Regards,
JP

please ask the dev-team for a statement (at github)

@LukasReschke @nickvergessen

If this is the output, it basically means that your log file can not be written correctly. Make sure your cron runs with the correct user (e.g. www-data) and make sure that the log file can be written by this user.

1 Like

Great @nickvergessen. That was indeed it. I do not remember ever changing the permissions of the log files but hey… as long as it now works. I hope the log rotation preserves the ownership. But indeed the log file currently is filled and the e-mails stopped. Thanks very much!