Issues Using Cron on Nextcloud Docker

AJAX and Cron Jobs Broken After Trying to Configure Cron

I’ve been setting up the Google Synchronization app in Nextcloud, which needs cron instead of AJAX. I added the cron job to the www-data crontab on the host and used docker exec -u www-data nextcloud php /var/www/html/cron.php in the admin’s crontab. Neither worked (manual execution hangs). After creating a www-data user on the host, I aligned it with the default one, which triggered or happened to coincide with the first cron job since last month (see image).

However, now there’s an issue with job frequency when AJAX is selected. Any idea what’s causing this? Should I try a cron container, and could I add it to my existing Nextcloud Docker Compose file? PM for logs, never needed to do this before, unsure if sharing them is safe.

Relevant Information

System Info

Nextcloud 30.0.1

Docker 27.3.1

Fedora 40 Server

i7-3720QM

8GB RAM

Cron.php Location and Permissions

Host: ~/Docker/Nextcloud/nextcloud/nextcloud/cron.php

Container:/var/www/html/cron.php

Output of ls -ld:-rwxr-x--- 1 www-data www-data 7550 Oct 18 23:56 /home/username/Docker/Nextcloud/nextcloud/nextcloud/cron.php

Commands in .bash_history Relating to Initial Attempt

sudo crontab -u www-data -e

sudo crontab -u www-data -e

getent passwd 33

docker exec -u www-data nextcloud php /var/www/nextcloud/cron.php

crontab -u 33 -e

sudo crontab -u 33 -e

sudo crontab -u tape -e

sudo useradd -u 33 -r -s /bin/false www-data

getent passwd 33

sudo crontab -u www-data -e

sudo crontab -u www-data -l

Commands Used Today To Perfect www-data Account Properties`

sudo passwd -l www-data && \

sudo usermod -d /var/www -s /usr/sbin/nologin www-data && \

sudo chown -R www-data:www-data /var/www && \

sudo chown -R www-data:www-data /var/www/html && \

sudo chmod -R 755 /var/www/html

Properties of www-data Account

uid=33(www-data) gid=987(www-data) groups=987(www-data),33(tape)

www-data:x:33:987::/var/www:/usr/sbin/nologin

www-data L 2024-10-19 -1 -1 -1 -1

drwxr-xr-x 4 www-data www-data 4096 Oct 19 08:27 /var/www

drwxr-xr-x 2 www-data www-data 4096 Jul 31 20:00 /var/www/html

Bind Volumes

/nextcloud/nextcloud:/var/www/html

/nextcloud/app/config:/var/www/html/config

/nextcloud/app/custom_apps:/var/www/html/custom_apps

/nextcloud/app/data:/var/www/html/data

/nextcloud/app/themes:/var/www/html/themes

/etc/localtime:/etc/localtime:ro