adobe io runtime closed ports | Community
Skip to main content
January 14, 2021

adobe io runtime closed ports

  • January 14, 2021
  • 1 reply
  • 3527 views

Good team!

The problem I am trying to solve is the following:

From adobe io runtime we are deploying an app. One of its functions is to take a certain document and upload it to FTP. The problem we are encountering is that as indicated in this link https://adobedocs.github.io/adobeio-runtime/resources/faq.html#what-ports-are-open, certain ports are not open, including port 21 which is the one with which I must access the FTP. How can we solve this problem? I am using the BASIF FTP client for Node.js.

 

This is a little fragment of the code: 

 

The output is:

 

Thanks all!

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Adobe Employee
January 14, 2021

Hello Vmenendez,

 

You are correct, port 21 is closed by design. Security best practice is to use  SFTP instead of FTP. This is why port 22 (SFTP) is opened and 21 (FTP) is not.

 

Regarding your code, the way you can debug it, assuming that your provider supports SFTP is to first make the code run on your local machine (like running the action code within your node.js). Once this runs successfully, try to deploy it on Runtime. If doesn't run on Runtime, it could be that the SFTP server blocks certain IP ranges (like IPs owned by AWS or Azure). You'll have to work with them on this.

 

Hope this helps,

Mihai

 

 

vmenendezAuthor
January 15, 2021

Hi Mihai,

 

First of all, thank's for your answer.

 

The FTP we want to access is the Adobe customer attributes FTP. We are currently working on an automation that retrieves data from a third party tool(BigQuery) and loads it to Adobe Target. We should be able to automate the data upload that was done manually with an automated process at a Project Firefly application.

 

I see in this link https://experienceleague.adobe.com/docs/core-services/interface/customer-attributes/t-upload-attributes-ftp.html?lang=en#customer-attributes that this resource can be accessed from both FTP and SFTP. In our tests, we have been able to execute the code in Node environment, but when moving the execution to Adobe i/o we are gettint multiple errors. AdobeIO runtime has port 21 blocked and Im not able to connect the FTP on port 22. Also with SFTP we have problems within adobe io runtime (like timout errors)

May we whitelist the FTP IP to be able to connect?

Adobe Employee
January 15, 2021

No, we can't enable port 21 because it is against security best practices. Have you been able to connect to port 22 from a local Node.js environment?