GithubHelp home page GithubHelp logo

Comments (8)

isalgueiro avatar isalgueiro commented on June 12, 2024

I no longer use rdiff-backup.

from rdiff-backup.

mhsmith avatar mhsmith commented on June 12, 2024

I've experienced this error as well in the past, though I didn't make a note of exactly what I was doing at the time. Please reopen the issue, at least until it's received a response from the developer.

from rdiff-backup.

anomaly256 avatar anomaly256 commented on June 12, 2024

Re-opening so we know to investigate it. @mhsmith how did you get around it at the time?

from rdiff-backup.

mhsmith avatar mhsmith commented on June 12, 2024

I'm sorry, I don't remember. All I can tell you is I was running on Cygwin on Windows 7, and probably wasn't using any command-line options except --exclude-globbing-filelist. I don't think I've ever used --no-acls.

from rdiff-backup.

maffe avatar maffe commented on June 12, 2024

I got this error message when I ran sudo rdiff-backup … instead of doing sudo su and then rdiff-backup ….

from rdiff-backup.

mhsmith avatar mhsmith commented on June 12, 2024

Today I tried to use the build from http://savannah.nongnu.org/download/rdiff-backup/rdiff-backup-1.2.8-win32.zip rather than the build provided by Cygwin, and I received this exact error.

Before that, I received the following messages:

Warning: Windows Access Control List file not found
UpdateError: <filename redacted> changed from regular file before signature 
[this line was repeated several times, always for files with non-ASCII filenames]

I did not find any workaround other than going back to the Cygwin build.

from rdiff-backup.

ymartin59 avatar ymartin59 commented on June 12, 2024

I faced same error message:

sudo ./bin/backup.sh
[sudo] password for user: 
Run rdiff-backup on /home/user...
Exception 'RORPath instance has no attribute 'path'' raised of class '<type 'exceptions.AttributeError'>':
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/Main.py", line 304, in error_check_Main
    try: Main(arglist)
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/Main.py", line 324, in Main
    take_action(rps)
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/Main.py", line 280, in take_action
    elif action == "backup": Backup(rps[0], rps[1])
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/Main.py", line 343, in Backup
    backup.Mirror_and_increment(rpin, rpout, incdir)
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/backup.py", line 51, in Mirror_and_increment
    DestS.patch_and_increment(dest_rpath, source_diffiter, inc_rpath)
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/backup.py", line 243, in patch_and_increment
    ITR(diff.index, diff)
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/rorpiter.py", line 284, in __call__
    branch.start_process(*args)
  File "/usr/lib/python2.7/dist-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/lib/python2.7/dist-packages/rdiff_backup/Main.py", line 304, in error_check_Main
    try: Main(arglist)
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/Main.py", line 324, in Main
    take_action(rps)
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/Main.py", line 280, in take_action
    elif action == "backup": Backup(rps[0], rps[1])
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/Main.py", line 343, in Backup
    backup.Mirror_and_increment(rpin, rpout, incdir)
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/backup.py", line 51, in Mirror_and_increment
    DestS.patch_and_increment(dest_rpath, source_diffiter, inc_rpath)
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/backup.py", line 243, in patch_and_increment
    ITR(diff.index, diff)
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/rorpiter.py", line 284, in __call__
    branch.start_process(*args)
  File "/usr/lib/python2.7/dist-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'

And command is /usr/bin/rdiff-backup --print-statistics --exclude-filelist exclude.log /home/user /media/backup/home-user

And the reason it may have failed is that script was previously started as regular user and it was now the first time I run script with sudo.

from rdiff-backup.

ericzolf avatar ericzolf commented on June 12, 2024

The issue is still there but it does only happen when another issue happens (I guess wrong or unreachable directory). RORPath class has indeed no attribute path hence the lines around 783 in src/rdiff/backup.py are wrong:

        assert diff_rorp.isdir() or self.base_rp.isdir(), \
          ("Either %s or %s must be a directory" % (repr(diff_rorp.path),

Replacing it with diff_rorp.get_safeindexpath() should solve the issue. I'll fix it once #60 is closed.

from rdiff-backup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.