cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl -T

From: kalin m <kalin_at_el.net>
Date: Wed, 09 May 2012 13:45:48 -0400

not sure if anybody saw this (i didn't get it) so reposting here:

ok. so i have build a new curl (different machine) and still get 79 thou
this time i get an extra parenthesis with numbers and signs - (4/-31).

here it is:

# curl -V
curl 7.25.0 (x86_64-unknown-freebsd8.0) libcurl/7.25.0 OpenSSL/0.9.8k
zlib/1.2.3 libssh2/1.4.1
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s
rtsp scp sftp smtp smtps telnet tftp
Features: IPv6 Largefile NTLM NTLM_WB SSL libz

# curl -v -T test.txt.zip -u user:pass sftp://ftp.server.com/dir/
* About to connect() to ftp.server.com port 22 (#0)
* Trying 1.2.3.4...
  % Total % Received % Xferd Average Speed Time Time Time
Current
                                 Dload Upload Total Spent Left
Speed
  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
    0* connected
* Connected to ftp.server.com (1.2.3.4) port 22 (#0)
* SSH MD5 fingerprint: 9b2e5................b558e
* SSH host check: 0, key: AAAA...............VLyOC3zF0=
* SSH authentication methods available: publickey,password
* Using ssh public key file /user/.ssh/id_dsa.pub
* Using ssh private key file /user/.ssh/id_dsa
* SSH public key authentication failed: Unable to open public key file
  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
    0* Initialized password authentication
* Authentication complete
* Upload failed: Operation failed (4/-31)
  0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:--
    0
  0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:--
    0
* Connection #0 to host ftp.server.com left intact
curl: (79) Upload failed: Operation failed (4/-31)
* Closing connection #0
-------------------------------------------------------

at this point i might guess that although the error on the new curl
build also points to 79 - unspecified ssh session issues - it has to be
on the other side. otherwise i can't explain that the fail is the same
even thou the attempts are made from 2 different machines with different
versions of curl and different versions of ssh2 libraries...

any other ideas?

thanks...

On 5/8/12 11:02 PM, kalin m wrote:
>
>
> sorry about the golds gym rockville on the previous message.... it's a
> joke. forgot to take it out.
>
>
> On 5/8/12 11:00 PM, bishop the 3th wrote:
>>
>> ok. so i have build a new curl (different machine) and still get 79 thou
>> this time i get an extra parenthesis with numbers and signs - (4/-31).
>>
>> here it is:
>>
>> # curl -V
>> curl 7.25.0 (x86_64-unknown-freebsd8.0) libcurl/7.25.0 OpenSSL/0.9.8k
>> zlib/1.2.3 libssh2/1.4.1
>> Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s
>> rtsp scp sftp smtp smtps telnet tftp
>> Features: IPv6 Largefile NTLM NTLM_WB SSL libz
>>
>>
>> # curl -v -T test.txt.zip -u user:pass sftp://ftp.server.com/dir/
>> * About to connect() to ftp.server.com port 22 (#0)
>> * Trying 1.2.3.4...
>> % Total % Received % Xferd Average Speed Time Time Time
>> Current
>> Dload Upload Total Spent Left
>> Speed
>> 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
>> 0* connected
>> * Connected to ftp.server.com (1.2.3.4) port 22 (#0)
>> * SSH MD5 fingerprint: 9b2e5................b558e
>> * SSH host check: 0, key: AAAA...............VLyOC3zF0=
>> * SSH authentication methods available: publickey,password
>> * Using ssh public key file /user/.ssh/id_dsa.pub
>> * Using ssh private key file /user/.ssh/id_dsa
>> * SSH public key authentication failed: Unable to open public key file
>> 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
>> 0* Initialized password authentication
>> * Authentication complete
>> * Upload failed: Operation failed (4/-31)
>> 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:--
>> 0
>> 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:--
>> 0
>> * Connection #0 to host ftp.server.com left intact
>> curl: (79) Upload failed: Operation failed (4/-31)
>> * Closing connection #0
>> -------------------------------------------------------
>>
>>
>> at this point i might guess that although the error on the new curl
>> build also points to 79 - unspecified ssh session issues - it has to be
>> on the other side. otherwise i can't explain that the fail is the same
>> even thou the attempts are made from 2 different machines with different
>> versions of curl and different versions of ssh2 libraries...
>>
>> any other ideas?
>>
>>
>> thanks...
>>
>>
>>
>>
>>
>> On 5/2/12 2:52 PM, kalin m wrote:
>>>
>>> On 5/1/12 11:25 PM, bruce wrote:
>>>> can you attempt to download a later version of the underlying libs?
>>>
>>> it's a pretty old machine. it hasn't been touched or restarted for about
>>> 3 - 4 years now. and it has some stuff like php build with curl in it.
>>> it's all manual/src installs. not sure if something would brake. i'll
>>> try first installing all the newer stuff somewhere else and see how
>>> much, if at all, stuff gets affected and if the newer builds solve this
>>> 79 thing.... then might be worth it to rebuild some stuff.
>>>
>>> i'll report if any progress...
>>>
>>>
>>>>
>>>>
>>>> On Tue, May 1, 2012 at 10:12 PM, kalin m <kalin_at_el.net> wrote:
>>>>>
>>>>> On 5/1/12 1:48 PM, Daniel Stenberg wrote:
>>>>>> On Mon, 30 Apr 2012, kalin m wrote:
>>>>>>
>>>>>>> recently i came across a situation where i get this:
>>>>>>>
>>>>>>> # curl -vvvv -T some_file user:pass sftp://ftp.server.com/dir/
>>>>>>
>>>>>> One -v is enough, multiple ones makes no difference...
>>>>>>
>>>>>> But you didn't say which curl version and which libssh2 version it is
>>>>>> using.
>>>>>
>>>>> curl 7.16.3 libcurl/7.16.3 OpenSSL/0.9.8h zlib/1.2.3 libssh2/0.17
>>>>>
>>>>>
>>>>>>
>>>>>>> curl: (79) Could not open remote file for writing: Operation failed
>>>>>>
>>>>>> That's likely a problem with libssh2 or at least it is related to the
>>>>>> SSH protocol layer.
>>>>>
>>>>> probably it is.
>>>>>
>>>>>> Can you retrieve files with curl from that same SFTP server so that the
>>>>>> problem is only related to upload?
>>>>>
>>>>> just tested retrieving. same error 79.
>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> thanks.
>>>>> -------------------------------------------------------------------
>>>>> List admin: http://cool.haxx.se/list/listinfo/curl-users
>>>>> FAQ: http://curl.haxx.se/docs/faq.html
>>>>> Etiquette: http://curl.haxx.se/mail/etiquette.html
>>>>
>>>> -------------------------------------------------------------------
>>>> List admin: http://cool.haxx.se/list/listinfo/curl-users
>>>> FAQ: http://curl.haxx.se/docs/faq.html
>>>> Etiquette: http://curl.haxx.se/mail/etiquette.html
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-users
> FAQ: http://curl.haxx.se/docs/faq.html
> Etiquette: http://curl.haxx.se/mail/etiquette.html
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-05-09