# Cron Jobs not running accoring to NC, after upgrade to NC30/ Hub9

**URL:** <https://help.nextcloud.com/t/cron-jobs-not-running-accoring-to-nc-after-upgrade-to-nc30-hub9/206685>\
**Category:** ℹ️ Support\
**Tags:** plesk, cron, nc30, setup\_warning\
**Created:** [October 13, 2024, 9:32am UTC](https://help.nextcloud.com/t/cron-jobs-not-running-accoring-to-nc-after-upgrade-to-nc30-hub9/206685 "2024-10-13T09:32:52Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dayspring](https://help.nextcloud.com/letter_avatar/dayspring/32/6_22734026db12803ebb3e059622ac3534.png) [@Dayspring](https://help.nextcloud.com/u/Dayspring)\
**Post date:** [October 13, 2024, 9:32am UTC](https://help.nextcloud.com/t/cron-jobs-not-running-accoring-to-nc-after-upgrade-to-nc30-hub9/206685/1 "2024-10-13T09:32:52Z")

</div>

Hello,  
I already stated my problem in another Topic [A webcron issue - executed irregularly](https://help.nextcloud.com/t/a-webcron-issue-executed-irregularly/204150).

I am running 5 instances of Nextcloud, all on ddiffferent servers. I upggraded three of them from 29 to 30. After the Upgrade, all three seem to be having problems with cron. In Backend, i am told, that:

> Some jobs have not been executed since vor einem Tag/ vor einem Monat. Please consider increasing the execution frequency. Some jobs have not been executed since vor einem Tag. Please consider increasing the execution frequency.

I can not findd any clues, as to why this is. I changed nothing regarding NC-Config or anything else, just upgraded.

1. Ubuntu 20  
Maria DB 10.11.9  
NC 29.0.7 to NC 30.0.0  
running on a Virtual Server with Plesk

2. Ubuntu 20  
Maria DB 10.11.9  
NC 29.0.7 to NC 30.0.0  
runing on a Dedicated Server with Plesk

3. Ubuntu 18

4. Maria DB 10.11.9  
NC 29.0.8 to NC 30 RC2  
runing on a Virtual Server with Plesk

Yesterday, again, I tried to find any error regarding cron or backgroundjobs, found nothing.

When I start the cronjob manually (in Plesk) I get the message thet it was done in 0 (somtimes 1) secondds, withour errors.

- Maybe there was a change in file permissions? or something like that?

---

<div class="post-metadata">

**Author:** ![Dayspring](https://help.nextcloud.com/letter_avatar/dayspring/32/6_22734026db12803ebb3e059622ac3534.png) [@Dayspring](https://help.nextcloud.com/u/Dayspring)\
**Post date:** [October 13, 2024, 7:49pm UTC](https://help.nextcloud.com/t/cron-jobs-not-running-accoring-to-nc-after-upgrade-to-nc30-hub9/206685/2 "2024-10-13T19:49:05Z")

</div>

Bei allen Instanzen zeiggt allerdings _php occ setupchecks_  
an:

```
            ✓ Cron-Fehler: Der letzte Cron-Job wurde ohne Fehler ausgeführt.
            ✓ Cron zuletzt ausgeführt: Letzte Hintergrund-Jobausführung lief Vor 1 Minute.

```

---

<div class="post-metadata">

**Author:** ![Dayspring](https://help.nextcloud.com/letter_avatar/dayspring/32/6_22734026db12803ebb3e059622ac3534.png) [@Dayspring](https://help.nextcloud.com/u/Dayspring)\
**Post date:** [October 17, 2024, 1:59pm UTC](https://help.nextcloud.com/t/cron-jobs-not-running-accoring-to-nc-after-upgrade-to-nc30-hub9/206685/3 "2024-10-17T13:59:57Z")

</div>

Does anyone have any clue where I should be looking for the error?

---

<div class="post-metadata">

**Author:** ![Pyropherus](https://help.nextcloud.com/letter_avatar/pyropherus/32/6_22734026db12803ebb3e059622ac3534.png) [@Pyropherus](https://help.nextcloud.com/u/Pyropherus)\
**Post date:** [October 18, 2024, 8:32pm UTC](https://help.nextcloud.com/t/cron-jobs-not-running-accoring-to-nc-after-upgrade-to-nc30-hub9/206685/4 "2024-10-18T20:32:10Z")

</div>

I’m gonna join this question, same issue here after upgrade to 30.0.1  
WebIF shows issues regarding the cron job:

 ![image](https://help.nextcloud.com/uploads/default/original/3X/5/a/5acb64905c11907e3cb0064cf394f005bb35fe85.png)

occ systemchecks tells another story:  
 ![image](https://help.nextcloud.com/uploads/default/original/3X/d/e/de0ee399ed97624e69af1a0fd70a4d574cbc4009.png)

thx in advance and best regards!

---

<div class="post-metadata">

**Author:** ![Aushilfsarnie](https://help.nextcloud.com/letter_avatar/aushilfsarnie/32/6_22734026db12803ebb3e059622ac3534.png) [@Aushilfsarnie](https://help.nextcloud.com/u/Aushilfsarnie)\
**Post date:** [October 20, 2024, 2:23pm UTC](https://help.nextcloud.com/t/cron-jobs-not-running-accoring-to-nc-after-upgrade-to-nc30-hub9/206685/5 "2024-10-20T14:23:31Z")

</div>

Ich möchte mich gerne meinen Vorrednern anschließen…gibt es hierzu eine Lösung bzw. einen Ansatz? Herzlichen Dank im Voraus!

---

<div class="post-metadata">

**Author:** ![Pyropherus](https://help.nextcloud.com/letter_avatar/pyropherus/32/6_22734026db12803ebb3e059622ac3534.png) [@Pyropherus](https://help.nextcloud.com/u/Pyropherus)\
**Post date:** [October 25, 2024, 10:31am UTC](https://help.nextcloud.com/t/cron-jobs-not-running-accoring-to-nc-after-upgrade-to-nc30-hub9/206685/6 "2024-10-25T10:31:45Z")

</div>

Für mich hat sich der Fall wie von Geisterhand erledigt…  
Von einem Tag auf den anderen läuft der Cron Job jetzt plötzlich wieder, ohne jegliches Zutun von meiner Seite. 🤷‍♂️

Liebe Grüße!

---

<div class="post-metadata">

**Author:** ![Dayspring](https://help.nextcloud.com/letter_avatar/dayspring/32/6_22734026db12803ebb3e059622ac3534.png) [@Dayspring](https://help.nextcloud.com/u/Dayspring)\
**Post date:** [October 25, 2024, 2:09pm UTC](https://help.nextcloud.com/t/cron-jobs-not-running-accoring-to-nc-after-upgrade-to-nc30-hub9/206685/7 "2024-10-25T14:09:50Z")

</div>

Kannst du evtl. in den Logs schauen ob es Unterschiede gibt? Ich habe leider immer noch das Problem.

---

<div class="post-metadata">

**Author:** ![Tom\_Little](https://help.nextcloud.com/user_avatar/help.nextcloud.com/tom_little/32/66039_2.png) [@Tom\_Little](https://help.nextcloud.com/u/Tom_Little)\
**Post date:** [October 27, 2024, 8:47am UTC](https://help.nextcloud.com/t/cron-jobs-not-running-accoring-to-nc-after-upgrade-to-nc30-hub9/206685/8 "2024-10-27T08:47:50Z")

</div>

Ich habe die Ursache bei mir gefunden, dass der Cron Job nicht lief. Mein Aufruf aus dem cron Job war mit der falschen PHP Version (8.0) Meine Nextcloud Instanz läuft aber mit Version 8.1.  
Nachdem ich dies auf 8.1 gefixt hatte, läuft jetzt wieder alles.

---

<div class="post-metadata">

**Author:** ![Dayspring](https://help.nextcloud.com/letter_avatar/dayspring/32/6_22734026db12803ebb3e059622ac3534.png) [@Dayspring](https://help.nextcloud.com/u/Dayspring)\
**Post date:** [October 29, 2024, 6:36am UTC](https://help.nextcloud.com/t/cron-jobs-not-running-accoring-to-nc-after-upgrade-to-nc30-hub9/206685/9 "2024-10-29T06:36:50Z")

</div>

The problem still remains. comand line setupcheck says, cron is ok and was executed a few minutes ago.

The web backend say not running since a month

---

<div class="post-metadata">

**Author:** ![Aushilfsarnie](https://help.nextcloud.com/letter_avatar/aushilfsarnie/32/6_22734026db12803ebb3e059622ac3534.png) [@Aushilfsarnie](https://help.nextcloud.com/u/Aushilfsarnie)\
**Post date:** [October 29, 2024, 11:49am UTC](https://help.nextcloud.com/t/cron-jobs-not-running-accoring-to-nc-after-upgrade-to-nc30-hub9/206685/10 "2024-10-29T11:49:39Z")

</div>

Hello, have a look at your sql database: Maybe the table “oc\_jobs” is full? For me it was the execution command: I had to delete --define… and set it in the php configuration file. Maybe it will help someone. Best regards

---

<div class="post-metadata">

**Author:** ![derdoode](https://help.nextcloud.com/letter_avatar/derdoode/32/6_22734026db12803ebb3e059622ac3534.png) [@derdoode](https://help.nextcloud.com/u/derdoode)\
**Post date:** [October 30, 2024, 1:39pm UTC](https://help.nextcloud.com/t/cron-jobs-not-running-accoring-to-nc-after-upgrade-to-nc30-hub9/206685/11 "2024-10-30T13:39:10Z")

</div>

Hello Aushilfsarnie,

I’m new to this forum and to nextcloud.  
Could You please explain a little bit where the “oc\_jobs” table could be configured?  
And which execution command with which parameter of "–define… You deleted and in which config file (maybe : /var/www/nextcloud/config/config.php ?) You added it to with which syntax ?  
That would be nice, because I seem to have the same problem with cron. I’m grateful for every constructiv answer.  
cron is running, but nc gui will not recognize it.  
Thank You

---

<div class="post-metadata">

**Author:** ![Dayspring](https://help.nextcloud.com/letter_avatar/dayspring/32/6_22734026db12803ebb3e059622ac3534.png) [@Dayspring](https://help.nextcloud.com/u/Dayspring)\
**Post date:** [October 30, 2024, 2:37pm UTC](https://help.nextcloud.com/t/cron-jobs-not-running-accoring-to-nc-after-upgrade-to-nc30-hub9/206685/12 "2024-10-30T14:37:19Z")

</div>

The oc\_jobs table has 802 entries. Is that too much? The first entry is from 1726337578, tha´t is Sep 14 2024 .

---

<div class="post-metadata">

**Author:** ![derdoode](https://help.nextcloud.com/letter_avatar/derdoode/32/6_22734026db12803ebb3e059622ac3534.png) [@derdoode](https://help.nextcloud.com/u/derdoode)\
**Post date:** [October 31, 2024, 6:07am UTC](https://help.nextcloud.com/t/cron-jobs-not-running-accoring-to-nc-after-upgrade-to-nc30-hub9/206685/13 "2024-10-31T06:07:35Z")

</div>

My solution to the problem, yesterday, 30.10.24, was a little bit astonishing, but maybe it helps You:  
Da mich nextcloud GUI auf eine evtl. fehlendes Installation des apcu-Moduls hinwies, aber dies installiert ist und auch aktiv, konnte das nicht die Ursache für den nicht erkannten cron Job alle 5 Minuten sein.  
Ich habe gelesen, dass das Problem in früheren Versionsumstiegen in ähnlicher Weise auftrat, und dort mit der Anweisung für  
extension=apcu.so  
manipuliert wurde.  
Ich habe nun folgendes gemacht:  
/etc/php/8.3/mods-available/apcu.ini  
die Anweisung:  
“extension=apcu.so”  
mit “;” auskommentiert, somit war sie deaktiviert.  
Nach Neustart von  
“systemctl apache2 restart”  
war der nextcloud server nicht mehr erreichbar: =\> White Screen (mit Kommentar, den ich nicht mehr weiß)  
Also habe ich die Auskommentierung zurückgenommen:  
Der Nextcloud Server war wieder erreichbar.  
Und  
Die Fehlermeldung zu mangelndem cron Job in Sicherheits -und Einrichtungswarnungen war weg !  
Vielleicht hilft Dir das.

---

<div class="post-metadata">

**Author:** ![Aushilfsarnie](https://help.nextcloud.com/letter_avatar/aushilfsarnie/32/6_22734026db12803ebb3e059622ac3534.png) [@Aushilfsarnie](https://help.nextcloud.com/u/Aushilfsarnie)\
**Post date:** [November 1, 2024, 6:40pm UTC](https://help.nextcloud.com/t/cron-jobs-not-running-accoring-to-nc-after-upgrade-to-nc30-hub9/206685/14 "2024-11-01T18:40:58Z")

</div>

Hallo derdoode, hallo Dayspring,

ich bin leider auch kein Experte und weiß daher nicht genau, wie viele (ausstehende?) Einträge inder occ\_jobs Tabelle in Ordnung sind. Ebenso gibt es so viele unterschiedliche Einrichtungen, dass es ohne nähere Angeaben schwierig ist, zu helfen. Aber hier sind bestimmt Leute, die mehr Ahnung haben und gerne helfen.

Viele Grüße, Aushiflsarnie

Hello derdoode, hello Dayspring,

unfortunately I’m not an expert either, so I don’t know exactly how many (outstanding?) entries in the occ\_jobs table are OK. There are also so many different organisations that it is difficult to help without more details. But there are certainly people here who know more and would be happy to help.

Best regards, Aushiflsarnie

---

<div class="post-metadata">

**Author:** ![tflidd](https://help.nextcloud.com/letter_avatar/tflidd/32/6_22734026db12803ebb3e059622ac3534.png) [@tflidd](https://help.nextcloud.com/u/tflidd)\
**Post date:** [November 1, 2024, 6:54pm UTC](https://help.nextcloud.com/t/cron-jobs-not-running-accoring-to-nc-after-upgrade-to-nc30-hub9/206685/15 "2024-11-01T18:54:07Z")

</div>

> [@Dayspring](#):
>
> The oc\_jobs table has 802 entries. Is that too much?

That looks a bit much. I am used to 20-30, it depends a bit which apps you use.

If you are on a setup with terminal access, you can try to run the cronjob from command line, so you can see potential errors of the output:

`sudo -u www-data php -f cron.php`

Even if the cronjob runs but fails at an early stage, many jobs are not done and show as unfinished. Normally, you even have a column with when the job was last run and last checked, as well as the runtime. That can help to identify the problematic cronjob.

---

<div class="post-metadata">

**Author:** ![Dayspring](https://help.nextcloud.com/letter_avatar/dayspring/32/6_22734026db12803ebb3e059622ac3534.png) [@Dayspring](https://help.nextcloud.com/u/Dayspring)\
**Post date:** [November 1, 2024, 8:25pm UTC](https://help.nextcloud.com/t/cron-jobs-not-running-accoring-to-nc-after-upgrade-to-nc30-hub9/206685/16 "2024-11-01T20:25:01Z")

</div>

I could kiss you 😆

I just entered this command and now the webinterface say “last cron run a few seconds ago”

Thank you!

---

<div class="post-metadata">

**Author:** ![Dayspring](https://help.nextcloud.com/letter_avatar/dayspring/32/6_22734026db12803ebb3e059622ac3534.png) [@Dayspring](https://help.nextcloud.com/u/Dayspring)\
**Post date:** [November 4, 2024, 5:10pm UTC](https://help.nextcloud.com/t/cron-jobs-not-running-accoring-to-nc-after-upgrade-to-nc30-hub9/206685/17 "2024-11-04T17:10:03Z")

</div>

Now I have to manually start the cron every time. It still isn’t running automatically.

Still don’t know why…

---

<div class="post-metadata">

**Author:** ![tflidd](https://help.nextcloud.com/letter_avatar/tflidd/32/6_22734026db12803ebb3e059622ac3534.png) [@tflidd](https://help.nextcloud.com/u/tflidd)\
**Post date:** [November 4, 2024, 6:26pm UTC](https://help.nextcloud.com/t/cron-jobs-not-running-accoring-to-nc-after-upgrade-to-nc30-hub9/206685/18 "2024-11-04T18:26:26Z")

</div>

How did you set up the cronjob?

---

<div class="post-metadata">

**Author:** ![HaDi](https://help.nextcloud.com/user_avatar/help.nextcloud.com/hadi/32/66289_2.png) [@HaDi](https://help.nextcloud.com/u/HaDi)\
**Post date:** [November 6, 2024, 1:13pm UTC](https://help.nextcloud.com/t/cron-jobs-not-running-accoring-to-nc-after-upgrade-to-nc30-hub9/206685/19 "2024-11-06T13:13:32Z")

</div>

chmod +x cron.php  
helped me

edit:  
worked for 2 days,  
my test

```auto
bash-5.1$ /usr/local/php82/bin/php ./cron.php
^C
bash-5.1$ /usr/local/php82/bin/php -d memory_limit=512M ./cron.php
bash-5.1$

```

memory\_limit ??

---

<div class="post-metadata">

**Author:** ![Dayspring](https://help.nextcloud.com/letter_avatar/dayspring/32/6_22734026db12803ebb3e059622ac3534.png) [@Dayspring](https://help.nextcloud.com/u/Dayspring)\
**Post date:** [November 7, 2024, 5:10am UTC](https://help.nextcloud.com/t/cron-jobs-not-running-accoring-to-nc-after-upgrade-to-nc30-hub9/206685/20 "2024-11-07T05:10:35Z")

</div>

It is running through plesk, meaning that It is set up in the plesk webinterface.

Info Not get Amy Error Messages and cant find anything in the logs.

I made Sure It is the right PHP Version, that ist running the cron Job. 8.3

The file cron.php ist own by the correct owner (the one running the cron Job, and owner of the nextcloud instance).

Thanks again for Amy advice.

[Next page](https://help.nextcloud.com/t/cron-jobs-not-running-accoring-to-nc-after-upgrade-to-nc30-hub9/206685.md?page=2)
