Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
Hello Monks, I have a script which does SFTP from Windows box using Net SFTP Foreign backend ssh2, but i am getting error "Bad remote message received". Getting following error when full debugging mode is ON - Error: read failed: LIBSSH2_ERROR_SOCKET_NON(-1): transport read. I also did turn on full debugging mode and below is the output from full debuging mode. Script works fine for smaller files (I tried < 1 MB), but when i tried with file approx 750 MBs, it is giving me error after 15-45 mins of script run time. Version info is - OS - Windows Server 2003, Perl v5.10.0, Net-SFTP-Foreign - 1.73, Net-SFTP-Foreign-Backend_SSH2 - 0.05. Please let me know if any more information is needed. Thanks in advance.

#2388 1341858308.00000 _get_msg: waiting for message... [32] #2388 1341858308.00000 _do_io: 1070 bytes written to SSH channel #2388 1341858311.00000 _sysreadn: 4 bytes read from SSH channel #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _set_status: _set_status code: 7, str: Connecti +on lost #2388 1341860452.00000 _set_error: _set_err code: 37, str: read failed +: LIBSSH2_ ERROR_SOCKET_NONE (-1): transport read #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _get_msg: waiting for message... [32] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _queue_msg: queueing msg len: 30, code:4, id:67 +1426 ... [ 33] 00 00 00 1e 04 00 0a 3e c2 00 00 00 15 2d 31 30 35 32 33 34 34 39 31 3 +4 2d 32 34 33 31 30 30 34 | .......>.....-1052344914-2431004 34 33 | 43 #2388 1341860452.00000 _get_msg: waiting for message... [33] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _close: closing file handle, return: -, rid: 2d 31 30 35 32 33 34 34 39 31 34 2d 32 34 33 31 30 30 34 34 33 | -1052344914-243100443 #2388 1341860452.00000 DESTROY: Net::SFTP::Foreign::FileHandle=GLOB(0x +22c1524)-> DESTROY called (sftp: Net::SFTP::Foreign=HASH(0x3acdc)) #2388 1341860452.00000 _queue_msg: queueing msg len: 30, code:4, id:67 +1427 ... [ 34] 00 00 00 1e 04 00 0a 3e c3 00 00 00 15 2d 31 30 35 32 33 34 34 39 31 3 +4 2d 32 34 33 31 30 30 34 | .......>.....-1052344914-2431004 34 33 | 43 #2388 1341860452.00000 _get_msg: waiting for message... [34] #2388 1341860452.00000 _conn_lost: _conn_lost #2388 1341860452.00000 _close: closing file handle, return: -, rid: 2d 31 30 35 32 33 34 34 39 31 34 2d 32 34 33 31 30 30 34 34 33 | -1052344914-243100443 Error: read failed: LIBSSH2_ERROR_SOCKET_NON +E (-1): tr ansport read. #2388 1341860453.00000 DESTROY: Net::SFTP::Foreign=HASH(0x3acdc)->DEST +ROY called (current pid: 2388, disconnect_by_pid: ) #2388 1341860453.00000 disconnect: Net::SFTP::Foreign=HASH(0x3acdc)->d +isconnect called (ssh pid: ) #2388 1341860453.00000 _conn_lost: _conn_lost


In reply to Net SFTP Foreign backend ssh2 Put not working for large files LIBSSH2_ERROR_SOCKET_NON(-1) transport read by neoryan

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others contemplating the Monastery: (10)
    As of 2015-07-31 08:09 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









      Results (275 votes), past polls