Keep Getting Security Error Traceback and losing connection

View: New views
2 Messages — Rating Filter:   Alert me  

Keep Getting Security Error Traceback and losing connection

by Toscano2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Andrew Ferguson wrote:
> I suggest you look at this entry on the Wiki which came out of that discussion:
> http://wiki.rdiff-backup.org/wiki/index.php/BackupFromWindowsToLinux
>


I add option --no-hard-links without succes. On other it seems like what I do.


Andrew Ferguson wrote:
> and also review the discussion itself:
> http://lists.nongnu.org/archive/html/rdiff-backup-users/2008-08/msg00010.html
>
> particularly this message:
> http://lists.nongnu.org/archive/html/rdiff-backup-users/2008-08/msg00012.html

I'm read this as cerefully as I can, but in this thread questions more than answers.

Please, keep in mind what I'm initiate backup from Linux machine. And do backup of windows (one folder) to Linux.

If it may help, this is my full command and full trace voth full verbosity (-v9):
rdiff-backup -v9 --no-hard-links --exclude=**.ncb --exclude=**/HuSMPP.exe/Debug/* --exclude=**/HuSMPP.exe/Release/* --remote-schema 'nice -n17 ssh -C %s nice -n15 'rdiff-backup --server' --print-statistics 'hubbitus@workcomp::d:\Hubbitus\My_PROGRAMS\HuSMPP.exe' '/mnt/sgtBarracuda/BackUPs/HuSMPP'
Thu Oct  9 19:30:13 2008  Exception 'invalid load key, '
'.' raised of class '<class 'cPickle.UnpicklingError'>':
  File "/usr/lib/python2.5/site-packages/rdiff_backup/Main.py", line 302, in error_check_Main
    try: Main(arglist)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/Main.py", line 319, in Main
    rps = map(SetConnections.cmdpair2rp, cmdpairs)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/SetConnections.py", line 78, in cmdpair2rp
    return rpath.RPath(conn, filename).normalize()
  File "/usr/lib/python2.5/site-packages/rdiff_backup/rpath.py", line 860, in __init__
    else: self.setdata()
  File "/usr/lib/python2.5/site-packages/rdiff_backup/rpath.py", line 884, in setdata
    self.data = self.conn.rpath.make_file_dict(self.path)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/connection.py", line 448, in __call__
    return apply(self.connection.reval, (self.name,) + args)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/connection.py", line 368, in reval
    result = self.get_response(req_num)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/connection.py", line 315, in get_response
    try: req_num, object = self._get()
  File "/usr/lib/python2.5/site-packages/rdiff_backup/connection.py", line 241, in _get
    if format_string == "o": result = cPickle.loads(data)

Thu Oct  9 19:30:11 2008  Using rdiff-backup version 1.2.1
Thu Oct  9 19:30:11 2008  Executing nice -n17 ssh -C hubbitus@workcomp nice -n15 'rdiff-backup --server'
Thu Oct  9 19:30:11 2008  Client sending (0): ConnectionRequest: Globals.get with 1 arguments
Thu Oct  9 19:30:11 2008  Client sending (0): 'version'
Thu Oct  9 19:30:13 2008  Client received (0): '1.2.1'
Thu Oct  9 19:30:13 2008  Registering connection 1
Thu Oct  9 19:30:13 2008  Client sending (0): ConnectionRequest: SetConnections.init_connection_remote with 1 arguments
Thu Oct  9 19:30:13 2008  Client sending (0): 1
Thu Oct  9 19:30:13 2008  Client received (0): None
Thu Oct  9 19:30:13 2008  Client sending (0): ConnectionRequest: log.Log.setverbosity with 1 arguments
Thu Oct  9 19:30:13 2008  Client sending (0): 9
Thu Oct  9 19:30:13 2008  Client received (0): None
Thu Oct  9 19:30:13 2008  Client sending (0): ConnectionRequest: log.Log.setterm_verbosity with 1 arguments
Thu Oct  9 19:30:13 2008  Client sending (0): 9
Thu Oct  9 19:30:13 2008  Client received (0): None
Thu Oct  9 19:30:13 2008  Client sending (0): ConnectionRequest: Globals.set with 2 arguments
Thu Oct  9 19:30:13 2008  Client sending (0): 'preserve_hardlinks'
Thu Oct  9 19:30:13 2008  Client sending (0): 0
Thu Oct  9 19:30:13 2008  Client received (0): None
Thu Oct  9 19:30:13 2008  Client sending (0): ConnectionRequest: Globals.set with 2 arguments
Thu Oct  9 19:30:13 2008  Client sending (0): 'print_statistics'
Thu Oct  9 19:30:13 2008  Client sending (0): 1
Thu Oct  9 19:30:13 2008  Client received (0): None
Thu Oct  9 19:30:13 2008  Client sending (0): ConnectionRequest: rpath.make_file_dict with 1 arguments
Thu Oct  9 19:30:13 2008  Client sending (0): 'd:\\Hubbitus\\My_PROGRAMS\\HuSMPP.exe'
Traceback (most recent call last):
  File "/usr/bin/rdiff-backup", line 23, in <module>
    rdiff_backup.Main.error_check_Main(sys.argv[1:])
  File "/usr/lib/python2.5/site-packages/rdiff_backup/Main.py", line 302, in error_check_Main
    try: Main(arglist)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/Main.py", line 319, in Main
    rps = map(SetConnections.cmdpair2rp, cmdpairs)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/SetConnections.py", line 78, in cmdpair2rp
    return rpath.RPath(conn, filename).normalize()
  File "/usr/lib/python2.5/site-packages/rdiff_backup/rpath.py", line 860, in __init__
    else: self.setdata()
  File "/usr/lib/python2.5/site-packages/rdiff_backup/rpath.py", line 884, in setdata
    self.data = self.conn.rpath.make_file_dict(self.path)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/connection.py", line 448, in __call__
    return apply(self.connection.reval, (self.name,) + args)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/connection.py", line 368, in reval
    result = self.get_response(req_num)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/connection.py", line 315, in get_response
    try: req_num, object = self._get()
  File "/usr/lib/python2.5/site-packages/rdiff_backup/connection.py", line 241, in _get
    if format_string == "o": result = cPickle.loads(data)
cPickle.UnpicklingError: invalid load key, '
'.
Thu Oct 09 19:30:13 2008  Server sending (0): None
Thu Oct 09 19:30:13 2008  Server received (0): ConnectionRequest: log.Log.setterm_verbosity with 1 arguments
Thu Oct 09 19:30:13 2008  Server received (0): 9
Thu Oct 09 19:30:13 2008  Server sending (0): None
Thu Oct 09 19:30:13 2008  Server received (0): ConnectionRequest: Globals.set with 2 arguments
Thu Oct 09 19:30:13 2008  Server received (0): 'preserve_hardlinks'
Thu Oct 09 19:30:13 2008  Server received (0): 0
Thu Oct 09 19:30:13 2008  Server sending (0): None
Thu Oct 09 19:30:13 2008  Server received (0): ConnectionRequest: Globals.set with 2 arguments
Thu Oct 09 19:30:13 2008  Server received (0): 'print_statistics'
Thu Oct 09 19:30:13 2008  Server received (0): 1
Thu Oct 09 19:30:13 2008  Server sending (0): None
Thu Oct 09 19:30:13 2008  Server received (0): ConnectionRequest: rpath.make_file_dict with 1 arguments
Thu Oct 09 19:30:13 2008  Server received (0): 'd:\\Hubbitus\\My_PROGRAMS\\HuSMPP.exe'
Thu Oct 09 19:30:13 2008  Server sending (0): {'uid': 0, 'perms': 511, 'type': 'dir', 'ctime': 1216845920L, 'devloc': 0, 'nlink': 0, 'gid': 0, 'mtime': 1216845922L, 'atime': 1223496000L, 'inode': 0L, 'size': 0L}
Thu Oct 09 19:30:14 2008  Exception 'Truncated header string (problem probably originated remotely)' raised of class '<class 'rdiff_backup.connection.ConnectionReadError'>':
  File "rdiff_backup\Main.pyc", line 302, in error_check_Main
  File "rdiff_backup\Main.pyc", line 322, in Main
  File "rdiff_backup\Main.pyc", line 276, in take_action
  File "rdiff_backup\connection.pyc", line 355, in Server
  File "rdiff_backup\connection.pyc", line 315, in get_response
  File "rdiff_backup\connection.pyc", line 233, in _get

Thu Oct 09 19:30:14 2008  Fatal Error: Lost connection to the remote system

And, Anrew, very thanks for the help!

Pavel.

+----------------------------------------------------------------------
|This was sent by pahan@... via Backup Central.
|Forward SPAM to abuse@....
+----------------------------------------------------------------------




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

Re: Keep Getting Security Error Traceback and losing connection

by Andrew Ferguson-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Oct 9, 2008, at 11:31 AM, Hubbitus wrote:
> Please, keep in mind what I'm initiate backup from Linux machine.  
> And do backup of windows (one folder) to Linux.

Ok, I think I have solved your problem (and Patrick Nagel's as well).  
If so, you won't be required to use Putty as the SSH engine on Windows.

Please try the new testing release at:

http://download.savannah.gnu.org/releases/rdiff-backup/testing/rdiff-backup-1.2.2pre3.exe


The problem is due to Windows writing CRLF instead of LF --  
Apparently, Putty is smart enough to detect that when it is going out  
to a Linux host as a pipe'd command and correct it.


Andrew




_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users@...
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
LightInTheBox - Buy quality products at wholesale price!