Welcome! » Log In » Create A New Profile

Newbie Stuck

Posted by Anonymous 
Newbie Stuck
April 09, 2004 10:26AM
Hello,
I'm pretty new to all this... so bear with me.
I have rdiff-backup installed on both machines in question and it works
locally on both.

machine 1
redhat 7.5 (i think) running as a file server using samba
ridiff-backup 0.12.6
ssh login port = 22
ip = 192.168.0.253

machine 2
debian acting as a firewall/gateway
rdiff-backup 06.0-1_all.deb
ssh login port = 420
ip = 192.168.0.254
when I run apt-get update here it says that this is the latest version.

I want to backup the samba share to the debian machine, eventually I want to
implement a full cron scenario where it does a full once a week then
incremementals daily with an auto delete of stuff say three weeks old or so.
But for right now i just want to get it to work.

this command from the debian machine
rdiff-backup /samba-saa 192.168.0.253::/samba/Data
yeilds this

root < at > 192.168.0.253's password:
Traceback (most recent call last):
File "/usr/bin/rdiff-backup", line 24, in ?
rdiff_backup.Main.Main(sys.argv[1:])
File "/usr/lib/python2.2/site-packages/rdiff_backup/Main.py", line 250, in
Main
take_action(rps)
File "/usr/lib/python2.2/site-packages/rdiff_backup/Main.py", line 220, in
take_action
connection.PipeConnection(sys.stdin, sys.stdout).Server()
File "/usr/lib/python2.2/site-packages/rdiff_backup/connection.py", line
347, in Server
self.get_response(-1)
File "/usr/lib/python2.2/site-packages/rdiff_backup/connection.py", line
309, in get_response
try: req_num, object = self._get()
File "/usr/lib/python2.2/site-packages/rdiff_backup/connection.py", line
235, in _get
if format_string == "o": result = cPickle.loads(data)
AttributeError: 'module' object has no attribute 'ConnectionRequest'
Traceback (most recent call last):
File "/usr/bin/rdiff-backup", line 5099, in ?
Globals.Main.Main()
File "/usr/bin/rdiff-backup", line 4841, in Main
self.remote_schema, self.remote_cmd)
File "/usr/bin/rdiff-backup", line 4540, in InitRPs
return map(cls.cmdpair2rp, cmd_pairs)
File "/usr/bin/rdiff-backup", line 4545, in cmdpair2rp
if cmd: conn = cls.init_connection(cmd)
File "/usr/bin/rdiff-backup", line 4608, in init_connection
cls.check_connection_version(conn)
File "/usr/bin/rdiff-backup", line 4616, in check_connection_version
remote_version = conn.Globals.get('version')
File "/usr/bin/rdiff-backup", line 1878, in __call__
return apply(self.connection.reval, (self.name,) + args)
File "/usr/bin/rdiff-backup", line 1815, in reval
result = self.get_response(req_num)
File "/usr/bin/rdiff-backup", line 1769, in get_response
try: req_num, object = self._get()
File "/usr/bin/rdiff-backup", line 1683, in _get
assert len(header_string) == 9,
AssertionError: Error reading from pipe (problem probably originated
remotely)

This string executed on the redhat machine

rdiff-backup /samba-saa/public 192.168.0.254::/samba-saa/public

yields this

ssh: connect to address 192.168.0.254 port 22: Connection refused
Fatal Error: Truncated header string (problem probably originated remotely)

Couldn't start up the remote connection by executing

ssh -C 192.168.0.254 rdiff-backup --server

Remember that, under the default settings, rdiff-backup must be
installed in the PATH on the remote system. See the man page for more
information on this. This message may also be displayed if the remote
version of rdiff-backup is quite different from the local version (0.12.6).

forgive the differnce in folder names, I was just trying to test the backup
on small folder
hopefully this won't confuse.

Thanks in advance for the help.

Paul Ackerman
Steamboat Architectural Associates
Steamboat Springs, Colorado
paul < at > steamboatarchitectural.com
www.steamboatarchitectural.com

970-879-0819
970-879-3406 fax

"I never let my schooling get in the way of my education"
-M. Twain (maybe)
Newbie Stuck
April 09, 2004 03:23PM
Paul Steamboat wrote:

[quote]when I run apt-get update here it says that this is the latest version.
[/quote]
it is the latest version in unstable.
you can use a backported one for better compatibility.
the below traceback is because the debian version in stable is too old.
Your best bet (easiest) would be to get the 12.6 rpm from the site, use
alien (apt-get install alien) to convert it to deb (alien
rdiff-backupxxx.rpm) install it, (dpkg -i rdiff-backupxxx.deb) then edit
/usr/bin/rdiff-backup to point to python 2.2 ( #!/usr/bin/python ->
#!/usr/bin/python2.2 )
that works ok and should get the traceback problem out the way.

[quote]I want to backup the samba share to the debian machine, eventually I want to
implement a full cron scenario where it does a full once a week then
incremementals daily with an auto delete of stuff say three weeks old or so.
[/quote]
thats two rdiff-backup runs, one to backup and 1 to delete increments.

[quote]But for right now i just want to get it to work.

this command from the debian machine
rdiff-backup /samba-saa 192.168.0.253::/samba/Data
yeilds this

root < at > 192.168.0.253's password:
Traceback (most recent call last):
[/quote]
[quote]
This string executed on the redhat machine

rdiff-backup /samba-saa/public 192.168.0.254::/samba-saa/public

yields this
ssh: connect to address 192.168.0.254 port 22: Connection refused
Fatal Error: Truncated header string (problem probably originated remotely)

Couldn't start up the remote connection by executing

ssh -C 192.168.0.254 rdiff-backup --server

Remember that, under the default settings, rdiff-backup must be
installed in the PATH on the remote system. See the man page for more
information on this. This message may also be displayed if the remote
version of rdiff-backup is quite different from the local version (0.12.6).
[/quote]
this is the problem you are having - the remote version is too
different. rdiff-backup --server starting on the remote side probably
dies silently with a similar traceback.

[quote]forgive the differnce in folder names, I was just trying to test the backup
on small folder
hopefully this won't confuse.

[/quote]
perfectly clear.
if you want the latest features from rdiff-backup 0.13.3 is quite stable
for me. 0.13.4 works too, but the latest compare features don't seem to.
you can get a backported 0.13.3 from here:
deb http://debian.jones.dk woody misc
(add that to your /etc/apt/sources.list, apt-get update, apt-get install
rdiff-backup)
getting the 0.13.3 rpm on your redhat box is up to you :)

dave
Sorry, only registered users may post in this forum.

Click here to login