Recently i tried change my nextcloud to Cron job, but in the web interface i receive the erros mensage: “Cron issue. Last job execution ran 3 hours ago. Something seems wrong”
The step by step I did was: go to the web interface and select Cron, after that I configured the cron tab to run this process every 5 minutes. Even with these settings the error continues to appear. So I ran the command sudo -u www-data php /Nextcloud/app/cron.php and some errors were returned, perhaps they are the root of the problem.
We need to know precisely which image you’re running too.
In general though, it appears you’re trying to run cron on your underlying host rather than within the app container (which is unlikely to be what you want).
Do you suggest implementing the cron configuration directly through compose? Without the need to manually configure crontab from within my operating system? Until now I thought the only way to configure this was the way I was doing it…
This may be a silly question, I’m new to this, I just want to be sure hahaha
I added the cron configuration to compose but the error message in the web interface still persists. Maybe I should do some more configuration?
In volumes i seted /srv/dev-disk-by-uuid-22480d1e-336a-4a6e-8a56-b5f3ccb4ba69/ServerTest/Aplications/Nextcloud/app:/var/www/html, maybe i should set /srv/dev-disk-by-uuid-22480d1e-336a-4a6e-8a56 b5f3ccb4ba69/ServerTest/Aplications/Nextcloud/db:/var/lib/mysql ?
Don’t know. Of course, my nextcloud is installed differently. But I had a problem with just this. Is this going to help you? I just have nextcloud installed via apache2 and php8.2
As incredible as it may seem, it now started working, out of nowhere…
After doing the cron configuration in compose and verifying that, apparently, it had not worked, I left nextcloud aside and went to sleep. Now in the morning when I woke up everything seems to work perfectly.