Backup fails due to error when accessing a temporary file
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:
2009-02-25 23:02:41,128 - ERROR - nssbackupd.
2009-02-25 23:02:41,130 - ERROR - nssbackupd.
File "/home/
self.
File "/home/
self.
File "/home/
self.
File "/home/
TAR.
File "/home/
shutil.copy( base_snarfile, tmp_snarfile )
File "/usr/lib/
copyfile(src, dst)
File "/usr/lib/
fdst = open(dst, 'wb')
IOError: [Errno 13] Permission denied: '/tmp/nssbackup
A fix adressing this issue is in progress.