nextcloud-cronjob
nextcloud-cronjob copied to clipboard
Could not open input file: /var/www/html/cron.php
Hello!
I have just started using your unRAID app with the official Nextcloud docker container, and for some reason I am getting this error when it tries to run the script. The cron.php file does exist inside that folder and is properly mapped too.
-------------------------------------------------------------
Executing Cron Tasks: Wed Feb 28 13:35:00 UTC 2024
-------------------------------------------------------------
> Nextcloud Container ID: 3cbcdb301c80
> Running Script: ./run-cron-php.sh
Could not open input file: /var/www/html/cron.php
> Done
Initially I was getting
-------------------------------------------------------------
Executing Cron Tasks: Wed Feb 28 13:25:00 UTC 2024
-------------------------------------------------------------
> Nextcloud Container ID: 3cbcdb301c80
> Running Script: ./run-cron-php.sh
Cannot write into "config" directory!
This can usually be fixed by giving the web server write access to the config directory.
But, if you prefer to keep config.php file read only, set the option "config_is_read_only" to true in it.
See https://docs.nextcloud.com/server/28/go.php?to=admin-config
> Done
But I solved it by giving rw perms to www-data.
I don't really understand why it cant execute it now. I've now gone as far as giving rwx perms to owner, group, and other.