Log File Analysis

Advertisement

mjaddison
Joined:
Posts:
1
Location:
UK

Log File Analysis

Hi Guys and Gals, I'm new to the forum and pretty green with the use of WinSCP although we have been using it for a couple or years so please be gentle.

We have started getting an issue with a script I have that gets a file on a daily basis from a 3rd parties SFTP server and we are not getting the file but apparently we are able to move it to a processed folder on the SFTP server 'well that's what I see when I manually logon and look in the processeed folder'.

I have turned on logging on the command line but cannot find any documentation that helps me decipher it.

Here is the log section that shows from the get statement through to the close after the move.
2021-05-05 23:45:08.704 Script: get -nopermissions -nopreservetime *.csv C:\FTP\acompanyname\Inbound\Orders\
. 2021-05-05 23:45:08.704 Listing directory "/acompanyname/Orders".
> 2021-05-05 23:45:08.704 Type: SSH_FXP_OPENDIR, Size: 32, Number: 267
< 2021-05-05 23:45:08.736 Type: SSH_FXP_HANDLE, Size: 12, Number: 267
> 2021-05-05 23:45:08.736 Type: SSH_FXP_READDIR, Size: 12, Number: 524
< 2021-05-05 23:45:08.751 Type: SSH_FXP_NAME, Size: 190, Number: 524
> 2021-05-05 23:45:08.751 Type: SSH_FXP_READDIR, Size: 12, Number: 780
< 2021-05-05 23:45:08.767 Type: SSH_FXP_STATUS, Size: 28, Number: 780
< 2021-05-05 23:45:08.767 Status code: 1
> 2021-05-05 23:45:08.767 Type: SSH_FXP_CLOSE, Size: 12, Number: 1028
. 2021-05-05 23:45:08.767 .;D;0;2021-05-05T22:00:02.000Z;"" [0];"" [0];rwxr-x---;2
. 2021-05-05 23:45:08.767 ..;D;0;2014-10-13T13:27:58.000Z;"" [0];"" [0];rwxr-x---;0
. 2021-05-05 23:45:08.767 afilename.xml;-;3277;2021-02-24T14:02:07.000Z;"" [0];"" [0];rwxr-x---;0
. 2021-05-05 23:45:08.767 PickedUp;D;0;2021-05-05T22:00:02.000Z;"" [0];"" [0];rwxr-x---;0
> 2021-05-05 23:45:08.767 Script: mv /acompanyname/Orders/*.csv /acompanyname/Orders/PickedUp/
. 2021-05-05 23:45:08.767 Listing directory "/acompanyname/Orders".
> 2021-05-05 23:45:08.767 Type: SSH_FXP_OPENDIR, Size: 32, Number: 1291
< 2021-05-05 23:45:08.782 Type: SSH_FXP_STATUS, Size: 17, Number: 1028
. 2021-05-05 23:45:08.782 Discarding reserved response
< 2021-05-05 23:45:08.798 Type: SSH_FXP_HANDLE, Size: 12, Number: 1291
> 2021-05-05 23:45:08.798 Type: SSH_FXP_READDIR, Size: 12, Number: 1548
< 2021-05-05 23:45:08.814 Type: SSH_FXP_NAME, Size: 190, Number: 1548
> 2021-05-05 23:45:08.814 Type: SSH_FXP_READDIR, Size: 12, Number: 1804
< 2021-05-05 23:45:08.829 Type: SSH_FXP_STATUS, Size: 28, Number: 1804
< 2021-05-05 23:45:08.829 Status code: 1
> 2021-05-05 23:45:08.829 Type: SSH_FXP_CLOSE, Size: 12, Number: 2052
I suspect that status code 1 is an error condition of some sort being that status code 0 in most applications is a success no errors.

If anyone can help it would be much appreciated.

Thanks

Matt

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
36,052
Location:
Prague, Czechia

Re: Log File Analysis

There's no problem in the log. Status code 1 is not an error:
https://winscp.net/eng/docs/sftp_codes#list

What does it mean "we are not getting the file"? The file was clearly downloaded correctly.
What do you get if you do lls C:\FTP\acompanyname\Inbound\Orders right after the get?

Reply with quote

Advertisement

You can post new topics in this forum