Exception 'TypeError' is raised if an error occurs while pulling a snapshot.

Bug #299964 reported by Jean-Peer Lorenz
2
Affects Status Importance Assigned to Milestone
nssbackup
Fix Released
Low
Jean-Peer Lorenz

Bug Description

Exception 'TypeError' is raised if an error occurs while pulling a snapshot:

If an error occurs while pulling a snapshot another exception gets raised. The log message contains a format error, here is the corresponding output:

    2008-11-14 17:26:46,069 - DEBUG - tar.py:extract2(132) - output was :
    2008-11-14 17:26:46,072 - ERROR - nssbackupd.py:__onError(216) - not enough arguments for format string
    2008-11-14 17:26:46,101 - ERROR - nssbackupd.py:__onError(217) - Traceback (most recent call last):
      File "/home/peer/programming/python/nssb/modified/minor_bugfixes/0.2/src/nssbackup/nssbackupd.py", line 136, in run
        self.__bm.makeBackup()
      File "/home/peer/programming/python/nssb/modified/minor_bugfixes/0.2/src/nssbackup/managers/BackupManager.py", line 123, in makeBackup
        self.__snpman.purge(purge)
      File "/home/peer/programming/python/nssb/modified/minor_bugfixes/0.2/src/nssbackup/managers/SnapshotManager.py", line 587, in purge
        purgeinterval(_2daysbefore - n*daytime,_2daysbefore - (n-1)*daytime)
      File "/home/peer/programming/python/nssb/modified/minor_bugfixes/0.2/src/nssbackup/managers/SnapshotManager.py", line 542, in purgeinterval
        self.rebaseSnapshot(snps[0],snps[-1])
      File "/home/peer/programming/python/nssb/modified/minor_bugfixes/0.2/src/nssbackup/managers/SnapshotManager.py", line 170, in rebaseSnapshot
        self.__rebaseOnLastSnp(currentTorebase)
      File "/home/peer/programming/python/nssb/modified/minor_bugfixes/0.2/src/nssbackup/managers/SnapshotManager.py", line 429, in __rebaseOnLastSnp
        self.__pullSnpContent(snapshot, basesnp)
      File "/home/peer/programming/python/nssb/modified/minor_bugfixes/0.2/src/nssbackup/managers/SnapshotManager.py", line 414, in __pullSnpContent
        self.logger.error(_("Got an exception when Pulling '%s' : "+str(e)) % snapshot.getName() )
    TypeError: not enough arguments for format string

    2008-11-14 17:26:46,102 - INFO - nssbackupd.py:__onError(233) - Session of backup is finished (lockfile is removed)
    2008-11-14 17:26:46,103 - ERROR - nssbackupd.py:__onError(248) - Couldn't copy the logfile into the snapshot directory

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

This bug is fixed in patch attached to bug #299967.

Changed in nssbackup:
assignee: nobody → peer.loz
importance: Undecided → Low
milestone: none → release0.2
status: New → Fix Committed
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.