Error Code 1
I am new to using WinSCP. I am using Windows Task Scheduler to get files using SFTP from a remote server. The schedule task always ends with error code 0x1. Can someone please help me to understand why this is happening. Below is the log file
. 2008-03-26 23:00:00.441 --------------------------------------------------------------------------
. 2008-03-26 23:00:00.441 WinSCP Version 4.0.5 (Build 354) (OS 5.2.3790 Service Pack 2)
. 2008-03-26 23:00:00.441 Login time: Wednesday, March 26, 2008 11:00:00 PM
. 2008-03-26 23:00:00.457 --------------------------------------------------------------------------
. 2008-03-26 23:00:00.457 Session name: <removed>
. 2008-03-26 23:00:00.457 Host name: <removed> (Port: 22)
. 2008-03-26 23:00:00.457 User name: <removed> (Password: Yes, Key file: No)
. 2008-03-26 23:00:00.457 Tunnel: No
. 2008-03-26 23:00:00.457 Transfer Protocol: SFTP (SCP)
. 2008-03-26 23:00:00.457 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2008-03-26 23:00:00.457 Proxy: none
. 2008-03-26 23:00:00.457 SSH protocol version: 2; Compression: No
. 2008-03-26 23:00:00.457 Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2008-03-26 23:00:00.457 Ciphers: aes,blowfish,3des,WARN,des; Ssh2DES: No
. 2008-03-26 23:00:00.457 SSH Bugs: -,-,-,-,-,-,-,-
. 2008-03-26 23:00:00.457 SFTP Bugs: -,-,-
. 2008-03-26 23:00:00.457 Return code variable: Autodetect; Lookup user groups: Yes
. 2008-03-26 23:00:00.457 Shell: default, EOL: 0
. 2008-03-26 23:00:00.457 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2008-03-26 23:00:00.457 Alias LS: No, Ign LS warn: Yes, Scp1 Comp: No
. 2008-03-26 23:00:00.457 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2008-03-26 23:00:00.457 Cache directory changes: Yes, Permanent: Yes
. 2008-03-26 23:00:00.457 DST mode: 1
. 2008-03-26 23:00:00.457 --------------------------------------------------------------------------
. 2008-03-26 23:00:00.457 Looking up host "<removed>"
. 2008-03-26 23:00:00.504 Connecting to <removed> port 22
. 2008-03-26 23:00:00.566 Server version: SSH-2.0-5.1.0.558 SSH Tectia Server
. 2008-03-26 23:00:00.566 We claim version: SSH-2.0-WinSCP_release_4.0.5
. 2008-03-26 23:00:00.582 Using SSH protocol version 2
. 2008-03-26 23:00:07.082 Using Diffie-Hellman with standard group "group1"
. 2008-03-26 23:00:07.082 Doing Diffie-Hellman key exchange
. 2008-03-26 23:00:07.488 Host key fingerprint is:
. 2008-03-26 23:00:07.488 ssh-rsa 1536 ae:23:2d:a4:46:74:40:32:b4:23:dd:ad:99:9a:09:60
. 2008-03-26 23:00:07.488 Initialised AES-128 client->server encryption
. 2008-03-26 23:00:07.488 Initialised HMAC-SHA1 client->server MAC algorithm
. 2008-03-26 23:00:07.488 Initialised AES-128 server->client encryption
. 2008-03-26 23:00:07.488 Initialised HMAC-SHA1 server->client MAC algorithm
! 2008-03-26 23:00:07.754 Using username "<removed>".
. 2008-03-26 23:00:08.223 Session password prompt (<removed> password: )
. 2008-03-26 23:00:08.223 Using stored password.
. 2008-03-26 23:00:08.223 Sent password
. 2008-03-26 23:00:08.738 Access granted
. 2008-03-26 23:00:08.770 Opened channel for session
. 2008-03-26 23:00:08.817 Started a shell/command
. 2008-03-26 23:00:08.817 --------------------------------------------------------------------------
. 2008-03-26 23:00:08.817 Using SFTP protocol.
. 2008-03-26 23:00:08.832 Doing startup conversation with host.
> 2008-03-26 23:00:08.832 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2008-03-26 23:00:08.863 Type: SSH_FXP_VERSION, Size: 34, Number: -1
. 2008-03-26 23:00:08.863 SFTP version 3 negotiated.
. 2008-03-26 23:00:08.863 Unknown server extension newline@vandyke.com=0x0D0A
. 2008-03-26 23:00:08.863 We believe the server has signed timestamps bug
. 2008-03-26 23:00:08.863 We will use UTF-8 strings for status messages only
. 2008-03-26 23:00:08.863 Getting current directory name.
. 2008-03-26 23:00:08.863 Getting real path for '.'
> 2008-03-26 23:00:08.863 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2008-03-26 23:00:08.910 Type: SSH_FXP_NAME, Size: 31, Number: 16
. 2008-03-26 23:00:08.910 Real path is '/HOME'
. 2008-03-26 23:00:08.910 Startup conversation with host finished.
. 2008-03-26 23:00:08.910 Cached directory change via "/HOME" to "/HOME".
. 2008-03-26 23:00:08.910 Getting current directory name.
. 2008-03-26 23:00:08.942 Listing directory "/HOME".
> 2008-03-26 23:00:08.942 Type: SSH_FXP_OPENDIR, Size: 14, Number: 267
< 2008-03-26 23:00:08.988 Type: SSH_FXP_HANDLE, Size: 17, Number: 267
> 2008-03-26 23:00:08.988 Type: SSH_FXP_READDIR, Size: 17, Number: 524
< 2008-03-26 23:00:09.020 Type: SSH_FXP_NAME, Size: 207, Number: 524
> 2008-03-26 23:00:09.020 Type: SSH_FXP_READDIR, Size: 17, Number: 780
< 2008-03-26 23:00:09.067 Type: SSH_FXP_STATUS, Size: 22, Number: 780
< 2008-03-26 23:00:09.067 Status/error code: 1
> 2008-03-26 23:00:09.067 Type: SSH_FXP_CLOSE, Size: 17, Number: 1028
. 2008-03-26 23:00:09.067 Listing directory "/HOME".
> 2008-03-26 23:00:09.067 Type: SSH_FXP_OPENDIR, Size: 14, Number: 1291
< 2008-03-26 23:00:09.098 Type: SSH_FXP_STATUS, Size: 21, Number: 1028
. 2008-03-26 23:00:09.098 Discarding reserved response
< 2008-03-26 23:00:09.145 Type: SSH_FXP_HANDLE, Size: 17, Number: 1291
> 2008-03-26 23:00:09.145 Type: SSH_FXP_READDIR, Size: 17, Number: 1548
< 2008-03-26 23:00:09.192 Type: SSH_FXP_NAME, Size: 207, Number: 1548
> 2008-03-26 23:00:09.192 Type: SSH_FXP_READDIR, Size: 17, Number: 1804
< 2008-03-26 23:00:09.223 Type: SSH_FXP_STATUS, Size: 22, Number: 1804
< 2008-03-26 23:00:09.223 Status/error code: 1
> 2008-03-26 23:00:09.223 Type: SSH_FXP_CLOSE, Size: 17, Number: 2052
. 2008-03-26 23:00:09.223 Closing connection.