WinSCP.com 4.4: Script: Failed right after connection causes Return Code 1

Advertisement

jspetit
Joined:
Posts:
1
Location:
Sherbrooke, Qc

WinSCP.com 4.4: Script: Failed right after connection causes Return Code 1

I have this simple test:
winscp.com /console MY_SESSION /command "exit" /ini:options.ini /log:d:\temp\test.txt
1. Open the session
2. Exit

This is a subset of the log:
< 2021-07-22 14:55:42.787 Script: Active session: [1] MY_SESSION
. 2021-07-22 14:55:42.787 Script: Failed
> 2021-07-22 14:55:42.787 Script: exit
. 2021-07-22 14:55:42.787 Session upkeep
. 2021-07-22 14:55:42.787 Looking for network events
. 2021-07-22 14:55:42.787 Timeout waiting for network events
. 2021-07-22 14:55:42.787 Script: Exit code: 1
. 2021-07-22 14:55:42.787 Closing connection.
. 2021-07-22 14:55:42.787 Sending special code: 12
. 2021-07-22 14:55:42.787 Sent EOF message
. 2021-07-22 14:55:42.787 Selecting events 0 for socket 488
We can't figure out what is the problem here.

The same test, without the EXIT command, does the same.

What is puzzling is that running the ini with winscp.exe /console with the same params doesn't trigger the failure nor the return code 1, and after that, winscp.com doesn't fail anymore!

During our tests, we replaced winscp.ini with our ini, opened the session in WinSCP, save, them used it with success.

The only differences were cosmetic, and some extra characters in the password saved in the session.

And it worked.

Our ini worked yesterday, and stopped working today.

What is causing this, and how can I debug this.
Description: The log file
Description: The ini file

Reply with quote

Advertisement

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

Re: WinSCP.com 4.4: Script: Failed right after connection causes Return Code 1

Please post session log files from both scenarios using the latest version of WinSCP.

WinSCP 4.4 is over 8 years old.

Reply with quote

vazan
Joined:
Posts:
1
Location:
Sherbrooke,QC

WinSCP.com 4.4: Script: Failed right after connection causes Return Code 1

Hi i'm his colleague,
We can't use the last version for this task due to the fact it's an old server (windows server 2000) until out client want to upgrade we are unable to use more recent thing.

That why we are stuck with WinSCP 4.4.

Reply with quote

martin
Site Admin
martin avatar

Re: WinSCP.com 4.4: Script: Failed right after connection causes Return Code 1

OK, but you will hardly get any help with WinSCP 4.4.
At least post both logs. Though I'm not sure it will get us anywhere.
Did you try upgrading to the latest version of WinSCP that supports Windows 2000 – WinSCP 5.1.8?

Reply with quote

Advertisement

You can post new topics in this forum