cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Failure when receiving data from the peer

From: Fabio \ <durieux_br_at_yahoo.com.br>
Date: Fri, 6 Aug 2010 06:58:42 -0700 (PDT)

   Ok, should've done this in the beggining. I just update the libraries and used them in DEBUG mode so I think this might help a little. I'm still working on the problem, but maybe someone knows what is wrong just by looking at this info.
   I'm using ssh2 v1.2.6 and libcurl v7.21.0, which are the last ones available (and sorry if I'm mistaken here)

   And this is the DEBUG info I got:
Starting process... Please wait! * About to connect() to gpfs2tne port 22 (#0)
* Trying 10.212.76.82... * connected
* Connected to gpfs2tne (10.212.76.82) port 22 (#0)
* SFTP 0x81ec450 state change from SSH_STOP to SSH_S_STARTUP
* SFTP 0x81ec450 state change from SSH_S_STARTUP to SSH_HOSTKEY
* SFTP 0x81ec450 state change from SSH_HOSTKEY to SSH_AUTHLIST
* SSH authentication methods available: publickey,gssapi-with-mic,password
* SFTP 0x81ec450 state change from SSH_AUTHLIST to SSH_AUTH_PKEY_INIT
* Using ssh public key file /root/.ssh/id_dsa.pub
* Using ssh private key file /root/.ssh/id_dsa
* SFTP 0x81ec450 state change from SSH_AUTH_PKEY_INIT to SSH_AUTH_PKEY
* SSH public key authentication failed: Unable to open public key file
* SFTP 0x81ec450 state change from SSH_AUTH_PKEY to SSH_AUTH_PASS_INIT
* SFTP 0x81ec450 state change from SSH_AUTH_PASS_INIT to SSH_AUTH_PASS
* Initialized password authentication
* SFTP 0x81ec450 state change from SSH_AUTH_PASS to SSH_AUTH_DONE
* Authentication complete
* SFTP 0x81ec450 state change from SSH_AUTH_DONE to SSH_SFTP_INIT
* SFTP 0x81ec450 state change from SSH_SFTP_INIT to SSH_SFTP_REALPATH
* SSH CONNECT phase done
* SFTP 0x81ec450 state change from SSH_SFTP_REALPATH to SSH_STOP
* DO phase starts
* SFTP 0x81ec450 state change from SSH_STOP to SSH_SFTP_QUOTE_INIT
* SFTP 0x81ec450 state change from SSH_SFTP_QUOTE_INIT to SSH_SFTP_TRANS_INIT
* SFTP 0x81ec450 state change from SSH_SFTP_TRANS_INIT to SSH_SFTP_DOWNLOAD_INIT
* SFTP 0x81ec450 state change from SSH_SFTP_DOWNLOAD_INIT to SSH_SFTP_DOWNLOAD_STAT
* SFTP 0x81ec450 state change from SSH_SFTP_DOWNLOAD_STAT to SSH_STOP
* DO phase is complete
* nread <= 0, server closed connection, bailing
* transfer closed with 20480 bytes remaining to read
* SSH DISCONNECT starts now
* SFTP 0x81ec450 state change from SSH_STOP to SSH_SFTP_SHUTDOWN
* SFTP 0x81ec450 state change from SSH_SFTP_SHUTDOWN to SSH_SESSION_DISCONNECT
* SFTP 0x81ec450 state change from SSH_SESSION_DISCONNECT to SSH_SESSION_FREE
* SFTP 0x81ec450 state change from SSH_SESSION_FREE to SSH_STOP
* SSH DISCONNECT is done
* Closing connection #0

    Thanks in advance.

--
Fabio Durieux Lopes - Salsa
--- On Wed, 8/4/10, Daniel Stenberg <daniel_at_haxx.se> wrote:
From: Daniel Stenberg <daniel_at_haxx.se>
Subject: Re: Failure when receiving data from the peer
To: "libcurl development" <curl-library_at_cool.haxx.se>
Date: Wednesday, August 4, 2010, 6:40 PM
On Wed, 4 Aug 2010, Fabio "Salsa" Durieux Lopes wrote:
> * SSH public key authentication failed: Unable to open public key file
> * Initialized password authentication
> * Authentication complete
> * Closing connection #0
> * Failure when receiving data from the peer
Is this using recent libcurl and libssh2 versions? That "Failure" line comes from a call to curl_easy_strerror() within libcurl, for the error code
CURLE_RECV_ERROR.
More than so is really hard to tell with this little facts.
-- 
 / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-08-06