[details=“Support intro”]
Nextcloud version (eg, 20.0.5): Nextcloud 22.2.0
Operating system and version (eg, Ubuntu 20.04): Ubuntu LTS server 20.04
Apache or nginx version (eg, Apache 2.4.25): Apache
PHP version (eg, 7.4): 7.4
The issue you are facing:
I’ve intially set up a nextcloud instance with a root of nextcloud3.
After about a year I wanted to try something out and created a new instance (mycloudpics) by copying the nextcloud3 instance and renaming the relevant bits in the new instance.
I ran the two instances until I was happy that the new instance worked and then disabled (Apached) the nextcloud3 instance. I also renamed the nextcloud3 instance and changed the owner to root.
I’m getting the following error and cannot figure out why a cron job is being stared for the non-existent instance (nextcloud3)
Nov 11 07:49:04 mail1 systemd[1]: Started Nextcloud cron.php job.
Nov 11 07:49:04 mail1 systemd[1]: Started Nextcloud cron.php job.
Nov 11 07:49:04 mail1 php[304740]: Could not open input file: /var/www/nextcloud3/cron.php
Nov 11 07:49:04 mail1 systemd[1]: nextcloud3cron.service: Main process exited, code=exited, status=1/FAILURE
Nov 11 07:49:04 mail1 systemd[1]: nextcloud3cron.service: Failed with result 'exit-code'.
Nov 11 07:49:05 mail1 systemd[1]: nextcloud2cron.service: Succeeded.
Nov 11 07:50:01 mail1 CRON[304829]: (www-data) CMD (php -f /var/www/nextcloud2/cron.php)
Nov 11 07:54:15 mail1 systemd[1]: Started Nextcloud cron.php job.
Nov 11 07:54:15 mail1 systemd[1]: Started Nextcloud cron.php job.
Nov 11 07:54:15 mail1 php[304995]: Could not open input file: /var/www/nextcloud3/cron.php
Nov 11 07:54:15 mail1 systemd[1]: nextcloud3cron.service: Main process exited, code=exited, status=1/FAILURE
Nov 11 07:54:15 mail1 systemd[1]: nextcloud3cron.service: Failed with result 'exit-code'.
Nov 11 07:54:16 mail1 systemd[1]: nextcloud2cron.service: Succeeded.