New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Day '0' out of range 1..30 at /usr/local/sbin/sanoid line 413 #394
Comments
Same issue here and getting 100's of mails about it |
I confirm the bug, which was indtroduced here: #362 |
Hi, here you can find the fast fix: shodanshok@9bb8f8e The fix basically reverts to the method to calculate the previous day in the special case of the first day of month. Note that this can lead to some duplicate snapshot in the rare case of DST happening the first day of a month (which was the reason I authored the change in the fist place). For manual patching, copy/save the code above and use the
|
Got this bug today, rollover to July 1st. I can assume I can just wait out the day with the crontab line for sanoid disabled until tomorrow? |
@scotws Correct. |
@shodanshok the error is still there now also on the 2nd? |
@normanu On 2nd you should have no problems. Anyway, you can apply the fast fix shown here: shodanshok@9bb8f8e Be sure to read the entire PR thread here: #395 |
@jimsalterjrs as this is quite an important bug to fix, can you look at #395 or #406 ? |
I've also just spontaneously run into this bug. I did nothing to trigger it... it just started happening 2.5 hrs ago on the day flip. See below for reproducing manually (normally on a cronjob):
|
The fix indicated by @shodanshok worked for me: Thanks, @shodanshok !! |
I'm setting up sanoid for the first time today, so it's possible I've configured something wrong, but I followed the CentOS instructions and
sanoid.conf
example almost exactly. It seems like this broke after UTC rolled over to June 1:TZ=UTC date && TZ=UTC /usr/local/sbin/sanoid --take-snapshots --verbose
With my local timezone (-600) which is still at May 31:
date && /usr/local/sbin/sanoid --take-snapshots --verbose
The text was updated successfully, but these errors were encountered: