Scrub Task not starting without previous Scrub

Description

On a newly installed TrueNAS SCALE Dragonfish-24.04.2.1 I configured a Scrub Task as:
Threshold Days: 35
Schedule: Weekly (0 0 * * 0) on Sundays at 00:00 (12:00 AM)

The Cron Job ran once a week, but the Scrub never was started.
After some discussion in the forum ( https://forums.truenas.com/t/scrub-task-not-starting-the-scrub/21008 ) I triggered the Scrub manually via "zpool scrub" and the scrub ran correctly without issues. After this manual Scrub, the Scrub Task also started to work correctly.

It seems that the Scrub Task is only starting the scrub if there was a previous scrub. Could it be that SCALE Dragonfish has an issue in its logic when checking if the threshold days have passed since the last scrub (which might not exist)?

Host ID: abb9fbc199f51ccde9d4818883defd997dddacf546f8853d7b78148f85fc5dae

Session ID: a181959c-acce-2538-e4ac-fa69342162b5

Problem/Justification

None

Impact

None

Activity

Show:

Bug Clerk November 7, 2024 at 5:04 PM

This issue has now been closed. Comments made after this point may not be viewed by the TrueNAS Teams. Please open a new issue if you have found a problem or need to re-engage with the TrueNAS Engineering Teams.

Bug Clerk November 7, 2024 at 5:04 PM

As we have not received any additional information on this issue, we are closing this ticket. If you still experience this issue on the latest release, please add those details to a new ticket so that we can continue our investigation. Thank you!

Michelle Johnson October 30, 2024 at 12:39 PM

Thank you for your report, !

Please use the link in the system-generated message below to attach a system debug file. Link to this ticket after you upload the file and before you click Save.

To generate a debug file on TrueNAS SCALE, log in to the TrueNAS web interface, go to System > Advanced, then click Save Debug and wait for the file to download to your local system.

Chris Holzer October 29, 2024 at 6:22 AM
Edited

could not reproduce the issue, for me the scrub jobs behave as expected and start once I lower the threshold (days).
however I am on 24.10 RC2 so maybe this has been fixed since 24.04.2.1

Thomas Finke October 28, 2024 at 12:21 PM

No, the first scrub does not start once the threshold days are reached. Only after a first manual scrub the scrub tasks are working. Please see the discussion at

Not Applicable

Details

Assignee

Reporter

Labels

Fix versions

Priority

More fields

Katalon Platform

Created October 25, 2024 at 7:57 PM
Updated November 7, 2024 at 5:04 PM
Resolved November 7, 2024 at 5:04 PM