in reply to Re: Unable to transfer file with scp_put using Net::SSH2
in thread Unable to transfer file with scp_put using Net::SSH2

Hi Rob,

Thanks very much for your feedback. I tried the code given by yourself to understand the error returned better, but still could not make sense of it, perhaps you could shed some light for me. Below are the error returned:

D:\Test>call test_a.pl > samle.log libssh2_scp_send_ex(ss->session, path, mode, size, mtime, atime) -> 0x +1d05914 Net::SSH2::Channel::DESTROY -37 LIBSSH2_ERROR_EAGAIN Unable to send channel data at D:\Test\test_a +.pl line 26. Net::SSH2::SFTP::DESTROY Net::SSH2::SFTP::DESTROY freeing session Net::SSH2::DESTROY object 0x19b6b3c

The perl version : v5.8.8 built for MSWin32-x86-multi-thread.

Net::SSH2 version : 0.28

Installed it via ppm and obtained the ppd file from http://theoryx5.uwinnipeg.ca/ppms/Net-SSH2.ppd.

Please do let me know if you upload the latest version of Net::SSH2, at least i could still give it a try. Thanks again.

Regards,

Sandra

Replies are listed 'Best First'.
Re^3: Unable to transfer file with scp_put using Net::SSH2
by syphilis (Archbishop) on Aug 23, 2010 at 21:33 UTC
    Hi Sandra,
    Sorry - missed your reply. That's the same error as I was getting. This patch fixes the problem for me - and I think it will do the same for you.

    There's already a bug report filed about this. That bug report also specifies a second patch to SSH2.xs which I haven't applied, as I haven't yet struck a need for it - and there seems to be some doubt as to what is the correct fix.

    I'll /msg you (should be later today) when I've uploaded 0.33 ppm packages that include the above patch. Alternatively, you can just alter SSH2.pm in accordance with that patch - and that should work fine.

    Btw, I did find that sftp was quite capable of uploading these files that scp couldn't, though it was much slower.

    Cheers,
    Rob
      Hi Rob,

      Long delay in replying. Thanks very much for the patch, am able to sftp successfully now for the bigger file size.

      Sandra