55
Views
6
Comments
[Extension FtpWebRequest] OsFtpWebRequest method GetDirAndFileList unable to request to FTP server
Question
Forge component by Daniel Lourenço
5
Published on 22 Apr 2019

Hi ,

We are using Extension FtpWebRequest to get files from FTP to application server.

Using GetDirAndFileList method to read files.

Its working fine on one server , its sending request to FTP and getting back list of files.

But same code we deployed on other server its returning command ok, but list of files is empty.

From same server we can connect to FTP using CMD, FileZilla and read files. So connection to ftp is ok from server.


We tried to check request trace found that request not going to FTP from Out systems application.

Please let us know what is the issue root cause and resolution for this.

Thanks,


mvp_badge
MVP
Rank: #160

Hi Shirish Bathe,

Did you found some log in the Service Center? 

mvp_badge
MVP
Rank: #160

Hi Shirish Bathe,

Another tip is verify the connectivity to FTP service from the OutSystems Front-End server.

The FTP Service use the 20 and 21 TCP ports, maybe it's not allowed in the infrastructure.

Rank: #61646

Hi Leandro,

We don't have logs in service center. for FTP issue. Also we tried to connect from FE server using Command line, Power shell to FTP its working fine. Even FileZilla also works on server.

From extension we are getting response command OK , count 0. But there are lot of files on FTP server which is unable to read by extension and download it.

Same extension works on UAT server thats why difficult to understand the issue.

Please assists here as its PROD issue.

Thanks


  

Rank: #5119

did you find a solution for this problem?

thanks

mvp_badge
MVP
Rank: #160
Hi Sergio, Did you check your network permissions? The 20 and 21 TCP ports is necessary to FTP communicatios between OS Server and FTP Server. Regards, Leandro.
mvp_badge
MVP
Rank: #160

Maybe you can try to set a longer timeout, because of list files size in the extension source code.


Regards,

Leandro.