script problem - works fine manually

Advertisement

psherreard
Joined:
Posts:
3

script problem - works fine manually

Hope someone can help here :D

I'm new to all this so it's a steep learning curve at the moment.

winscp has been working fine for 18 months, when suddenly (with no changes) its all stopped and doesn't run the script properly and returns an error.

I'm using the script to automatically connect to a remote site, transfer a file and logoff.

Now its stopped and no changes have been made.

The log returns the following error:
. 2012-05-22 08:56:31.817 Using SFTP protocol.
. 2012-05-22 08:56:31.817 Doing startup conversation with host.
> 2012-05-22 08:56:31.833 Type: SSH_FXP_INIT, Size: 5, Number: -1
. 2012-05-22 08:56:46.833 Waiting for data timed out, asking user what to do.
. 2012-05-22 08:56:46.833 Asking user:
. 2012-05-22 08:56:46.833 Host is not communicating for 15 seconds.
. 2012-05-22 08:56:46.833 
. 2012-05-22 08:56:46.833 Wait for another 15 seconds? ()
. 2012-05-22 08:56:46.833 Attempt to close connection due to fatal exception:
* 2012-05-22 08:56:46.833 Terminated by user.
. 2012-05-22 08:56:46.833 Closing connection.
. 2012-05-22 08:56:46.833 Sending special code: 12
. 2012-05-22 08:56:46.833 Sent EOF message
I can do all the steps manually and so I know the other end is ok and can receive the files etc.

Does anyone know how to fix this or any directions please?

Thanks

Reply with quote

Advertisement

psherreard
Joined:
Posts:
3

Re: script problem - works fine manually

martin wrote:

Can you check the SSH server log?

Thanks for the reply :)

I'm assuming you mean the remote end?

I've asked for this - they are a financial institution so they may not let me have it.

But we'll see.

Thanks again

Reply with quote

psherreard
Joined:
Posts:
3

Re: script problem - works fine manually

Well, that took ages to get the logs from the financial institution.

not much but the bet they provided is:

692: 08:35:02:: User Logon: H****-C6E46E\Herts SFTP Server PID 692
692: 08:35:17:: User Logoff: H****-C6E46E\Herts
5964: 08:37:08:: User Logon: H****-C6E46E\Herts SFTP Server PID 5964
5964: 08:37:23:: RealPath /
5964: 08:37:23:: OpenDir / status=0
5964: 08:37:23:: ReadDir /
5964: 08:37:23:: ReadDir /
5964: 08:41:10:: User Logoff: H****-C6E46E\Herts




psherreard wrote:

martin wrote:

Can you check the SSH server log?

Thanks for the reply :)

I'm assuming you mean the remote end?

I've asked for this - they are a financial institution so they may not let me have it.

But we'll see.

Thanks again

Reply with quote

martin
Site Admin
martin avatar

Re: script problem - works fine manually

Thanks. Though that does not seem to be the same session. In WinSCP log, it didn't even initiates the SFTP protocol. While in the server log, there's some reading of the directory. Or maybe does the timeout happen in different stages of the connection each time?

Reply with quote

Advertisement

You can post new topics in this forum