keep "invalid agrument" crash

Bug #125364 reported by Tanker Bob on 2007-07-11
2
Affects Status Importance Assigned to Milestone
keep (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: keep

Kubuntu 7.04, 2.6.20-16-generic kernel, backup from a ext-3 home directory to an ATA-100 FAT USB2 external drive. All permissions are correct on the drives.

Execute keep, created a backup for my home directory to the external drive, saved the backup setup, then clicked on Backup Now. Received the following error message:

An error occured making /home/bob backup:
Exception '[Errno 22] Invalid argument' raised of class '': File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 295, in error_check_Main try: Main(arglist) File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 315, in Main take_action(rps) File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 271, in take_action elif action == "backup": Backup(rps[0], rps[1]) File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 337, in Backup backup.Mirror(rpin, rpout) File "/var/lib/python-support/python2.5/rdiff_backup/backup.py", line 38, in Mirror DestS.patch(dest_rpath, source_diffiter) File "/var/lib/python-support/python2.5/rdiff_backup/backup.py", line 218, in patch ITR(diff.index, diff) File "/var/lib/python-support/python2.5/rdiff_backup/rorpiter.py", line 281, in __call__ last_branch.fast_process(*args) File "/var/lib/python-support/python2.5/rdiff_backup/backup.py", line 517, in fast_process rpath.rename(tf, mirror_rp) File "/var/lib/python-support/python2.5/rdiff_backup/rpath.py", line 237, in rename else: rp_source.conn.os.rename(rp_source.path, rp_dest.path) Traceback (most recent call last): File "/usr/bin/rdiff-backup", line 23, in rdiff_backup.Main.error_check_Main(sys.argv[1:]) File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 295, in error_check_Main try: Main(arglist) File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 315, in Main take_action(rps) File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 271, in take_action elif action == "backup": Backup(rps[0], rps[1]) File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 337, in Backup backup.Mirror(rpin, rpout) File "/var/lib/python-support/python2.5/rdiff_backup/backup.py", line 38, in Mirror DestS.patch(dest_rpath, source_diffiter) File "/var/lib/python-support/python2.5/rdiff_backup/backup.py", line 218, in patch ITR(diff.index, diff) File "/var/lib/python-support/python2.5/rdiff_backup/rorpiter.py", line 281, in __call__ last_branch.fast_process(*args) File "/var/lib/python-support/python2.5/rdiff_backup/backup.py", line 517, in fast_process rpath.rename(tf, mirror_rp) File "/var/lib/python-support/python2.5/rdiff_backup/rpath.py", line 237, in rename else: rp_source.conn.os.rename(rp_source.path, rp_dest.path) OSError: [Errno 22] Invalid argument

keep creates the target directories and fills some in the root before crashing. Subsequent attempts give the following error:

An error occured making /home/bob backup:
Fatal Error: Bad rdiff-backup-data dir on destination side The rdiff-backup data directory /media/BACKUP_DISK/Linux Backup/rdiff-backup-data exists, but we cannot find a valid current_mirror marker. You can avoid this message by removing the rdiff-backup-data directory; however any data in it will be lost. Probably this error was caused because the first rdiff-backup session into a new directory failed. If this is the case it is safe to delete the rdiff-backup-data directory because there is no important information in it.

If I delete everything in the backup directory and run keep again, I get the first error above again.

MSI P6N SLI Platinum MB, E6600 Dual Core CPU, NVidia 8800 GTS with 640MB GDDR3 SDRAM using 1.0-9755 driver, 2GB 800MHz DDR SDRAM

Tanker Bob (tankerbob) wrote :

I forgot to mention that I'm using Kubuntu 7.04 x86_64 distribution.

Tanker Bob (tankerbob) wrote :

I believe the issue is that keep is trying to backup files which are owned by root. I'm not backing up as root, and have the box checked for keep not to backup special files. keep should simply skip files for which it doesn't have permissions, not crash with cryptic error messages. Since a number of programs, including google earth, create files for which the user doesn't have permission, keep appears to be pretty useless.

Fabián Rodríguez (magicfab) wrote :

For comparison purposes, and to isolate this to the cause you cite (permissions, possibly root-owned files), could you try running keep as root:
kdesu keep

and please report back the result ?

Thank you.

Changed in keep:
assignee: nobody → magicfab
status: New → Incomplete
Fabián Rodríguez (magicfab) wrote :

Marking this as invalida, as we didn't get more information.

Changed in keep:
assignee: magicfab → nobody
Tanker Bob (tankerbob) wrote :
Download full text (7.8 KiB)

Fabian,

Since I didn't hear anything for seven months after my initial report, I implemented another backup solution. I haven't used Keep since then. But, here are the results of trying today to backup a normal document directory:

An error occured making /home/bob/Documents/Word Documents backup:
Exception '[Errno 22] Invalid argument' raised of class '': File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 302, in error_check_Main try: Main(arglist) File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 322, in Main take_action(rps) File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 278, in take_action elif action == "backup": Backup(rps[0], rps[1]) File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 344, in Backup backup.Mirror(rpin, rpout) File "/var/lib/python-support/python2.5/rdiff_backup/backup.py", line 38, in Mirror DestS.patch(dest_rpath, source_diffiter) File "/var/lib/python-support/python2.5/rdiff_backup/backup.py", line 225, in patch ITR(diff.index, diff) File "/var/lib/python-support/python2.5/rdiff_backup/rorpiter.py", line 281, in __call__ last_branch.fast_process(*args) File "/var/lib/python-support/python2.5/rdiff_backup/backup.py", line 524, in fast_process rpath.rename(tf, mirror_rp) File "/var/lib/python-support/python2.5/rdiff_backup/rpath.py", line 252, in rename else: rp_source.conn.os.rename(rp_source.path, rp_dest.path) Traceback (most recent call last): File "/usr/bin/rdiff-backup", line 23, in rdiff_backup.Main.error_check_Main(sys.argv[1:]) File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 302, in error_check_Main try: Main(arglist) File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 322, in Main take_action(rps) File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 278, in take_action elif action == "backup": Backup(rps[0], rps[1]) File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 344, in Backup backup.Mirror(rpin, rpout) File "/var/lib/python-support/python2.5/rdiff_backup/backup.py", line 38, in Mirror DestS.patch(dest_rpath, source_diffiter) File "/var/lib/python-support/python2.5/rdiff_backup/backup.py", line 225, in patch ITR(diff.index, diff) File "/var/lib/python-support/python2.5/rdiff_backup/rorpiter.py", line 281, in __call__ last_branch.fast_process(*args) File "/var/lib/python-support/python2.5/rdiff_backup/backup.py", line 524, in fast_process rpath.rename(tf, mirror_rp) File "/var/lib/python-support/python2.5/rdiff_backup/rpath.py", line 252, in rename else: rp_source.conn.os.rename(rp_source.path, rp_dest.path) OSError: [Errno 22] Invalid argument

I then did the same backup as you suggested with kdesu. I still received this error:

An error occured making /home/bob/Documents/Word Documents backup:
Exception '[Errno 22] Invalid argument' raised of class '': File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 302, in error_check_Main try: Main(arglist) File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 322, in Main take_action(rps) File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 278, in take_action elif action == "backu...

Read more...

Ralph Janke (txwikinger) wrote :

We'd like to figure out what's causing this bug for you, but we haven't heard back from you in a while. Could you please provide the requested information? Thanks!

Tanker Bob (tankerbob) wrote :

Ralph,

I wrote my response and provided all the additional information requested almost a year ago, and received no answer in all that time, and now you're saying that you haven't heard from ME in a while? And that after no response for 7 months before that? I'd hardly say that I was the one holding up the process. You have everything that I have, and have had it for over two years. I'm now using Synkron which works perfectly. I'm no longer interested in Keep, and apparently neither is the author.

I am curious, though. What information do you think that I haven't provided? The only thing that Fabian requested was to run Keep using kdesu. I did that and provided the complete output from the attempt in November of last year.

Thank you for taking the time to report this bug and helping to make Ubuntu better. I noticed that the package version your bugging is updated in Lucid. Please update via http://releases.ubuntu.com/lucid/ repost a detailed error report, and update the bug status. Thanks!

Launchpad Janitor (janitor) wrote :

[Expired for keep (Ubuntu) because there has been no activity for 60 days.]

Changed in keep (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers