Crash, with "%d format: a number is required, not str"

Bug #577296 reported by Dominik Wujastyk
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
nssbackup
Fix Released
High
Jean-Peer Lorenz

Bug Description

NSsbackup crashes after a while during a backup, with the message popup box

An error occurred: '%d format: a number is required, not str'

I'm using .2, rc9 from the ppa. Current and up-to-date.

Ubuntu Linux Lucid, up to date as of today. Kernel 2.6.32-22-generic running on a Lenovo Thinkpad T500.

Revision history for this message
Dominik Wujastyk (wujastyk) wrote :
Revision history for this message
Jean-Peer Lorenz (peer.loz) wrote :

Thank you for reporting this issue.

Can you provide some more information how to trigger this bug?
Maybe you could post the configuration used.
Can you post the log file written during the error? If you got no log file could you try to reproduce the issue while setting the log level to 'Debug'?

Thanks.

Changed in nssbackup:
status: New → Incomplete
Revision history for this message
djalfie (djalfie) wrote :

Same here.

Last lines in log are:
2010-05-16 13:03:06,750 - ERROR: %d format: a number is required, not str
2010-05-16 13:03:06,754 - ERROR: Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/nssbackup/nssbackupd.py", line 217, in run
    self.__bm.makeBackup()
  File "/usr/lib/python2.6/dist-packages/nssbackup/managers/BackupManager.py", line 375, in makeBackup
    self.__fillSnapshot()
  File "/usr/lib/python2.6/dist-packages/nssbackup/managers/BackupManager.py", line 408, in __fillSnapshot
    % { 'freespace' : _freespace_hr, 'neededspace' : _snpsize_hr})
TypeError: %d format: a number is required, not str

2010-05-16 13:03:06,792 - INFO: Terminating FUSE File Access Manager.
2010-05-16 13:03:06,954 - INFO: Backup process finished.

Revision history for this message
Jean-Peer Lorenz (peer.loz) wrote :

Thank you so much for this additional information. Helps a lot.

Changed in nssbackup:
status: Incomplete → Fix Committed
importance: Undecided → High
assignee: nobody → Jean-Peer Lorenz (peer.loz)
Revision history for this message
Frank Gross (f-gross) wrote :

Jean-Peer, the same happened to me just now, too ("TypeError: %d format: a number is required, not str"). Do you want/need the output from my nssbackup.log as well?

Another "problem" (not a real problem for me, though) is, that I wanted nssbackup to make additional backups to existing ones already made with sbackup. I get a warning which reads:

2010-05-17 21:45:30,190 - WARNING in BackupManager.makeBackup(308): There are snapshots with old snapshot format. Please upgrade them if you want to use them.

So, how to upgrade them? It's not a problem in my case to start the backups from scratch with nssbackup. I just noticed the warning and wondered how to "upgrade" existing ones. There may be other users who can't simply backup from scratch, so they may get into trouble when switching from sbackup to nssbackup. Btw, the backup did not perform due to having not enough space left on my backup stick (8 GB stick) as nssbackup wanted to start a full backup which obviously is related to the old archive format already on the stick.

Thanks, Frank

Revision history for this message
Frank Gross (f-gross) wrote :

Update from me:

I just deleted the old sbackup's archives from my stick and ran nssbackup to make backups from scratch and everything worked well. No more "TypeError: %d format: a number is required, not str" for me so far. I'll keep you posted if there are any more errors in this regard when my auto-backup is done tomorrow evening.

Frank

Revision history for this message
Jean-Peer Lorenz (peer.loz) wrote :

A fix for this problem is already committed to the 0.2 series branch and will be included in the next release (the final 0.2.0 release) in short time.

The error is triggered if not enough free disk space is available for the current backup. In such cases an error message is printed, and this message is errorneous. Due to this fact, the problem vanished for you after you've deleted old backups.

Changed in nssbackup:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.