Error changing directory to '/Processed'
I have a SFTP script I've been running for a long time and now in the last couple of months, it fails. No changes have been made.
Command Line:
Script:
Error: (there is no directory called
Note: This is just a snippet of the error log that is relevant.
There is no directory called
The WinSCP GUI is working just fine and I start in the correct directory, only the script is not working.
Thanks!
Command Line:
"C:\Program Files (x86)\WinSCP\WinSCP.com" /script=c:\Scripts\IMMTrac\SFTP-dqa-report.txt /log=c:\scripts\immtrac\winscp.log
# Automatically abort script on errors option batch abort # Disable overwrite confirmations that conflict with the previous # Force binary mode transfer option transfer binary synchronize local \\FileServer\depts\ImmunizationErrorReports\dqa-report /dqa-report close exit
Processed
in this session. I do have multiple SFTP WinSCP connections listed)
Using SFTP protocol. . 2016-10-28 10:09:20.613 Doing startup conversation with host. > 2016-10-28 10:09:20.614 Type: SSH_FXP_INIT, Size: 5, Number: -1 < 2016-10-28 10:09:20.664 Type: SSH_FXP_VERSION, Size: 5, Number: -1 . 2016-10-28 10:09:20.664 SFTP version 4 negotiated. . 2016-10-28 10:09:20.664 We will use UTF-8 strings when appropriate . 2016-10-28 10:09:20.664 Changing directory to "/Processed". . 2016-10-28 10:09:20.664 Getting real path for '/Processed' > 2016-10-28 10:09:20.664 Type: SSH_FXP_REALPATH, Size: 19, Number: 16 < 2016-10-28 10:09:20.980 Type: SSH_FXP_NAME, Size: 32, Number: 16 . 2016-10-28 10:09:20.980 Real path is '/Processed' . 2016-10-28 10:09:20.980 Trying to open directory "/Processed". > 2016-10-28 10:09:20.980 Type: SSH_FXP_LSTAT, Size: 23, Number: 263 < 2016-10-28 10:09:21.082 Type: SSH_FXP_STATUS, Size: 56, Number: 263 < 2016-10-28 10:09:21.083 Status code: 2, Message: 263, Server: File not found: /users/DOCWRL/Processed, Language: * 2016-10-28 10:09:21.083 (ECommand) Error changing directory to '/Processed'. * 2016-10-28 10:09:21.083 No such file or directory. * 2016-10-28 10:09:21.083 Error code: 2 * 2016-10-28 10:09:21.083 Error message from server: File not found: * 2016-10-28 10:09:21.083 Request code: 7 . 2016-10-28 10:09:21.084 Getting current directory name. . 2016-10-28 10:09:21.084 Getting real path for '.' > 2016-10-28 10:09:21.084 Type: SSH_FXP_REALPATH, Size: 10, Number: 528 < 2016-10-28 10:09:21.164 Type: SSH_FXP_NAME, Size: 23, Number: 528 . 2016-10-28 10:09:21.165 Real path is '/' . 2016-10-28 10:09:21.165 Startup conversation with host finished. < 2016-10-28 . 2016-10-28 10:09:21.166 Script: Failed . 2016-10-28 10:09:21.166 Script: Exit code: 1 . 2016-10-28 10:09:21.166 Closing connection. . 2016-10-28 10:09:21.166 Sending special code: 12 . 2016-10-28 10:09:21.166 Sent EOF message
There is no directory called
Processed
in the session. I do have other saved sessions that may have a Processed
directory. Any ideas?
The WinSCP GUI is working just fine and I start in the correct directory, only the script is not working.
Thanks!
Last edited by sminar814 on 2016-11-03 22:56; edited 1 time in total