Re: [Ssh-sftp-perl-users] scp_get problems
Brought to you by:
dbrobins
From: Radu H. <xr...@ya...> - 2007-10-18 23:13:29
|
=0AI'm in touch with the developer of the module (David Robins) and he said= he'll take a look at it at some point ... I'm trying to assist him with as= much info as I can. =0A=0AGoing back to the problem a=0A=0A$ssh2->debug(1)= ;=0A=0Aseems to indicate that things are going wrong as soon as an 'incompl= ete' block=0Ais read, i.e. 8192 is expected and less than that is actually = read. =0A=0AI have moved on to find a solution to my file transfer problem = since I really needed to move on but the person that collaborates with me s= uspects the problem to be in libssl2. we're using version 0.17 but going ba= ck to 0.14 (rebuilding the lib and the perl module with that version of the= lib) seems to work. the break happens after the transition to libssl2 from= 0.14 to 0.15, so it might be the case that the perl module may need a face= lift to keep up with times...=0A=0AThanks ,=0A=0ARadu=0A=0A=0A----- Origina= l Message ----=0AFrom: Diego Oberlin <d.o...@gm...>=0ATo: Radu Hando= rean <xr...@ya...>=0ASent: Thursday, October 18, 2007 6:21:23 AM=0ASu= bject: Re: [Ssh-sftp-perl-users] scp_get problems=0A=0A=0A-----BEGIN PGP SI= GNED MESSAGE-----=0AHash: SHA1=0A=0ARadu Handorean wrote:=0A> <!-- DIV {mar= gin:0px;} --> Hello,=0A>=0A> The code snippet I have a question about is th= is one: my $ssh2 =3D=0A> Net::SSH2->new(); $ssh2->connect($sourceServer) or= die ("Unable to=0A> connect"); $ssh2->auth_keyboard('user', 'password') or= die ("Unable=0A> to login"); $ssh2->scp_get($sourceFileName); $ssh2->disco= nnect(); I=0A> am using Net::SSH2. The problem is that the scp_get call han= gs=0A> indefinitely. I am trying to download a 15MB file. It seems it gets= =0A> stuck after about 12-13MB. Interesting is that if I repeat the=0A> ex= periment, it seems to stop at the same file size, for a while,=0A> then it = seems to stick to that new value for another while, and so=0A> on. Anyway, = it doesn't make any progress past that point (not even=0A> a crash with or = without an error message).=0A>=0A> I have the similar scp_put call that upl= oads that file and that=0A> upload works like a charm every time. Not a sin= gle problem. On the=0A> flip side, the download call I pasted did not work = even once. I'd=0A> appreciate some help to get past this problem, if anybod= y knows the=0A> way out.=0A>=0A> Thanks, Radu=0A>=0A> ____________________= ______________________________ Do You Yahoo!?=0A> Tired of spam? Yahoo! Mai= l has the best spam protection around=0A> http://mail.yahoo.com=0A>=0A>=0A = ----------------------------------------------------------------------=0A>= =0A>=0A>=0A ---------------------------------------------------------------= ----------=0A> This SF.net email is sponsored by: Splunk Inc. Still greppi= ng=0A> through log files to find problems? Stop. Now Search log events=0A>= and configuration files using AJAX and a browser. Download your=0A> FREE c= opy of Splunk now >> http://get.splunk.com/=0A>=0A>=0A --------------------= --------------------------------------------------=0A>=0A>=0A> ____________= ___________________________________ Ssh-sftp-perl-users=0A> mailing list Ss= h-s...@li...=0A> https://lists.sourceforge.net/l= ists/listinfo/ssh-sftp-perl-users=0A=0AHave you tried to debug? Try using N= et::SSH2 debug() method, to see=0Awhether it throws you any clue about wha= t's happening there.=0AOtherwise try to strace for more detailed informatio= n and send us the=0Aoutput.=0A=0ARegards,=0A=0ADiego Oberlin.=0A=0A=0A-----= BEGIN PGP SIGNATURE-----=0AVersion: GnuPG v1.4.6 (GNU/Linux)=0AComment: Usi= ng GnuPG with Mozilla - http://enigmail.mozdev.org=0A=0AiD8DBQFHF0/D2COt/e1= SGbwRAvL8AJ4mLgKqQOwa8ZhYSSutclo9WmCUVwCdETkE=0ABX8/heF7gzf3kmq026xM4EQ=3D= =0A=3DHOQ0=0A-----END PGP SIGNATURE-----=0A=0A=0A=0A=0A=0A=0A______________= ____________________________________=0ADo You Yahoo!?=0ATired of spam? Yah= oo! Mail has the best spam protection around =0Ahttp://mail.yahoo.com |