help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
example
Or for longer, use three backticks above and below the code snippet:
longer
example
here
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can
Nextcloud version _13.0.6
Operating system and version (eg, Ubuntu 17.04):
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.1):
I have the same behavior with 19.04.
What is the reason that the cron option is grayed out?
I have configured the cron job on my server and I am sure that it was running well in the past but now I got the error that the cron job fails and now the cron option is grayed out.
The command is not the problem: I configured the cron job to cron (NOT AJAX, not Webcron) and it runs fine for weeks.
But now I get the cron job error, what is not a surprise, because the config changed to webcron (which I have never configured, so it must fail) and my favorite option “cron” is grayed out.
Kann ich adhoc nicht beantworten. Wohin zielt die Frage? Interessant wäre es zu erfahren, was Nextcloud bewegt die “Cron” Option zu deaktivieren . Die Doku sagt nichts dazu. Da steht man dann hilflos davor.
So there is no error running it from terminal? Question is, perhaps it is not running properly so for Nextcloud interface it looks like it wasn’t run for a long time. You can also check your logs, there should be something at the time the cronjob is supposed to run.
There is no error running it from terminal
It would be interesting to know why Nextcloud disables the “Cron” option. The documentation says nothing about this.
After manual start of the cron job via terminal, Nextcloud is happy with it. And “Cron” is chosen again in the settings.
But the “Cron” option is still greyed out.
I bet in a few days or weeks I get the error again and the options falls back to “Webcron” which is not configured.
That is too long. Perhaps it runs under a wrong user? Do you see something in your Nextcloud log when the cronjob is supposed to run? Normally it leaves a trace, if there is nothing that would be strange.
The error logs nor the nextcloud log contains any cron job relevant messages.
(the nextcloud log is spammed with “shell_exec() has been disabled for security reasons at /var/www/www3018/htdocs/nextcloud/apps/serverinfo/lib/OperatingSystems/DefaultOs.php”