cURL / Mailing Lists / curl-users / Single Mail

curl-users

SFTP fail to retrieve large file

From: jt <jttmpmail_at_yahoo.com>
Date: Sun, 20 Jul 2008 07:37:59 -0700 (PDT)

Hello,

I need some help in debugging this issue that I have. I am trying to retrieve a large file (2MB) from a vendor's server using SFTP with curl but it fails. I am able to pull a small file (247B). So, I know that I am specifying the correct information to log onto the server. I am not sure if it is a problem with curl or one of the other libraries.

I hope that I have included all of the necessary information.

Here is the command (removed id, password, and host info):
curl --trace /tmp/s -u id:passwd sftp://x.x.x.x/Usr/Out/t.txt --output t

Version:
curl 7.18.2 (sparc-sun-solaris2.10) libcurl/7.18.2 OpenSSL/0.9.8g zlib/1.2.3 libssh2/0.18
Protocols: tftp ftp telnet dict ldap http file https ftps scp sftp
Features: IPv6 Largefile NTLM SSL libz

Output from execution:
Failed
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
  0 2111k 0 0 0 0 0 0 --:--:-- 0:01:01 --:--:-- 0
curl: (56) Failure when receiving data from the peer

Success
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 847 100 847 0 0 489 0 0:00:01 0:00:01 --:--:-- 489

Trace output:
Failed
== Info: About to connect() to 209.235.31.52 port 22 (#0)
== Info: Trying 209.235.31.52... == Info: connected
== Info: Connected to 209.235.31.52 (209.235.31.52) port 22 (#0)
== Info: SSH authentication methods available: password,publickey
== Info: Using ssh public key file /export/home/eriapp/.ssh/id_dsa.pub
== Info: Using ssh private key file /export/home/eriapp/.ssh/id_dsa
== Info: SSH public key authentication failed: Username/PublicKey combination invalid
== Info: Initialized password authentication
== Info: Authentication complete
== Info: Failed to close libssh2 file
== Info: Closing connection #0
== Info: Failure when receiving data from the peer

Success
== Info: About to connect() to 209.235.31.52 port 22 (#0)
== Info: Trying 209.235.31.52... == Info: connected
== Info: Connected to 209.235.31.52 (209.235.31.52) port 22 (#0)
== Info: SSH authentication methods available: password,publickey
== Info: Using ssh public key file /export/home/eriapp/.ssh/id_dsa.pub
== Info: Using ssh private key file /export/home/eriapp/.ssh/id_dsa
== Info: SSH public key authentication failed: Username/PublicKey combination invalid
== Info: Initialized password authentication
== Info: Authentication complete
<= Recv data, 847 bytes (0x34f)
0000: 31 34 2c 31 34 32 0d 0d 0a 31 39 38 2c 31 33 33 14,142...198,133
0010: 0d 0d 0a 37 31 38 31 2c 38 33 0d 0d 0a 32 34 38 ...7181,83...248
.............
== Info: Connection #0 to host 209.235.31.52 left intact
== Info: Closing connection #0

make test output:
********* System characteristics ********
* curl 7.18.2 (sparc-sun-solaris2.10)
* libcurl/7.18.2 OpenSSL/0.9.8g zlib/1.2.3 libssh2/0.18
* Features: IPv6 Largefile NTLM SSL libz
* Host: cl1eriadm01
* System: SunOS cl1eriadm01 5.10 Generic_127127-11 sun4u sparc SUNW,Sun-Fire-V240
* Server SSL: OFF
* libcurl SSL: ON
* libcurl debug: OFF
* valgrind: OFF
* HTTP IPv6 ON
* FTP IPv6 ON
* HTTP port: 8990
* FTP port: 8992
* FTP port 2: 8995
* HTTP IPv6 port: 8994
* FTP IPv6 port: 8996
* TFTP port: 8997
* SCP/SFTP port: 8999
* SOCKS port: 9000
* SSL library: OpenSSL
* Libtool lib: OFF
...........
test 2003...OK (444 out of 445, remaining: 00:00)
TESTDONE: 375 tests out of 375 reported OK: 100%
TESTDONE: 445 tests were considered during 258 seconds.
TESTINFO: 70 tests were skipped due to these restraints:
TESTINFO: "rlimit problem: stdio fopen() fails with lots of fds open()" 2 times (518, 537)
TESTINFO: "no stunnel" 18 times (300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 400, 401, 403, 404, 406, 407, 408, 409)
TESTINFO: "failed starting HTTP-IPv6 server" 4 times (240, 241, 242, 263)
TESTINFO: "failed starting SSH server" 35 times (600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 700, 701, 702, 703, 706, 707, 2004)
TESTINFO: "failed starting FTP-IPv6 server" 4 times (252, 253, 254, 255)
TESTINFO: "curl lacks idn support" 1 times (165)
TESTINFO: "curl lacks netrc_debug support" 6 times (130, 131, 132, 133, 134, 257)

thanks,
-john

      

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2008-07-20