rdiff-backup crashed with IOError in __init__()

Bug #329722 reported by Hew
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rdiff-backup
Fix Released
Undecided
Unassigned
rdiff-backup (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: rdiff-backup

Tried to recover a folder as a user when the backup was made as root.

ProblemType: Crash
Architecture: amd64
DistroRelease: Ubuntu 9.04
ExecutablePath: /usr/bin/rdiff-backup
InterpreterPath: /usr/bin/python2.5
NonfreeKernelModules: nvidia
Package: rdiff-backup 1.2.5-1
ProcCmdline: /usr/bin/python /usr/bin/rdiff-backup -r 0D /media/terabyte/rdiff-backup/home/username/.ssh/ /home/username/.ssh.old
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_AU.UTF-8
PythonArgs: ['/usr/bin/rdiff-backup', '-r', '0D', '/media/terabyte/rdiff-backup/home/username/.ssh/', '/home/username/.ssh.old']
SourcePackage: rdiff-backup
Title: rdiff-backup crashed with IOError in __init__()
Uname: Linux 2.6.28-8-generic x86_64
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Hew (hew) wrote :
Hew (hew)
Changed in rdiff-backup:
importance: Undecided → Medium
Revision history for this message
Andrew Ferguson (adferguson) wrote :

Hew,

The traceback shows:

IOError: [Errno 13] Permission denied: '/media/terabyte/rdiff-backup/rdiff-backup-data/mirror_metadata.2009-02-15T03:00:24+11:00.snapshot.gz'

Were you not running rdiff-backup as the user who runs the backups? What are the permissions on that file, and the directories: /media/terabyte/rdiff-backup/rdiff-backup-data/ and /media/terabyte/rdiff-backup/

thanks,
Andrew

Revision history for this message
Hew (hew) wrote :

Yes, I ran rdiff-backup as a user, even though the file was owned by root. This situation should not cause a crash. This is similar to bug 292586.

Revision history for this message
Andrew Ferguson (adferguson) wrote :

Wait a sec ... the version you are running already has code in it to check this situation. I just ran the same scenario and got an appropriate error message (not a traceback). The permissions on your rdiff-backup-data are not what I expect.

What are the permissions?

$ ls -la terabyte/rdiff-backup/rdiff-backup-data/

Revision history for this message
Hew (hew) wrote :

Perhaps it's because of the mix of ownership?

Revision history for this message
Andrew Ferguson (adferguson) wrote :

Yup, that's why. It looks like you did your first few backups as 'hew' and then all subsequent backups as root.

The code to check for this situation examines the ownership of the 'char_to_quote' file, which is the first file that rdiff-backup attempts to access. Since that file is owned by 'hew' and read/write, then rdiff-backup assumes all is well and continues on.

Guess I'll add another round of checks...

Revision history for this message
Andrew Ferguson (adferguson) wrote :

Fix committed to CVS. Will be included in next releases: 1.2.8 and 1.3.3.

Changed in rdiff-backup:
status: New → Fix Committed
Revision history for this message
Sarah Kowalik (hobbsee-deactivatedaccount) wrote :

Andrew, when will this next version be out?

Revision history for this message
Andrew Ferguson (adferguson) wrote :

Hi Sarah,
I might be able to spin a new release on Monday.

Revision history for this message
Andrew Ferguson (adferguson) wrote :

Rdiff-backup 1.2.8 and 1.3.3 have been released.

Changed in rdiff-backup:
status: Fix Committed → Fix Released
Revision history for this message
Hew (hew) wrote :

Fixed upstream, but 1.2.8 is not yet in Ubuntu.

Changed in rdiff-backup:
status: New → Fix Released
Changed in rdiff-backup (Ubuntu):
status: Fix Released → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package rdiff-backup - 1.2.8-1ubuntu1

---------------
rdiff-backup (1.2.8-1ubuntu1) karmic; urgency=low

  * Merge from debian unstable (LP: #339799), remaining changes:
    - Add --install-layout=deb to place files in /usr
    - Changed --prefix=$(CURDIR)/debian/rdiff-backup/usr to
      --root=$(CURDIR)/debian/rdiff-backup due to --prefix & --install-deb
      being mutually exclusive now.
    - Adds 01_fix_restricted_test-server_option.dpatch to make --test-server
      work while --restrict is in effects.
    - Adds dpatch entries to debian/control and debian/rules.
  * Closes LP: #329722.

rdiff-backup (1.2.8-1) unstable; urgency=low

  * Merging upstream version 1.2.8 (Closes: #520089):
    - Don't crash on zlib errors (Closes: #518531).

 -- Andreas Olsson <email address hidden> Thu, 14 May 2009 20:13:06 +0200

Changed in rdiff-backup (Ubuntu):
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.