Nextcloud version: 22.2.5
Operating system and version: Ubuntu 20.04.4 LTS
Apache version: Apache/2.4.41 (Ubuntu)
PHP version: 7.4.14 (cli)
The issue you are facing
I realized a few days ago that background jobs have not been running anymore for a week or so. I followed the help links on the settings pages and added a cron job for user www-data
as described here.
At first it seemed like everything was back to normal but background jobs stopped running pretty soon after and the cron job list for user www-data
was empty again even though I did not delete anything myself.
After some fiddling around, I realized that cron jobs for user www-data
somehow always get removed after some arbitrary time (at least I wasn’t able to figure out any regularity here).
Here’s an example of when that happened:
Is this the first time you’ve seen this error?
Yes, this Nextcloud installation has been up and running for many years now and background jobs were running reliably until recently (not sure, when that actually started).
Logs
I’m omitting logs for now as this doesn’t feel like “PHP or Apache config related” but I’ll happily provide them in an later comment if needed. Just let me know!
Questions
- What could cause my cron job to disappear?
- How can I find out what is causing my cron job to disappear?
- How can I prevent this from happening?
Reference
I also posted this question on superuser.com a few days ago but did not get any response so far.