Crashed: RORPath instance has no attribute 'path'

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Crashed: RORPath instance has no attribute 'path'

Felix Kaiser

Hi,

rdiff-backup just crashed (after running for an hour or so), and see
traceback below. Yay, two defects.

"music" is a directory which has been deleted since the last backup.
(For this backup drive, that was ca. a year ago. Yes, I have others.)
(I've moved it away because it slows down backups considerably.)

I'm using rdiff-backup v1.2.8 as packaged by Fedora 20.

(I wish rdiff-backup wasn't so bad at dealing with interrupted backups.)

If there's anything else anyone wants to know, just ask.

(Though since the last release was 5 years ago, I guess
noone will look into this. Well.)

Merry Christmas (in a few days)
Felix


Processing changed file music
Exception 'RORPath instance has no attribute 'path'' raised of class '<type 'exceptions.AttributeError'>':
  File "/usr/lib64/python2.7/site-packages/rdiff_backup/Main.py", line 304, in error_check_Main
    try: Main(arglist)
  File "/usr/lib64/python2.7/site-packages/rdiff_backup/Main.py", line 324, in Main
    take_action(rps)
  File "/usr/lib64/python2.7/site-packages/rdiff_backup/Main.py", line 280, in take_action
    elif action == "backup": Backup(rps[0], rps[1])
  File "/usr/lib64/python2.7/site-packages/rdiff_backup/Main.py", line 343, in Backup
    backup.Mirror_and_increment(rpin, rpout, incdir)
  File "/usr/lib64/python2.7/site-packages/rdiff_backup/backup.py", line 51, in Mirror_and_increment
    DestS.patch_and_increment(dest_rpath, source_diffiter, inc_rpath)
  File "/usr/lib64/python2.7/site-packages/rdiff_backup/backup.py", line 243, in patch_and_increment
    ITR(diff.index, diff)
  File "/usr/lib64/python2.7/site-packages/rdiff_backup/rorpiter.py", line 284, in __call__
    branch.start_process(*args)
  File "/usr/lib64/python2.7/site-packages/rdiff_backup/backup.py", line 718, in start_process
    ("Either %s or %s must be a directory" % (repr(diff_rorp.path),

Traceback (most recent call last):
  File "/usr/bin/rdiff-backup", line 30, in <module>
    rdiff_backup.Main.error_check_Main(sys.argv[1:])
  File "/usr/lib64/python2.7/site-packages/rdiff_backup/Main.py", line 304, in error_check_Main
    try: Main(arglist)
  File "/usr/lib64/python2.7/site-packages/rdiff_backup/Main.py", line 324, in Main
    take_action(rps)
  File "/usr/lib64/python2.7/site-packages/rdiff_backup/Main.py", line 280, in take_action
    elif action == "backup": Backup(rps[0], rps[1])
  File "/usr/lib64/python2.7/site-packages/rdiff_backup/Main.py", line 343, in Backup
    backup.Mirror_and_increment(rpin, rpout, incdir)
  File "/usr/lib64/python2.7/site-packages/rdiff_backup/backup.py", line 51, in Mirror_and_increment
    DestS.patch_and_increment(dest_rpath, source_diffiter, inc_rpath)
  File "/usr/lib64/python2.7/site-packages/rdiff_backup/backup.py", line 243, in patch_and_increment
    ITR(diff.index, diff)
  File "/usr/lib64/python2.7/site-packages/rdiff_backup/rorpiter.py", line 284, in __call__
    branch.start_process(*args)
  File "/usr/lib64/python2.7/site-packages/rdiff_backup/backup.py", line 718, in start_process
    ("Either %s or %s must be a directory" % (repr(diff_rorp.path),
AttributeError: RORPath instance has no attribute 'path'

_______________________________________________
rdiff-backup-users mailing list at [hidden email]
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
Reply | Threaded
Open this post in threaded view
|

Deleteing Files from repository

remush
Hi all,

I recently deleted a folder from my rdiff-backup repository using 

$ rm -rf foldername

Running rdiff-backup after having done this generates following error.

A regular file was indicated by the metadata, but could not be
constructed from existing increments because last increment had type
None.  Instead of the actual file's data, an empty length file will be
created.  This error is probably caused by data loss in the
rdiff-backup destination directory, or a bug in rdiff-backup
Warning: Could not restore file Music/music_27.mp3!

There are many other similar warnings being displayed, this is just an example.

Any suggestions on how I clean this up ?

Thanks,
Stephen.

_______________________________________________
rdiff-backup-users mailing list at [hidden email]
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
Reply | Threaded
Open this post in threaded view
|

Re: Deleteing Files from repository

Dominic Raferd-3
Hello Stephen

Of course you do realise (now!) that you must never delete stuff from an
active repository by using rm...

Assuming you still have, somewhere else, the directory that you deleted
from your repository, I would suggest that you copy this back into the
repository, then run rdiff-backup with --check-destination-dir. It might
work it might not.  If you haven't got this file anywhere then you could
carry on using rdiff-backup and ignore these error messages. I
think/hope that rdiff-backup will carry on working fine with the rest of
the data in the repository.

Dominic


On 22/12/2014 06:43, Stephen Butler wrote:

> Hi all,
>
> I recently deleted a folder from my rdiff-backup repository using
>
> $ rm -rf foldername
>
> Running rdiff-backup after having done this generates following error.
>
> A regular file was indicated by the metadata, but could not be
> constructed from existing increments because last increment had type
> None.  Instead of the actual file's data, an empty length file will be
> created.  This error is probably caused by data loss in the
> rdiff-backup destination directory, or a bug in rdiff-backup
> Warning: Could not restore file Music/music_27.mp3!
>
> There are many other similar warnings being displayed, this is just an
> example.
>
> Any suggestions on how I clean this up ?
>
> Thanks,
> Stephen.
>
>
> _______________________________________________
> rdiff-backup-users mailing list at [hidden email]
> https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
> Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki


_______________________________________________
rdiff-backup-users mailing list at [hidden email]
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki