NethServer Version: 8
Module: Nextcloud
Good evening everyone,
I have installed my NS 8 on a Proxmox server and since a few hours I have the problem that the error message on the picture is displayed. Apparently the system cron service is not working properly or not at all. The problem is not solved by restoring the existing backup. Does anyone know the problem and might have a solution for me?
Regards…
Uwe
mrmarkuz
(Markus Neuberger)
December 20, 2024, 7:51pm
2
I couldn’t reproduce the issue.
In the following examples nextcloud1 is used, it needs to be replaced with your nextcloud instance name.
Please check if the cronjob is configured correctly:
runagent -m nextcloud1 podman exec nextcloud-app cat /etc/crontabs/www-data
Expected result:
*/5 * * * * php -f /var/www/html/cron.php
Let’s try to run the cronjob manually:
runagent -m nextcloud1 podman exec --user www-data nextcloud-app php -f /var/www/html/cron.php
If there’s no output it should have ran through without error.
In the Nextcloud administration “basic settings” you should get a result like this:
1 Like
Thanks for the answer @mrmarkuz . I have done this, but but the error message remains.
mrmarkuz
(Markus Neuberger)
December 20, 2024, 8:17pm
4
Let’s check the background jobs. Maybe you can identify the jobs that didn’t run.
runagent -m nextcloud1 occ background-job:list
Here’s my result to compare:
+-----+-----------------------------------------------------------------+---------------------------+----------+
| id | class | last_run | argument |
+-----+-----------------------------------------------------------------+---------------------------+----------+
| 1 | OCA\Activity\BackgroundJob\EmailNotification | 2024-12-20T20:10:01+00:00 | null |
| 2 | OCA\Activity\BackgroundJob\ExpireActivities | 2024-12-20T01:50:01+00:00 | null |
| 3 | OCA\Activity\BackgroundJob\DigestMail | 2024-12-20T20:05:00+00:00 | null |
| 4 | OCA\Circles\Cron\Maintenance | 2024-12-20T20:10:00+00:00 | null |
| 5 | OCA\ContactsInteraction\BackgroundJob\CleanupJob | 2024-12-20T01:45:01+00:00 | null |
| 6 | OCA\DAV\BackgroundJob\CleanupDirectLinksJob | 2024-12-20T01:50:01+00:00 | null |
| 7 | OCA\DAV\BackgroundJob\UpdateCalendarResourcesRoomsBackgroundJob | 2024-12-20T19:40:00+00:00 | null |
| 8 | OCA\DAV\BackgroundJob\CleanupInvitationTokenJob | 2024-12-20T01:50:01+00:00 | null |
| 9 | OCA\DAV\BackgroundJob\EventReminderJob | 2024-12-20T20:05:00+00:00 | null |
| 10 | OCA\DAV\BackgroundJob\CalendarRetentionJob | 2024-12-20T20:00:00+00:00 | null |
| 11 | OCA\DAV\BackgroundJob\PruneOutdatedSyncTokensJob | 2024-12-20T01:45:01+00:00 | null |
| 12 | OCA\Federation\SyncJob | 2024-12-20T17:25:01+00:00 | null |
| 13 | OCA\Files\BackgroundJob\ScanFiles | 2024-12-20T20:10:00+00:00 | null |
| 14 | OCA\Files\BackgroundJob\DeleteOrphanedItems | 2024-12-20T19:40:00+00:00 | null |
| 15 | OCA\Files\BackgroundJob\CleanupFileLocks | 2024-12-20T20:05:00+00:00 | null |
| 16 | OCA\Files\BackgroundJob\CleanupDirectEditingTokens | 2024-12-20T20:00:00+00:00 | null |
| 17 | OCA\Files\BackgroundJob\DeleteExpiredOpenLocalEditor | 2024-12-20T01:00:01+00:00 | null |
| 18 | OCA\FilesReminders\BackgroundJob\CleanUpReminders | 2024-12-20T01:45:01+00:00 | null |
| 19 | OCA\FilesReminders\BackgroundJob\ScheduledNotifications | 2024-12-20T20:10:00+00:00 | null |
| 20 | OCA\Files_Sharing\DeleteOrphanedSharesJob | 2024-12-20T01:45:01+00:00 | null |
| 21 | OCA\Files_Sharing\ExpireSharesJob | 2024-12-20T01:45:01+00:00 | null |
| 22 | OCA\Files_Sharing\BackgroundJob\FederatedSharesDiscoverJob | 2024-12-20T17:25:01+00:00 | null |
| 23 | OCA\Files_Trashbin\BackgroundJob\ExpireTrash | 2024-12-20T20:00:00+00:00 | null |
| 24 | OCA\Files_Versions\BackgroundJob\ExpireVersions | 2024-12-20T20:00:00+00:00 | null |
| 25 | OCA\NextcloudAnnouncements\Cron\Crawler | 2024-12-20T19:45:00+00:00 | null |
| 26 | OCA\Notifications\BackgroundJob\GenerateUserSettings | 2024-12-20T17:25:01+00:00 | null |
| 27 | OCA\Notifications\BackgroundJob\SendNotificationMails | 2024-12-20T20:10:00+00:00 | null |
| 28 | OCA\OAuth2\BackgroundJob\CleanupExpiredAuthorizationCode | 1970-01-01T00:00:00+00:00 | null |
| 29 | OCA\Photos\Jobs\AutomaticPlaceMapperJob | 2024-12-20T01:45:01+00:00 | null |
| 30 | OCA\ServerInfo\Jobs\UpdateStorageStats | 2024-12-20T17:10:01+00:00 | null |
| 31 | OCA\Support\BackgroundJobs\CheckSubscription | 2024-12-20T20:05:00+00:00 | null |
| 32 | OCA\Text\Cron\Cleanup | 2024-12-20T20:05:00+00:00 | null |
| 33 | OCA\UpdateNotification\Notification\BackgroundJob | 2024-12-20T17:30:01+00:00 | null |
| 34 | OCA\UserStatus\BackgroundJob\ClearOldStatusesBackgroundJob | 2024-12-20T20:10:00+00:00 | null |
| 35 | OCA\WorkflowEngine\BackgroundJobs\Rotate | 2024-12-20T17:15:01+00:00 | null |
| 36 | OC\Authentication\Token\TokenCleanupJob | 1970-01-01T00:00:00+00:00 | null |
| 37 | OC\Log\Rotate | 2024-12-20T20:10:00+00:00 | null |
| 38 | OC\Preview\BackgroundCleanupJob | 2024-12-20T19:40:01+00:00 | null |
| 39 | OC\TextProcessing\RemoveOldTasksBackgroundJob | 2024-12-20T19:40:01+00:00 | null |
| 49 | OCA\User_LDAP\Jobs\UpdateGroups | 2024-12-20T19:10:01+00:00 | null |
| 50 | OCA\User_LDAP\Jobs\CleanUp | 2024-12-20T19:30:02+00:00 | null |
| 51 | OCA\User_LDAP\Jobs\Sync | 2024-12-20T19:55:01+00:00 | null |
| 56 | OCA\Onlyoffice\Cron\EditorsCheck | 2024-12-20T20:05:01+00:00 | null |
| 94 | OCA\Richdocuments\Backgroundjobs\ObtainCapabilities | 2024-12-20T19:40:01+00:00 | null |
| 95 | OCA\Richdocuments\Backgroundjobs\Cleanup | 2024-12-20T19:40:01+00:00 | null |
| 96 | OCA\Onlyoffice\Cron\EditorsCheck | 2024-12-20T19:40:01+00:00 | null |
| 97 | OC\User\BackgroundJobs\CleanupDeletedUsers | 2024-12-20T19:40:01+00:00 | null |
| 102 | OC\Core\BackgroundJobs\CleanupLoginFlowV2 | 2024-12-20T19:40:01+00:00 | null |
| 103 | OC\Security\Bruteforce\CleanupJob | 2024-12-20T19:40:01+00:00 | null |
| 105 | OC\TextToImage\RemoveOldTasksBackgroundJob | 2024-12-20T19:40:01+00:00 | null |
| 106 | OC\Core\BackgroundJobs\GenerateMetadataJob | 2024-12-20T19:40:01+00:00 | null |
+-----+-----------------------------------------------------------------+---------------------------+----------+
Do you have the same error in another browser/private window? Just to be sure the error isn’t “cached”.
EDIT:
Let’s check if the error is shown on CLI too:
runagent -m nextcloud1 occ setupchecks | grep cron
Expected result:
✓ Cron errors: The last cron job ran without errors.
That ist what i can read in my CLI.
mrmarkuz
(Markus Neuberger)
December 20, 2024, 8:43pm
6
Does it help to restart Nextcloud?
runagent -m nextcloud1 systemctl --user restart nextcloud
Are there background jobs that never ran?
Good morning @mrmarkuz ,
except for the calendar app, I uninstalled all the others. The message remains.
1 Like
mrmarkuz
(Markus Neuberger)
December 21, 2024, 9:18am
8
Maybe it helps to remove the “VerifyUserData” background jobs:
runagent -m nextcloud1 occ background-job:delete 6896
runagent -m nextcloud1 occ background-job:delete 6897
runagent -m nextcloud1 occ background-job:delete 6898
I didn’t find a real solution, some users in NC forum reported that the message was gone after some time. To me it seems like a false alarm as there’s no error on CLI.
Something here is totally crazy.
runagent -m nextcloud1 occ background-job:delete 6896
Job with ID 6896 could not be found in the database
runagent -m nextcloud1 occ background-job:delete 6897
Job with ID 6897 could not be found in the database
runagent -m nextcloud1 occ background-job:delete 6898
Job with ID 6898 could not be found in the database
1 Like
mrmarkuz
(Markus Neuberger)
December 21, 2024, 9:34am
10
Maybe they were deleted already by the cronjob…
You could check if there are new jobs in the list…and try to delete them.
Another way could be to remove the Nextcloud app and reinstall it or restore from backup.
1 Like
I’ll wait a few days now. I don’t think this will have any effect on the safety of the NC. Thank you @mrmarkuz
1 Like