Cron jobs not working in latest ver of Nextcloud

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face: is for home/non-enterprise users. If you’re running a business, paid support can be accessed via where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:


Or for longer, use three backticks above and below the code snippet:


Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): latest
Operating system and version (eg, Ubuntu 20.04): Linux
Apache or nginx version (eg, Apache 2.4.25): replace me
PHP version (eg, 7.4): 8.0

The issue you are facing:

I created cron job on the server each 5 min. for cron.php of Nextcloud’s folder.
In Nextcloud I changed to last option /Cronjob - recommended/
Unfortunately it does not work. I read that there are issues. How to fix all this and avoid the warning red message - Last cron job was executed 10 hour ago? Thanks.
Is this the first time you’ve seen this error? (Y/N):

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:


The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):


The output of your Apache/nginx/system log in /var/log/____:



Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.


Unfortunately you didn’t provide any details about your setup and most importantly, the exact command you added to the crontab and for which user.

Whats the output of sudo crontab -u www-data -l ?


I haven’t use this command. I created cron job on the server and it is running. File cron.php is located at Home/user/public_html/domain/nextcloudFolder/cron.php
Cron job is for this path and file.

Regards, Gintcho Kostov


I see this a bug, which still exists

How do we exit from this situation and red message in NextCloud?

Гинчо Костов

Any ideas on this topic?

Sorry, but the GitHub “issue” you linked looks more like a big support thread to me, rather than it describes an actual issue in Nextcloud. Also, it seems to be mostly about Docker, while the few details you posted about your instance are indicating that you are running Nextcloud on a web hosting platform. Unfortunately, I can’t really help with that, but your hosting provider probably has documentation on how to setup cronjobs…


I already passed through Cpanel and Nextckoud documentations. Cron job is running, based on logs. I see I am not the only one with this issue and decided to look for help here. Unfortunately, no help till now.

It is good to know what more should I provide to get the help I need on this problem.

Then I’m not sure, it’s been years since i used c-panel or any web hosting panel. Also, the available features in c-panel may vary, depending on your hosting plan. I would recommend to ask your hosting provider… Or maybe other forum participants may have some more ideas.