Topic "Status Code: 1 received when successfully getting file"

Author Message
JimGriffith
[View user's profile]

Joined: 2009-02-19
Posts: 21
When I get a file from an external FTP site, it returns a Status Code: 1 even though it was a successful transfer. I've tried it with both the exe and com applications. When I put a file onto a server, I receive the Status Code: 0, but not when retrieving a file.


. 2010-08-20 10:21:37.927 --------------------------------------------------------------------------
. 2010-08-20 10:21:37.927 WinSCP Version 4.2.8 (Build 818) (OS 5.1.2600 Service Pack 2)
. 2010-08-20 10:21:37.927 Login time: Friday, August 20, 2010 10:21:37 AM
. 2010-08-20 10:21:37.927 --------------------------------------------------------------------------
. 2010-08-20 10:21:37.927 Session name: user@site.address.com
. 2010-08-20 10:21:37.927 Host name: site.address.com (Port: 22)
. 2010-08-20 10:21:37.927 User name: user (Password: Yes, Key file: No)
. 2010-08-20 10:21:37.927 Tunnel: No
. 2010-08-20 10:21:37.927 Transfer Protocol: SFTP
. 2010-08-20 10:21:37.927 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2010-08-20 10:21:37.927 Proxy: none
. 2010-08-20 10:21:37.927 SSH protocol version: 2; Compression: No
. 2010-08-20 10:21:37.927 Bypass authentication: No
. 2010-08-20 10:21:37.927 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2010-08-20 10:21:37.927 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2010-08-20 10:21:37.927 SSH Bugs: -,-,-,-,-,-,-,-,-
. 2010-08-20 10:21:37.927 SFTP Bugs: -,-
. 2010-08-20 10:21:37.927 Return code variable: Autodetect; Lookup user groups: Yes
. 2010-08-20 10:21:37.927 Shell: default
. 2010-08-20 10:21:37.927 EOL: 0, UTF: 2
. 2010-08-20 10:21:37.927 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2010-08-20 10:21:37.927 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2010-08-20 10:21:37.927 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2010-08-20 10:21:37.927 Cache directory changes: Yes, Permanent: Yes
. 2010-08-20 10:21:37.927 DST mode: 1
. 2010-08-20 10:21:37.927 --------------------------------------------------------------------------
. 2010-08-20 10:21:37.927 Looking up host "site.address.com"
. 2010-08-20 10:21:38.302 Connecting to IP.ADD.RES.S port 22
. 2010-08-20 10:21:38.880 Server version: SSH-2.0-WingFTPserver
. 2010-08-20 10:21:38.880 We believe remote version has SSH-2 ignore bug
. 2010-08-20 10:21:38.880 Using SSH protocol version 2
. 2010-08-20 10:21:38.880 We claim version: SSH-2.0-WinSCP_release_4.2.8
. 2010-08-20 10:21:39.161 Doing Diffie-Hellman group exchange
. 2010-08-20 10:21:39.770 Doing Diffie-Hellman key exchange with hash SHA-1
. 2010-08-20 10:21:39.942 Host key fingerprint is:
. 2010-08-20 10:21:39.942 ssh-rsa 1024 fc:92:54:e6:06:04:1a:97:8c:8c:cb:a7:72:e0:86:52
. 2010-08-20 10:21:39.942 Initialised Blowfish-128 CBC client->server encryption
. 2010-08-20 10:21:39.942 Initialised HMAC-SHA1 client->server MAC algorithm
. 2010-08-20 10:21:39.942 Initialised Blowfish-128 CBC server->client encryption
. 2010-08-20 10:21:39.942 Initialised HMAC-SHA1 server->client MAC algorithm
! 2010-08-20 10:21:40.583 Using username "user".
. 2010-08-20 10:21:40.833 Prompt (6, SSH password, , &Password: )
. 2010-08-20 10:21:40.833 Using stored password.
. 2010-08-20 10:21:40.833 Sent password
. 2010-08-20 10:21:41.630 Access granted
. 2010-08-20 10:21:41.848 Opened channel for session
. 2010-08-20 10:21:42.551 Started a shell/command
. 2010-08-20 10:21:42.551 --------------------------------------------------------------------------
. 2010-08-20 10:21:42.551 Using SFTP protocol.
. 2010-08-20 10:21:42.551 Doing startup conversation with host.
> 2010-08-20 10:21:42.551 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2010-08-20 10:21:42.723 Type: SSH_FXP_VERSION, Size: 5, Number: -1
. 2010-08-20 10:21:42.723 SFTP version 3 negotiated.
. 2010-08-20 10:21:42.723 We believe the server has signed timestamps bug
. 2010-08-20 10:21:42.723 We will use UTF-8 strings for status messages only
. 2010-08-20 10:21:42.723 Getting current directory name.
. 2010-08-20 10:21:42.723 Getting real path for '.'
> 2010-08-20 10:21:42.723 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2010-08-20 10:21:42.864 Type: SSH_FXP_NAME, Size: 23, Number: 16
. 2010-08-20 10:21:42.864 Real path is '/'
. 2010-08-20 10:21:42.864 Startup conversation with host finished.
< 2010-08-20 10:21:42.864 Script: Active session: [1] user@site.address.com
> 2010-08-20 10:21:42.864 Script: option confirm off
< 2010-08-20 10:21:42.864 Script: confirm off
> 2010-08-20 10:21:42.864 Script: option transfer binary
< 2010-08-20 10:21:42.864 Script: transfer binary
> 2010-08-20 10:21:42.864 Script: get testing.txt c:\test\testing.txt
. 2010-08-20 10:21:42.864 Listing file "testing.txt".
> 2010-08-20 10:21:42.864 Type: SSH_FXP_LSTAT, Size: 21, Number: 263
< 2010-08-20 10:21:43.036 Type: SSH_FXP_ATTRS, Size: 37, Number: 263
. 2010-08-20 10:21:43.036 File: "/testing.txt"
. 2010-08-20 10:21:43.036 Copying "/testing.txt" to local directory started.
. 2010-08-20 10:21:43.036 Binary transfer mode selected.
. 2010-08-20 10:21:43.036 Opening remote file.
> 2010-08-20 10:21:43.036 Type: SSH_FXP_OPEN, Size: 29, Number: 515
< 2010-08-20 10:21:43.208 Type: SSH_FXP_HANDLE, Size: 23, Number: 515
> 2010-08-20 10:21:43.208 Type: SSH_FXP_FSTAT, Size: 23, Number: 776
> 2010-08-20 10:21:43.208 Type: SSH_FXP_READ, Size: 35, Number: 1029
. 2010-08-20 10:21:43.395 Storing reserved response
< 2010-08-20 10:21:43.879 Status code: 1
. 2010-08-20 10:21:43.879 4 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets.
> 2010-08-20 10:21:43.879 Type: SSH_FXP_CLOSE, Size: 23, Number: 1540
> 2010-08-20 10:21:43.879 Script: exit
. 2010-08-20 10:21:43.879 Closing connection.
. 2010-08-20 10:21:43.879 Sending special code: 12
. 2010-08-20 10:21:43.879 Sent EOF message
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Can you try 4.2.7?
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License