cancel
Showing results for 
Search instead for 
Did you mean: 

SFTP Connectivity Issue in PO 7.4

Former Member

Hi Experts,

We are currently working on PO 7.4 environment. To meet the business need we have developed  scenarios like IDOC to File(SFTP) and vice versa.

The scenarios were working fine end to end during the initial testing. But later, some of the SFTP sender and receiver channels went into the below error

’’"""javax.resource.ResourceException: com.jcraft.jsch.JSchException: Session.connect: java.net.SocketException: Connection reset""""

Not only this the sender SFTP channel which goes to the above error starts polling fine after some time and the channels which were polling fine previously come to the above error.

For the receiver SFTP channel we have to manually resend the messages in error from the adapter engine which works only on a few occasions.

To fix this capricious behaviour of the SFTP connectivity we tried using the parameter connection.mode.permanent = true in the advance mode and has set some Timeout. But still it did not resolve any thing and we keep on seeing the above error.

Request your expert advise on the above issue.

Regards

Vicky Mor

Accepted Solutions (0)

Answers (7)

Answers (7)

pvishnuvardan_reddy
Active Contributor
0 Kudos

Hi Vicky,

Does the issue occurring for all the sftp channels or only some. If the issue occurring for only some channels, then can you pls make sure that everything is okay on the third party server end during that time frame.

Check the below link and see if it helps you.

Troubleshooting Information for Secure File Transfer Protocol Adapter - Technology Troubleshooting G...

Former Member
0 Kudos

Hi Vicky,

The SSH server is closing the connection on you. This could be due to a number of reasons but you should do some testing using another client like WinSCP. If there are no issues there then check if there are any reported issues with the version of the SSH server. Failing that you may need to do a network trace to see if at the transport layer there is some handshaking issue.

Have a read of this post for more info:

http://stackoverflow.com/questions/25648147/sftp-error-com-jcraft-jsch-jschexception-invalid-servers...

Nick

former_member612483
Discoverer
0 Kudos

Hi,

I am also facing same issue. Could you please share how did you fixed this issue.

Thanks

Ranjani

Former Member
0 Kudos

Hello Vicky,

In the SFTP channel, kindly check how often the user session gets expired. I mean, it might be possible that the user session is getting expired very often.

So please get in touch with BASIS team and check the above with respect to the SFTP server.

Kind Regards,

Souvik

apu_das2
Active Contributor
0 Kudos

Hi Vicky,

Can you please check is there any authentication problem or not... The user is locked or not.

Additionally, Please check the public private key is expired or not.

Thanks,

Apu

iaki_vila
Active Contributor
0 Kudos

Hi Vicky,

What is your PI SFTP SP version?, there was some locking problem on sender SFTP solved in the last patches of the SP1 version.


only able to connect when the polling interval is over? Can it be a traffic issue?

It can be a configuration on the SFTP server, is possible to get any trace from there?

Regards.

Former Member
0 Kudos

Hi Inaki Vila,

Thank you for the response.

1.0 is the release and SP version is 4.

SFTP component info in NWA  says "1000.1.0.4.9.20150422040000"

As of now we are not able to get any trace, as the server team works in a different time zone.

Regards

Vicky Mor

nitindeshpande
Active Contributor
0 Kudos

Hello Vicky,

The problem seems to be with the Cache. Have you tried performing a cache refresh? Please find below the link to perform a cache refresh -

http://<host>:<port>/CPACache/refresh?mode=full

After cache refresh check your channels, it will be working fine.

Regards,

Nitin Deshpande

Former Member
0 Kudos

Hi Nitin,

Thank you for the response.

I did a full Cache refresh. But the channels are still in the same state. Also if I stop and start a channel then its working fine but after few minutes it again go back to the same error state.

Has it to do something with the parameter connection.mode.permanent = true which keeps the adapter busy with the channels polling fine and the other SFTP channels are only able to connect when the polling interval is over? Can it be a traffic issue?

Regards

Vicky Mor