Stalls on "ValueError: day is out of range for month"

Asked by Sparhawk

Hi,
I've been running Back In Time with success for a few weeks now, using the command line "backintime -b". This morning, I got the error "ValueError: day is out of range for month", and Back In Time appeared to stall. When I click the menu bar icon indicator, I get the notification that "Back In Time: Remove old snapshots." I tried to copy paste the error, but did what I inevitably do, and pressed control-c instead of control-shift-c. Anyway, I started Back In Time again, and got the same error. How can I get Back In Time running again?

Cheers.

Ubuntu 11.10
Internal ext4 to USB ext4
Back In Time 1.0.7

Question information

Language:
English Edit question
Status:
Answered
For:
Back In Time Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Sparhawk (sparhawkthesecond) said :
#1

Update:
I went into the GUI of Back In Time, and noticed that the last two backups were listed as today. I deleted these two backups, and attempted to backup (via CLI) again. I got the same error, but here is more of the error message, to give it some context.

Traceback (most recent call last):
  File "/usr/share/backintime/common/backintime.py", line 208, in <module>
    start_app()
  File "/usr/share/backintime/common/backintime.py", line 120, in start_app
    take_snapshot( cfg, True )
  File "/usr/share/backintime/common/backintime.py", line 47, in take_snapshot
    snapshots.Snapshots( cfg ).take_snapshot( force )
  File "/usr/share/backintime/common/snapshots.py", line 822, in take_snapshot
    self._free_space( now )
  File "/usr/share/backintime/common/snapshots.py", line 1348, in _free_space
    old_backup_id = self.get_snapshot_id( self.config.get_remove_old_snapshots_date() )
  File "/usr/share/backintime/common/config.py", line 516, in get_remove_old_snapshots_date
    return date.replace( year = date.year - value )
ValueError: day is out of range for month

Revision history for this message
Paul Mason (latepaul) said :
#2

I hit the same problem in the early hours of this morning. Looks like it could be something to do with being 29th Feb

Revision history for this message
Sparhawk (sparhawkthesecond) said :
#3

Yep, I think you are correct. It's now working fine for me, on the 1st of March. (I live on the east coast of Australia, so presumably this day will hit you later.)

Revision history for this message
Calavera (a632383) said :
#4

If you disable "remove snapshot older than XX years/weeks/days" and kill the hanging BIT process, BIT works again (you can re-enable the option tomorrow, it's probably a leap year issue)

Revision history for this message
Dan (danleweb) said :
#5

You are right it is related with 29th Feb.
The bug (https://bugs.launchpad.net/bugs/943320) is fixed.

Regards,
Dan

Can you help with this problem?

Provide an answer of your own, or ask Sparhawk for more information if necessary.

To post a message you must log in.