60
Views
2
Comments
Solved
[SFTP] Error: A connection attempt failed
Question
sftp
Service icon
Forge asset by Paulo Ramos
Application Type
Service
Service Studio Version
11.54.51 (Build 63195)
Platform Version
11.18.1 (Build 37828)

Hello everyone,

I've been experiencing this error:

I believe almost 9 years ago something same happened and raised here, but never really have the answer. So my issue happened only in the development and testing environment, working fine in production environment (List, Put) which a little bit weird. I have experienced this issues specificially in 2 different SFTP server (working with 2 different 3rd parties), the 3rd parties already whitelist our all of our environment IP. We tried to see the log but it seems like the dev and testing environment never hit the destination server. We use 1 action with Username and Password, and 1 action with Username and PrivateKey.

We have used this connector for quite some time now, some of apps running in our environment still using this SFTP connector and worked fine (some using hostname, some using IP), but for some reason for these cases it failed. 


Anybody ever experienced the same thing? 


Thank you!

UserImage.jpg
Ibnu Sina
Solution

Hi Everyone,

I have solved this issue in both of the environments. Turns out I whitelist the wrong IP address (I gave IP address that is displayed in Service Center instead of the public IP). Rookie mistake 🄲.
Hope everyone not doing the same mistake as I did!

Reference: Whitelist IP article here!

2024-07-05 14-16-55
Daniël Kuhlmann
Ā 
MVP

Hi,

Are you having an OutSystems infrastructure managed by OutSystems or is it self managed?

You mentioned the environment IP is whitelisted, als the right ports, maybe sysadmins still have some rules that block the traffic. The fact that it works in Production suggests that the issue is outside the OutSystems platform.

-- Daniel

UserImage.jpg
Ibnu Sina
Solution

Hi Everyone,

I have solved this issue in both of the environments. Turns out I whitelist the wrong IP address (I gave IP address that is displayed in Service Center instead of the public IP). Rookie mistake 🄲.
Hope everyone not doing the same mistake as I did!

Reference: Whitelist IP article here!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.