greetings,

i have one instance of sftp client where routinely file transfers don't 
complete.
yet, the command line sftp completes the download. my client setup is paramiko 
1.7.6,
os x leopard (10.5.x), python 2.54; server setup: ubuntu 9.04 x64.

here's the log from a 'failed' transmission:
DEB [20100125-16:47:03.805] thr=1   paramiko.transport: starting thread (client 
mode): 0x7a5d50L
INF [20100125-16:47:03.849] thr=1   paramiko.transport: Connected (version 2.0, 
client OpenSSH_5.1)
DEB [20100125-16:47:03.900] thr=1   paramiko.transport: kex 
algos:['diffie-hellman-group-exchange-sha256', 
'diffie-hellman-group-exchange-sha1', 'diffie-hellman-group14-sha1', 
'diffie-hellman-group1-sha1'] server key:['ssh-rsa', 'ssh-dss'] client 
encrypt:['aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'arcfour128', 
'arcfour256', 'arcfour', 'aes192-cbc', 'aes256-cbc', 
'rijndael-...@lysator.liu.se', 'aes128-ctr', 'aes192-ctr', 'aes256-ctr'] server 
encrypt:['aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'arcfour128', 
'arcfour256', 'arcfour', 'aes192-cbc', 'aes256-cbc', 
'rijndael-...@lysator.liu.se', 'aes128-ctr', 'aes192-ctr', 'aes256-ctr'] client 
mac:['hmac-md5', 'hmac-sha1', 'umac...@openssh.com', 'hmac-ripemd160', 
'hmac-ripemd...@openssh.com', 'hmac-sha1-96', 'hmac-md5-96'] server 
mac:['hmac-md5', 'hmac-sha1', 'umac...@openssh.com', 'hmac-ripemd160', 
'hmac-ripemd...@openssh.com', 'hmac-sha1-96', 'hmac-md5-96'] client 
compress:['none', 'z...@openssh.com'] server compress:['none', 
'z...@openssh.com'] client lang:[''] server lang:[''] kex follows?False
DEB [20100125-16:47:03.900] thr=1   paramiko.transport: Ciphers agreed: 
local=aes128-ctr, remote=aes128-ctr
DEB [20100125-16:47:03.901] thr=1   paramiko.transport: using kex 
diffie-hellman-group1-sha1; server key type ssh-rsa; cipher: local aes128-ctr, 
remote aes128-ctr; mac: local hmac-sha1, remote hmac-sha1; compression: local 
none, remote none
DEB [20100125-16:47:04.063] thr=1   paramiko.transport: Switch to new keys ...
DEB [20100125-16:47:04.108] thr=1   paramiko.transport: userauth is OK
INF [20100125-16:47:04.222] thr=1   paramiko.transport: Authentication 
(password) successful!
DEB [20100125-16:47:04.229] thr=2   paramiko.transport: [chan 1] Max packet in: 
34816 bytes
DEB [20100125-16:47:04.275] thr=1   paramiko.transport: [chan 1] Max packet 
out: 32768 bytes
INF [20100125-16:47:04.275] thr=1   paramiko.transport: Secsh channel 1 opened.
DEB [20100125-16:47:04.339] thr=1   paramiko.transport: [chan 1] Sesch channel 
1 request ok
INF [20100125-16:47:04.390] thr=2   paramiko.transport.sftp: [chan 1] Opened 
sftp connection (server version 3)
DEB [20100125-16:47:04.391] thr=2   paramiko.transport.sftp: [chan 1] 
stat('home')
DEB [20100125-16:47:04.455] thr=2   paramiko.transport.sftp: [chan 1] 
normalize('home')
DEB [20100125-16:47:04.521] thr=2   paramiko.transport.sftp: [chan 1] 
stat('/home/g_4bf9ef06ff0311de856b9dc5b248ddb9.zip.gpg')
DEB [20100125-16:47:04.586] thr=2   paramiko.transport.sftp: [chan 1] 
open('/home/g_4bf9ef06ff0311de856b9dc5b248ddb9.zip.gpg', 'rb')
DEB [20100125-16:47:04.651] thr=2   paramiko.transport.sftp: [chan 1] 
open('/home/g_4bf9ef06ff0311de856b9dc5b248ddb9.zip.gpg', 'rb') -> 00000000
DEB [20100125-16:47:04.651] thr=2   paramiko.transport.sftp: [chan 1] 
stat('/home/g_4bf9ef06ff0311de856b9dc5b248ddb9.zip.gpg')
DEB [20100125-16:50:28.803] thr=2   paramiko.transport.sftp: [chan 1] 
close(00000000)
INF [20100125-16:53:28.804] thr=2   paramiko.transport.sftp: [chan 1] sftp 
session closed.
DEB [20100125-16:53:28.804] thr=2   paramiko.transport: [chan 1] EOF sent (1)
DEB [20100125-16:53:28.869] thr=1   paramiko.transport: EOF in transport thread


it seems to me that the underlying network (some sort of dsl i have no control 
over) is suspect. it doesn't seem to actually drop the
connection but watching the os x command line sftp transfer, there are big 
swings in throughput (from 180kpbs to 30 and probably less).
i tried various settings for sftp.sock.settimeout from default to 10 minutes 
(600.00). no difference. also, this problem seems to persist on just
about any file size.


any thoughts?

thx.


_______________________________________________
paramiko mailing list
paramiko@lag.net
http://www.lag.net/cgi-bin/mailman/listinfo/paramiko

Reply via email to