I've been following the tutorial here:
http://linode.com/wiki/index.php/AutomatedRdiffBackup
I've come to step 6 just before the "setting up rdiff-backup" part. When I try to execute
Code:
# rdiff-backup --test-server source-backup::/ignored
I get the following error:
Code:
/var/lib/python-support/python2.6/rdiff_backup/SetConnections.py:148: DeprecationWarning: os.popen2 is deprecated. Use the subprocess module.
stdin, stdout = os.popen2(remote_cmd)
root@XXX.XXX.XXX.XXX's password:
Warning: Local version 1.2.7 does not match remote version 1.1.15.
Exception '
Warning Security Violation!
Bad request for function: rpath.make_file_dict
with arguments: ['/ignored']
' raised of class '<class 'rdiff_backup.Security.Violation'>':
File "/var/lib/python-support/python2.6/rdiff_backup/Main.py", line 304, in error_check_Main
try: Main(arglist)
File "/var/lib/python-support/python2.6/rdiff_backup/Main.py", line 321, in Main
rps = map(SetConnections.cmdpair2rp, cmdpairs)
File "/var/lib/python-support/python2.6/rdiff_backup/SetConnections.py", line 78, in cmdpair2rp
return rpath.RPath(conn, filename).normalize()
File "/var/lib/python-support/python2.6/rdiff_backup/rpath.py", line 884, in __init__
else: self.setdata()
File "/var/lib/python-support/python2.6/rdiff_backup/rpath.py", line 908, in setdata
self.data = self.conn.rpath.make_file_dict(self.path)
File "/var/lib/python-support/python2.6/rdiff_backup/connection.py", line 450, in __call__
return apply(self.connection.reval, (self.name,) + args)
File "/var/lib/python-support/python2.6/rdiff_backup/connection.py", line 370, in reval
if isinstance(result, Exception): raise result
Traceback (most recent call last):
File "/usr/bin/rdiff-backup", line 30, in <module>
rdiff_backup.Main.error_check_Main(sys.argv[1:])
File "/var/lib/python-support/python2.6/rdiff_backup/Main.py", line 304, in error_check_Main
try: Main(arglist)
File "/var/lib/python-support/python2.6/rdiff_backup/Main.py", line 321, in Main
rps = map(SetConnections.cmdpair2rp, cmdpairs)
File "/var/lib/python-support/python2.6/rdiff_backup/SetConnections.py", line 78, in cmdpair2rp
return rpath.RPath(conn, filename).normalize()
File "/var/lib/python-support/python2.6/rdiff_backup/rpath.py", line 884, in __init__
else: self.setdata()
File "/var/lib/python-support/python2.6/rdiff_backup/rpath.py", line 908, in setdata
self.data = self.conn.rpath.make_file_dict(self.path)
File "/var/lib/python-support/python2.6/rdiff_backup/connection.py", line 450, in __call__
return apply(self.connection.reval, (self.name,) + args)
File "/var/lib/python-support/python2.6/rdiff_backup/connection.py", line 370, in reval
if isinstance(result, Exception): raise result
rdiff_backup.Security.Violation:
Warning Security Violation!
Bad request for function: rpath.make_file_dict
with arguments: ['/ignored']
As you can see it's asking for the root password (which is weird, considering I've set up the ssh key) but this is not my primary concern now. Why does the test fail? Any ideas?