question

TWest-1253 avatar image
0 Votes"
TWest-1253 asked ChaitanyaNaykodiMSFT-9638 commented

Logic Apps unable to connect (intermittently) to SFTP SSH Server

Hi,

I have created a Logic Apps process to connect to our internal SFTP server. We have whitelisted all of the connector IP addresses, but the problem is the Logic Apps process often fails to connect and is giving us a bad gateway error. The trigger is on a timer to run every 10 mins, sometimes it fires, whilst other times it gives us the bad gateway error. I have reduced concurrency control to 1 also. Any ideas of what else could be tried as a solution please?

Thanks

azure-logic-apps
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ChaitanyaNaykodiMSFT-9638 avatar image
0 Votes"
ChaitanyaNaykodiMSFT-9638 answered ChaitanyaNaykodiMSFT-9638 commented

Hello @TWest-1253, Thank you for reaching out.

According to the troubleshooting doc.
1. You could try changing the Retry policy setting on the SFTP-SSH action to a retry count higher than the default four retries.
2. Review the SFTP server log to check whether the request from logic app reached the SFTP server. To get more information about the connectivity problem, you can also run a network trace on your firewall and your SFTP server. I think this might help us understand if the connection issue is from Azure side or related to the SFTP SSH server.

Please let me know if this does not help resolve the issue, I will be glad to continue with our discussion.




· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

We already tried setting the retry policy to a higher count, but no luck unfortunately. Our IT team have confirmed that the request from Logic Apps didn't reach the SFTP server during the failed/bad gateway runs. I'll see if they can run a network trace too.

Is there anything else which we could try please?

Thanks.

0 Votes 0 ·

Hello @TWest-1253, thank you for the response. Usually such issues are associated with whitelisting of managed connectors IP but as you have already whitelisted these, a network trace will definitely give us more insights into the issue.


0 Votes 0 ·