Cron does not terminate and need a lot of ram

Ok I have now set up the whole system on a brand new Debian server and migrated the data. But I still have the problem somehow.
I really don’t know what it is

I runinng into issues with cron too and having a hard time to figure it out.
I added my comment to another thread and thought linking would be helpful

I am really struggling, so I link this thread here too.

Same problem here. :sweat: cron.php takes up to 90% of 4GB RAM und 30% of CPU for aprox. 30 secs.

Following tflidd’s advice:

select * from oc_jobs ORDER BY execution_duration DeSC;
+------+-----------------------------------------------------------------+--------------------------------------------------------------------------+------------+--------------+-------------+--------------------+
| id   | class                                                           | argument                                                                 | last_run   | last_checked | reserved_at | execution_duration |
+------+-----------------------------------------------------------------+--------------------------------------------------------------------------+------------+--------------+-------------+--------------------+
|   24 | OCA\UpdateNotification\Notification\BackgroundJob               | null                                                                     | 1617940802 |   1618023302 |           0 |                 27 |
|    1 | OCA\NextcloudAnnouncements\Cron\Crawler                         | null                                                                     | 1618001701 |   1618023302 |           0 |                  1 |
|   44 | OCA\Passwords\Cron\CheckPasswordsJob                            | null                                                                     | 1617940829 |   1618023302 |           0 |                  1 |
|   48 | OCA\Passwords\Cron\BackupJob                                    | null                                                                     | 1617940830 |   1618023302 |           0 |                  1 |
|   68 | OCA\Deck\Cron\ScheduledNotifications                            | null                                                                     | 1618023302 |   1618023302 |           0 |                  0 |
|   30 | OCA\Talk\BackgroundJob\ExpireSignalingMessage                   | null                                                                     | 1618023002 |   1618023302 |           0 |                  0 |
|   31 | OCA\Talk\BackgroundJob\RemoveEmptyRooms                         | null                                                                     | 1618023002 |   1618023302 |           0 |                  0 |

Except for OCA\UpdateNotification\Notification\BackgroundJob everything fine.

sudo -u www-data php /var/www/vhosts/XXX/public/occ background:queue:status -vvv:
takes long, then “Getötet” - probably “Killed” in English :slight_smile:

Same happens with:
sudo -u www-data php /var/www/vhosts/XXX/public/occ background:queue:status -vvv

Amy ideas? Thanks so much indeed.

Hm… Sounds like [NC 21] OCC Update error: allowed memory size exhausted · Issue #25742 · nextcloud/server · GitHub

1 Like

szaimen, you were right! Following this advice, by adding:

'debug' => 'false', // note: string not bool
'loglevel' => 2,

to config/config.php solved the problem.

Thanks!

2 Likes