Topic "script problem - works fine manually"

Author Message
psherreard
[View user's profile]

Joined: 2012-05-22
Posts: 3
Hope someone can help here Very Happy

Im new to all this so its 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
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Can you check the SSH server log?
_________________
Martin Prikryl
psherreard
[View user's profile]

Joined: 2012-05-22
Posts: 3
prikryl wrote:
Can you check the SSH server log?


Thanks for the reply Smile

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
psherreard
[View user's profile]

Joined: 2012-05-22
Posts: 3
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:
prikryl wrote:
Can you check the SSH server log?


Thanks for the reply Smile

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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
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?
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License