Getting "Host not communicating error" with BizTalk . WinSCP not closing the connection

Advertisement

san2312
Guest

Getting "Host not communicating error" with BizTalk . WinSCP not closing the connection

We are using SFTP adapter with BizTalk Server (2020 CU3) (which intern uses WinSCP)
It is using WinSCP.exe and WinSCPnet.dll version is 5.19.5.0
With one of the SFTP serve , we are frequently seeing issue where WinSCP logs "Host not communicating error" and BizTalk gives error "System.TimeoutException: Timeout waiting for WinSCP to respond"

Below is the WinSCP log. We keep getting same log as below until we restart the BizTalk server after which it starts a new connection and is able to transfer files.
>**Host is not communicating for 15 seconds.
>Wait for another 15 seconds?** ()
 >Script: Host is not communicating for more than 15 seconds.
>Still waiting...
>Note: If the problem repeats, try turning off 'Optimize connection buffer size'.
> Warning: Aborting this operation will close connection!
>Data has arrived, closing query to user.
> Answer: OK
>Network error: Software caused connection abort
>Connection was lost, asking what to do.
> Asking user:
>Network error: Software caused connection abort ()
>Script: Network error: Software caused connection abort
>Answer: Retry
>Script: Searching for host...
>Looking up host “X.X.X.X” for SSH connection
>Connecting to “X.X.X.X” port 22
>Connecting to host...
Has anyone come across this issue? Specifically the below log. Where is WinSCP getting the answer to retry? Can we stop this using "ini" file so WinSCP does not try re-connecting
>Answer: Retry

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,453
Location:
Prague, Czechia

Re: Getting "Host not communicating error" with BizTalk . WinSCP not closing the connection

Did you try turning off the buffer optimization?

Reply with quote

san2312
Guest

Re: Getting "Host not communicating error" with BizTalk . WinSCP not closing the connection

Should I put SendBuf=0 in the ini files? Currently the INI file has only below entry
[Configuration]
 
[Configuration\Interface\Updates]
DotNetVersion=5.19.5

Reply with quote

san2312
Guest

Re: Getting "Host not communicating error" with BizTalk . WinSCP not closing the connection

Thanks Martin! but unfortunately BizTalk does not provide anything where we can set this up, apart from the ini file

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: Getting "Host not communicating error" with BizTalk . WinSCP not closing the connection

How do you specify your session settings in BizTalk?

Reply with quote

san2312
Guest

Re: Getting "Host not communicating error" with BizTalk . WinSCP not closing the connection

That is through adapter/port settings. Microsoft has not exposed the buffer setting there.
I noticed that /consoleinstance parameter value below is different when it works. Do you know how we can change the /consoleinstance parameter value.
winscp.exe   /console /consoleinstance

Reply with quote

martin
Site Admin
martin avatar

Re: Getting "Host not communicating error" with BizTalk . WinSCP not closing the connection

The /consoleinstance is random. It's hardly relevant to your problem.

Reply with quote

Advertisement

You can post new topics in this forum