SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Getting Error with rdiff-backup 1.0.0
Author Message
Post Getting Error with rdiff-backup 1.0.0 
I'm getting the following error with rdiff-backup 1.0.0

Any ideas? Does a later version fixed this issue?

Processing changed file home/bofflimited/foo
Sending back exception 'filetype' of type exceptions.KeyError:
File "/usr/lib/python2.3/site-packages/rdiff_backup/connection.py",
line 334, in answer_request
result = apply(eval(request.function_string), argument_list)
File "/usr/lib/python2.3/site-packages/rdiff_backup/restore.py", line
317, in patch
ITR(diff.index, diff)
File "/usr/lib/python2.3/site-packages/rdiff_backup/rorpiter.py", line
279, in __call__
last_branch.fast_process(*args)
File "/usr/lib/python2.3/site-packages/rdiff_backup/restore.py", line
633, in fast_process
self.patch_to_temp(rp, diff_rorp, tf)
File "/usr/lib/python2.3/site-packages/rdiff_backup/restore.py", line
640, in patch_to_temp
elif diff_rorp.get_attached_filetype() == 'snapshot':
File "/usr/lib/python2.3/site-packages/rdiff_backup/rpath.py", line
555, in get_attached_filetype
return self.data['filetype']

Traceback (most recent call last):
File "/usr/bin/rdiff-backup", line 23, in ?
rdiff_backup.Main.Main(sys.argv[1:])
File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line
282, in Main
take_action(rps)
File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line
262, in take_action
elif action == "restore-as-of": Restore(rps[0], rps[1], 1)
File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line
493, in Restore
inc_rpath, dest_rp, time)
File "/usr/lib/python2.3/site-packages/rdiff_backup/restore.py", line
45, in Restore
TargetS.patch(target, diff_iter)
File "/usr/lib/python2.3/site-packages/rdiff_backup/connection.py",
line 445, in __call__
return apply(self.connection.reval, (self.name,) + args)
File "/usr/lib/python2.3/site-packages/rdiff_backup/connection.py",
line 367, in reval
if isinstance(result, Exception): raise result
KeyError: 'filetype'
Command exited with non-zero status 1

Post Getting Error with rdiff-backup 1.0.0 
Sorry.. forgot to say that this is while restoring using the cmd line:

rdiff-backup -v5 --print-statistics --restore-as-of 0D --force
--remote-schema '/usr/local/bin/cstream -t '$(($maxKBps * 1024))' | ssh
%s '\''rdiff-backup --server'\'' | /usr/local/bin/cstream -t
'$(($maxKBps * 1024)) . root < at > destmachine::/


Davy Durham wrote:

I'm getting the following error with rdiff-backup 1.0.0

Any ideas? Does a later version fixed this issue?

Processing changed file home/bofflimited/foo
Sending back exception 'filetype' of type exceptions.KeyError:
File "/usr/lib/python2.3/site-packages/rdiff_backup/connection.py",
line 334, in answer_request
result = apply(eval(request.function_string), argument_list)
File "/usr/lib/python2.3/site-packages/rdiff_backup/restore.py", line
317, in patch
ITR(diff.index, diff)
File "/usr/lib/python2.3/site-packages/rdiff_backup/rorpiter.py",
line 279, in __call__
last_branch.fast_process(*args)
File "/usr/lib/python2.3/site-packages/rdiff_backup/restore.py", line
633, in fast_process
self.patch_to_temp(rp, diff_rorp, tf)
File "/usr/lib/python2.3/site-packages/rdiff_backup/restore.py", line
640, in patch_to_temp
elif diff_rorp.get_attached_filetype() == 'snapshot':
File "/usr/lib/python2.3/site-packages/rdiff_backup/rpath.py", line
555, in get_attached_filetype
return self.data['filetype']

Traceback (most recent call last):
File "/usr/bin/rdiff-backup", line 23, in ?
rdiff_backup.Main.Main(sys.argv[1:])
File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line
282, in Main
take_action(rps)
File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line
262, in take_action
elif action == "restore-as-of": Restore(rps[0], rps[1], 1)
File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line
493, in Restore
inc_rpath, dest_rp, time)
File "/usr/lib/python2.3/site-packages/rdiff_backup/restore.py", line
45, in Restore
TargetS.patch(target, diff_iter)
File "/usr/lib/python2.3/site-packages/rdiff_backup/connection.py",
line 445, in __call__
return apply(self.connection.reval, (self.name,) + args)
File "/usr/lib/python2.3/site-packages/rdiff_backup/connection.py",
line 367, in reval
if isinstance(result, Exception): raise result
KeyError: 'filetype'
Command exited with non-zero status 1



_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL:
http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Post Getting Error with rdiff-backup 1.0.0 
Davy Durham <pubaddr2 < at > davyandbeth.com>
wrote the following on Tue, 18 Oct 2005 17:36:54 -0500
I'm getting the following error with rdiff-backup 1.0.0

Any ideas? Does a later version fixed this issue?

Processing changed file home/bofflimited/foo
Sending back exception 'filetype' of type exceptions.KeyError:
...
555, in get_attached_filetype
return self.data['filetype']

Yes, v1.0.1 should fix this problem. Here is a relevant excerpt from
the CHANGELOG:

New in v1.0.1 (2005/09/10)
--------------------------

Fix for "'filetype' of type exceptions.KeyError" error when restoring.
Test case provided by Davy Durham. (The problem was the
mirror_metadata file could become un-synced when a file is deleted
when rdiff-backup is running and later the directory that file is in
gets deleted.)


Aren't you glad you reported that bug earlier? ;)

--
Ben Escoto

Post Getting Error with rdiff-backup 1.0.0 
Ok, now I feel stupid ;)

Now that I remember, I think I'm running 1.0.0.. but it's with the patch
applied that you gave me to fix the problem.. perhaps I missed on of the
machines. I'll be sure to update all machines to 1.0.1 official and
will let you know if it still happens.

Ben Escoto wrote:

Davy Durham <pubaddr2 < at > davyandbeth.com>
wrote the following on Tue, 18 Oct 2005 17:36:54 -0500


I'm getting the following error with rdiff-backup 1.0.0

Any ideas? Does a later version fixed this issue?

Processing changed file home/bofflimited/foo
Sending back exception 'filetype' of type exceptions.KeyError:


...


555, in get_attached_filetype
return self.data['filetype']



Yes, v1.0.1 should fix this problem. Here is a relevant excerpt from
the CHANGELOG:

New in v1.0.1 (2005/09/10)
--------------------------

Fix for "'filetype' of type exceptions.KeyError" error when restoring.
Test case provided by Davy Durham. (The problem was the
mirror_metadata file could become un-synced when a file is deleted
when rdiff-backup is running and later the directory that file is in
gets deleted.)


Aren't you glad you reported that bug earlier? ;)




Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB