Setup Details:
- Platform: TrueNAS SCALE (ElectricEel-24.10.0.2)
- Nextcloud Version: 30.0.5 (App Version: 1.5.14)
- Database: PostgreSQL
- Reverse Proxy: Nginx Proxy Manager (NPM)
- Cron job setup: Running inside a Docker container via TrueNAS’s cron system.
I’m encountering an issue with my Nextcloud instance on TrueNAS SCALE where the admin interface displays the following warning:
"Some jobs have not been executed since 2 days ago. Please consider increasing the execution frequency."
Cron job command:
docker exec -u www-data ix-nextcloud-nextcloud-1 php -f /var/www/html/cron.php
What I’ve Checked So Far:
Manual Cron Execution:
Running the cron job manually via:
sudo docker exec -u www-data ix-nextcloud-nextcloud-1 php -f /var/www/html/cron.php
It completes successfully, but the warning still appears.
Cron Job Logs:
Verified that the cron job is running on schedule by checking /var/log/cron.log, and I can confirm that it’s executing every 5 minutes without issues.
Background Jobs Inspection:
Checked the background job queue with:
php occ background-job:list
www-data@e473ae041da8:~/html$ php occ background-job:list
+-----+-------------------------------------------------------------------+---------------------------+-------------------------------------------------------------------------------------------------------------------+
| id | class | last_run | argument |
+-----+-------------------------------------------------------------------+---------------------------+-------------------------------------------------------------------------------------------------------------------+
| 26 | OCA\AppAPI\BackgroundJob\ProvidersAICleanUpJob | 2025-01-20T19:01:38+00:00 | null |
| 13 | OCA\Circles\Cron\Maintenance | 2025-01-20T20:25:02+00:00 | null |
| 16 | OCA\Files_Sharing\BackgroundJob\FederatedSharesDiscoverJob | 2025-01-20T16:25:19+00:00 | null |
| 3 | OCA\ContactsInteraction\BackgroundJob\CleanupJob | 2025-01-19T09:19:31+00:00 | null |
| 28 | OCA\Federation\SyncJob | 2025-01-20T16:30:18+00:00 | null |
| 6 | OCA\Files_Trashbin\BackgroundJob\ExpireTrash | 2025-01-20T20:25:02+00:00 | null |
| 18 | OCA\DAV\BackgroundJob\CleanupDirectLinksJob | 2025-01-20T16:25:41+00:00 | null |
| 4 | OCA\UpdateNotification\BackgroundJob\UpdateAvailableNotifications | 2025-01-19T09:20:17+00:00 | null |
| 8 | OCA\Files\BackgroundJob\ScanFiles | 2025-01-20T20:20:02+00:00 | null |
| 36 | OCA\FilesReminders\BackgroundJob\CleanUpReminders | 2025-01-20T16:34:50+00:00 | null |
| 176 | OCA\Files_External\BackgroundJob\CredentialsCleanup | 2025-01-18T16:56:43+00:00 | null |
| 10 | OCA\Files\BackgroundJob\CleanupFileLocks | 2025-01-20T20:25:02+00:00 | null |
| 41 | OC\Preview\BackgroundCleanupJob | 1970-01-01T00:00:00+00:00 | null |
| 20 | OCA\DAV\BackgroundJob\CleanupInvitationTokenJob | 2025-01-20T16:27:49+00:00 | null |
| 39 | OC\Authentication\Token\TokenCleanupJob | 1970-01-01T00:00:00+00:00 | null |
| 42 | OC\TextProcessing\RemoveOldTasksBackgroundJob | 1970-01-01T00:00:00+00:00 | null |
| 38 | OCA\Text\Cron\Cleanup | 2025-01-20T20:25:02+00:00 | null |
| 43 | OC\User\BackgroundJobs\CleanupDeletedUsers | 1970-01-01T00:00:00+00:00 | null |
| 9 | OCA\Files\BackgroundJob\DeleteOrphanedItems | 2025-01-20T20:15:02+00:00 | null |
| 12 | OCA\Files\BackgroundJob\DeleteExpiredOpenLocalEditor | 2025-01-20T16:05:34+00:00 | null |
| 21 | OCA\DAV\BackgroundJob\EventReminderJob | 2025-01-20T20:25:03+00:00 | null |
| 17 | OCA\ServerInfo\Jobs\UpdateStorageStats | 2025-01-20T19:30:02+00:00 | null |
| 15 | OCA\Files_Sharing\ExpireSharesJob | 2025-01-20T16:24:59+00:00 | null |
| 23 | OCA\DAV\BackgroundJob\PruneOutdatedSyncTokensJob | 2025-01-20T16:29:14+00:00 | null |
| 37 | OCA\FilesReminders\BackgroundJob\ScheduledNotifications | 2025-01-20T20:25:03+00:00 | null |
| 19 | OCA\DAV\BackgroundJob\UpdateCalendarResourcesRoomsBackgroundJob | 2025-01-20T19:35:01+00:00 | null |
| 33 | OCA\OAuth2\BackgroundJob\CleanupExpiredAuthorizationCode | 2025-01-06T15:12:32+00:00 | null |
| 22 | OCA\DAV\BackgroundJob\CalendarRetentionJob | 2025-01-20T16:29:09+00:00 | null |
| 27 | OCA\NextcloudAnnouncements\Cron\Crawler | 2025-01-20T16:30:04+00:00 | null |
| 34 | OCA\Notifications\BackgroundJob\GenerateUserSettings | 2025-01-20T16:31:28+00:00 | null |
| 348 | OCA\Settings\BackgroundJobs\VerifyUserData | 1970-01-01T00:00:00+00:00 | {"verificationCode":"","data":"aslave0@gmail.com","type":"email","uid":"mandie","try":5,"lastRun":1737404106} |
| 40 | OC\Log\Rotate | 2025-01-20T20:25:03+00:00 | null |
| 25 | OCA\AppAPI\BackgroundJob\ExAppInitStatusCheckJob | 2025-01-20T20:25:03+00:00 | null |
| 11 | OCA\Files\BackgroundJob\CleanupDirectEditingTokens | 2025-01-20T20:15:02+00:00 | null |
| 242 | OCA\LookupServerConnector\BackgroundJobs\RetryJob | 2025-01-20T18:34:14+00:00 | {"userId":"bob"} |
| 14 | OCA\Files_Sharing\DeleteOrphanedSharesJob | 2025-01-20T16:24:52+00:00 | null |
| 296 | OC\Security\VerificationToken\CleanUpJob | 1970-01-01T00:00:00+00:00 | "{\"userId\":\"bob\",\"subject\":\"lostpassword\",\"pp\":\"test@jackdinn.co.uk\",\"notBefore\":1738245157}" |
| 7 | OCA\UserStatus\BackgroundJob\ClearOldStatusesBackgroundJob | 2025-01-20T20:25:03+00:00 | null |
| 181 | OCA\Memories\Cron\IndexJob | 2025-01-20T20:15:06+00:00 | null |
| 349 | OCA\Settings\BackgroundJobs\VerifyUserData | 1970-01-01T00:00:00+00:00 | {"verificationCode":"","data":"jack@jackdinn.co.uk","type":"email","uid":"jackdinn","try":4,"lastRun":1737404130} |
| 350 | OCA\Settings\BackgroundJobs\VerifyUserData | 1970-01-01T00:00:00+00:00 | {"verificationCode":"","data":"test@jackdinn.co.uk","type":"email","uid":"bob","try":4,"lastRun":1737404133} |
| 101 | OC\Security\Bruteforce\CleanupJob | 1970-01-01T00:00:00+00:00 | null |
| 5 | OCA\WorkflowEngine\BackgroundJobs\Rotate | 2025-01-20T20:15:19+00:00 | null |
| 103 | OC\TextToImage\RemoveOldTasksBackgroundJob | 1970-01-01T00:00:00+00:00 | null |
| 240 | OCA\LookupServerConnector\BackgroundJobs\RetryJob | 2025-01-20T18:25:03+00:00 | {"userId":"jackdinn"} |
| 104 | OC\TaskProcessing\RemoveOldTasksBackgroundJob | 1970-01-01T00:00:00+00:00 | null |
| 105 | OC\Core\BackgroundJobs\GenerateMetadataJob | 1970-01-01T00:00:00+00:00 | null |
| 24 | OCA\Files_Versions\BackgroundJob\ExpireVersions | 2025-01-20T19:55:16+00:00 | null |
| 35 | OCA\Notifications\BackgroundJob\SendNotificationMails | 2025-01-20T20:25:03+00:00 | null |
| 2 | OCA\Support\BackgroundJobs\CheckSubscription | 2025-01-20T20:25:04+00:00 | null |
| 100 | OC\Core\BackgroundJobs\CleanupLoginFlowV2 | 2025-01-20T20:05:04+00:00 | null |
| 106 | OCA\DAV\BackgroundJob\DeleteOutdatedSchedulingObjects | 2025-01-20T16:27:09+00:00 | null |
| 171 | OCA\Talk\BackgroundJob\MaximumCallDuration | 2025-01-20T20:25:04+00:00 | null |
| 166 | OCA\Talk\BackgroundJob\CheckHostedSignalingServer | 2025-01-20T20:05:03+00:00 | null |
| 172 | OCA\Talk\BackgroundJob\Reminder | 2025-01-20T20:25:04+00:00 | null |
| 167 | OCA\Talk\BackgroundJob\CheckMatterbridges | 2025-01-20T20:20:04+00:00 | null |
| 173 | OCA\Talk\BackgroundJob\RemoveEmptyRooms | 1970-01-01T00:00:00+00:00 | null |
| 169 | OCA\Talk\BackgroundJob\ExpireChatMessages | 2025-01-20T20:25:04+00:00 | null |
| 174 | OCA\Talk\BackgroundJob\ResetAssignedSignalingServer | 2025-01-20T20:25:04+00:00 | null |
| 170 | OCA\Talk\BackgroundJob\ExpireSignalingMessage | 2025-01-20T20:25:04+00:00 | null |
| 175 | OCA\Talk\BackgroundJob\RetryNotificationsJob | 2025-01-20T20:25:04+00:00 | null |
+-----+-------------------------------------------------------------------+---------------------------+-------------------------------------------------------------------------------------------------------------------+
www-data@e473ae041da8:~/html$
Some jobs appear with timestamps from 1970-01-01, while others are current.
Database Maintenance:
Ran the following commands to ensure database integrity:
sudo docker exec -u www-data ix-nextcloud-nextcloud-1 php occ maintenance:repair
sudo docker exec -u www-data ix-nextcloud-nextcloud-1 php occ db:add-missing-indices
sudo docker exec -u www-data ix-nextcloud-nextcloud-1 php occ db:add-missing-columns
sudo docker exec -u www-data ix-nextcloud-nextcloud-1 php occ db:add-missing-primary-keys
No errors were reported, but the warning persists.
Forcing Execution of Jobs:
Attempted to manually force execution of background jobs with:
sudo docker exec -u www-data ix-nextcloud-nextcloud-1 php occ background-job:execute --force-execute <job-id>
However, some jobs were not due for execution, and others completed successfully but did not resolve the issue.
Is there a way to reset or refresh Nextcloud’s cron status to clear this warning?
Any insights on additional troubleshooting steps to confirm all background jobs are running as expected?
Thanks in advance for your help!