Re: [rdiff-backup-users] 1.1.2: error with -v 9

2005-11-12 Thread Blair Zajac

dean gaudet wrote:

On Sun, 6 Nov 2005, Blair Zajac wrote:


  File /sw/lib/python2.4/site-packages/rdiff_backup/log.py, line 135, in
log_to_term
termfp.write(self.format(message, self.term_verbosity))
IOError: [Errno 35] Resource temporarily unavailable


you know there's no reason i can think of we would get EAGAIN from 
sys.stdout.write ... unless we've set it to non-blocking somewhere?


do you have strace or ktrace or something?  i don't know what OSX has in 
this area... try [sk]tracing a short run with -v9 and put it somewhere i 
can peer at it... we're looking for fcntl(1, F_SETFL, ...)...


-dean


Dean,

The only thing I could think of is that there's a formatting error with the 
logging on either end of the ssh connection and one end closes their end, 
causing the other to get something like this error.


In any case, I just tried running the command again right now to use ktrace on 
and can't reproduce it, so I guess we'll close this issue, unless I run into 
it again, and then I'll ktrace it on the spot.


Regards,
Blair

--
Blair Zajac, Ph.D.
[EMAIL PROTECTED]
Subversion and Orca training and consulting
http://www.orcaware.com/svn/


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


[rdiff-backup-users] 1.1.2: error with -v 9

2005-11-06 Thread Blair Zajac

Hello,

If I try to run

$ rdiff-backup -v 9 -b dir linuxhost::dir

from an OS X box to a Linux box, then I get this kind of error.  I don't get 
this error if I use -v 8 or lower.


Regards,
Blair

Index: ()
Data: {'size': 4096L, 'uid': 1, 'perms': 448, 'inode': 3089345L, 'devloc': 
2051L, 'nlink': 2, 'mtime': 1131312005, 'gid': 1, 'atime': 1131312005, 
'type': 'dir', 'ctime': 1131312005}

Sun Nov  6 13:19:56 2005  Client received (0): None
Sun Nov  6 13:19:56 2005  Client sending (0): ConnectionRequest: 
user_group.init_user_mapping with 2 arguments

Sun Nov  6 13:19:56 2005  Client sending (0): None
Sun Nov  6 13:19:56 2005  Client sending (0): None
Sun Nov  6 13:19:56 2005  Client received (0): None
Sun Nov  6 13:19:56 2005  Client sending (0): ConnectionRequest: 
user_group.init_group_mapping with 2 arguments

Sun Nov  6 13:19:56 2005  Client sending (0): None
Sun Nov  6 13:19:56 2005  Client sending (0): None
Sun Nov  6 13:19:57 2005  Client received (0): None
Sun Nov  6 13:19:57 2005  Client sending (0): ConnectionRequest: 
C.make_file_dict with 1 arguments

Sun Nov  6 13:19:57 2005  Client sending (0): 
'01.b/rdiff-backup-data/backup.log'
Sun Nov  6 13:19:57 2005  Client received (0): {'type': None}
Sun Nov  6 13:19:57 2005  Client sending (0): ConnectionRequest: 
log.Log.open_logfile_local with 1 arguments
Sun Nov  6 13:19:57 2005  Client sending (0): QuotedPath: 
01.b/rdiff-backup-data/backup.log

Index: ('backup.log',)
Data: {'type': None}
Sun Nov  6 13:19:57 2005  Client received (0): None
Sun Nov  6 13:19:57 2005  Client sending (0): ConnectionRequest: 
log.Log.open_logfile_allconn with 1 arguments

Sun Nov  6 13:19:57 2005  Client sending (0): PipeConnection 1
Sun Nov  6 13:19:57 2005  Client received (0): None
Sun Nov  6 13:19:57 2005  Client sending (0): ConnectionRequest: os.listdir with 
1 arguments

Sun Nov  6 13:19:57 2005  Client sending (0): '01.b/rdiff-backup-data'
Sun Nov  6 13:19:57 2005  Client received (0): ['chars_to_quote', 'backup.log']
Sun Nov  6 13:19:57 2005  Client sendindirname, basename = 
inc_rpath.dirsplit()
  File /sw/lib/python2.4/site-packages/rdiff_backup/rpath.py, line 942, in 
dirsplit

normed = self.normalize()
  File /sw/lib/python2.4/site-packages/rdiff_backup/rpath.py, line 928, in 
normalize

return self.newpath(newpath)
  File /sw/lib/python2.4/site-packages/rdiff_backup/rpath.py, line 957, in 
newpath

return self.__class__(self.conn, newpath, index)
  File /sw/lib/python2.4/site-packages/rdiff_backup/FilenameMapping.py, line 
118, in __init__

rpath.RPath.__init__(self, connection, base, quoted_index, data)
  File /sw/lib/python2.4/site-packages/rdiff_backup/rpath.py, line 703, in 
__init__

else: self.setdata()
  File /sw/lib/python2.4/site-packages/rdiff_backup/rpath.py, line 727, in 
setdata

self.data = self.conn.C.make_file_dict(self.path)
  File /sw/lib/python2.4/site-packages/rdiff_backup/connection.py, line 444, 
in __call__

return apply(self.connection.reval, (self.name,) + args)
  File /sw/lib/python2.4/site-packages/rdiff_backup/connection.py, line 362, 
in reval

self._put(ConnectionRequest(function_string, len(args)), req_num)
  File /sw/lib/python2.4/site-packages/rdiff_backup/connection.py, line 128, 
in _put

log.Log.conn(sending, obj, req_num)
  File /sw/lib/python2.4/site-packages/rdiff_backup/log.py, line 152, in conn
(conn_str, direction, req_num, result_repr), 9)
  File /sw/lib/python2.4/site-packages/rdiff_backup/log.py, line 135, in 
log_to_term

termfp.write(self.format(message, self.term_verbosity))
IOError: [Errno 35] Resource temporarily unavailable
Traceback (most recent call last):
  File /usr/bin/X11/rdiff-backup, line 23, in ?
rdiff_backup.Main.Main(sys.argv[1:])
  File /usr/lib/python2.4/site-packages/rdiff_backup/Main.py, line 303, in 
Main
take_action(rps)
  File /usr/lib/python2.4/site-packages/rdiff_backup/Main.py, line 270, in 
take_action

connection.PipeConnection(sys.stdin, sys.stdout).Server()
  File /usr/lib/python2.4/site-packages/rdiff_backup/connection.py, line 351, 
in Server

self.get_response(-1)
  File /usr/lib/python2.4/site-packages/rdiff_backup/connection.py, line 313, 
in get_response

try: req_num, object = self._get()
  File /usr/lib/python2.4/site-packages/rdiff_backup/connection.py, line 229, 
in _get

raise ConnectionReadError(Truncated header string (problem 
rdiff_backup.connection.ConnectionReadError: Truncated header string (problem 
probably originated remotely)



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


Re: [rdiff-backup-users] 1.1.2: error with -v 9

2005-11-06 Thread dean gaudet
On Sun, 6 Nov 2005, Blair Zajac wrote:

   File /sw/lib/python2.4/site-packages/rdiff_backup/log.py, line 135, in
 log_to_term
 termfp.write(self.format(message, self.term_verbosity))
 IOError: [Errno 35] Resource temporarily unavailable

you know there's no reason i can think of we would get EAGAIN from 
sys.stdout.write ... unless we've set it to non-blocking somewhere?

do you have strace or ktrace or something?  i don't know what OSX has in 
this area... try [sk]tracing a short run with -v9 and put it somewhere i 
can peer at it... we're looking for fcntl(1, F_SETFL, ...)...

-dean


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