cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: SFTP "File already completely downloaded" Problem

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 12 Dec 2011 16:28:15 -0800

On Mon, Dec 12, 2011 at 03:24:07PM -0500, Dan Hayes wrote:
> I am having the same problem as a few others who posted about receiving a "File
> already completely downloaded" message when attempting to download a file via
> SFTP.  My setup is as follows:
>
> OS: sunOS 5.10
>
> $ curl --version
> curl 7.21.6 (sparc-sun-solaris2.10) libcurl/7.21.6 OpenSSL/0.9.8r zlib/1.2.3
> libssh2/1.3.0
> Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3
> pop3s rtsp scp sftp smtp smtps telnet tftp
> Features: IPv6 Largefile NTLM SSL libz
>
> I tracked down the code in lib/ssh.c where it is emitting this message and
> confirmed the file size it is receiving from libssh2_sftp_stat() is zero.
>
> Any insight would be greatly appreciated.

What is the remote server in this case? Can you check whether another ssh
client program/library receives the same 0 file size?

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-12-13