Backup fails due to error when accessing a temporary file

Bug #334580 reported by Jean-Peer Lorenz
2
Affects Status Importance Assigned to Milestone
nssbackup
Fix Released
Medium
Jean-Peer Lorenz
0.2
Fix Released
Medium
Jean-Peer Lorenz

Bug Description

Backup fails due to error when accessing a temporary file:

Under certain circumstances the `files.snar` file cannot be copied from the temporary directory. This issue is caused by bad permissions of the created temporary directory. In the case that NSsbackup is called as superuser first, the temporary directory cannot be accessed by non-privileged users afterwards and the backup fails.

Experienced with
OS: Ubuntu 8.10
NSsbackup 0.2.0-RC6 installed both from PPA and from source.

Here is the interesting portion of the log:

2009-02-25 23:02:41,127 - DEBUG - tar.py:makeTarIncBackup(299) - Temporary snarfile: /tmp/nssbackup/files.snar
2009-02-25 23:02:41,128 - ERROR - nssbackupd.py:__onError(226) - [Errno 13] Permission denied: '/tmp/nssbackup/files.snar'
2009-02-25 23:02:41,130 - ERROR - nssbackupd.py:__onError(227) - Traceback (most recent call last):
  File "/home/peer/programming/python/nssb/modified/trunk/nssbackup/src/nssbackup/nssbackupd.py", line 217, in run
    self.__bm.makeBackup()
  File "/home/peer/programming/python/nssb/modified/trunk/nssbackup/src/nssbackup/managers/BackupManager.py", line 357, in makeBackup
    self.__actualSnapshot.commit()
  File "/home/peer/programming/python/nssb/modified/trunk/nssbackup/src/nssbackup/util/Snapshot.py", line 339, in commit
    self.__makebackup()
  File "/home/peer/programming/python/nssb/modified/trunk/nssbackup/src/nssbackup/util/Snapshot.py", line 528, in __makebackup
    TAR.makeTarIncBackup(self)
  File "/home/peer/programming/python/nssb/modified/trunk/nssbackup/src/nssbackup/util/tar.py", line 307, in makeTarIncBackup
    shutil.copy( base_snarfile, tmp_snarfile )
  File "/usr/lib/python2.5/shutil.py", line 85, in copy
    copyfile(src, dst)
  File "/usr/lib/python2.5/shutil.py", line 52, in copyfile
    fdst = open(dst, 'wb')
IOError: [Errno 13] Permission denied: '/tmp/nssbackup/files.snar'

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

A fix adressing this issue is in progress.

Changed in nssbackup:
assignee: nobody → peer.loz
importance: Undecided → Medium
milestone: none → release0.2
status: New → Confirmed
Revision history for this message
Jean-Peer Lorenz (peer.loz) wrote :

Fix is commited.

Changed in nssbackup:
status: Confirmed → Fix Committed
Revision history for this message
Jean-Peer Lorenz (peer.loz) wrote :

Fix is commited.

Revision history for this message
Oumar Aziz OUATTARA (wattazoum) wrote :

Fixed in 0.2rc 7

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.