nextcloud does not run cron jobs
After running make set nextcloud.enable True
and make deploy
. I register an account and then go to settings->[administration]overview and it shows that a cron job is not running. I open the container via
docker exec -it nextcloud_nextcloud_1 bash` to see if there is a cronjob and cron does not exist.
There are two solutions from googling the internet.
- Add an entry to the docker-compose that creates a cron container: https://www.reddit.com/r/NextCloud/comments/hat70n/running_cron_job_in_dockercompose_nextcloud/
- Run cron on the server: https://help.nextcloud.com/t/cron-doesnt-execute-cron-php/46306 via
docker exec --user {{ uid_output.stdout }} nextcloud_nextcloud_1 php -f cron.php