cancel
Showing results for 
Search instead for 
Did you mean: 

FTP server Connection refused

Former Member
0 Kudos

Hi all,

In the last couple of weeks our PI communication channels keep throwing "FTP connection refused" errors. I already did a lot of searching on this forum, changed many settings, but the error just keeps coming up.

In our scenario we use PI to poll on files with a specific file mask on an external ftp-server. Files that comply to the file mask are transferred and mapped to our SAP MM/SD system, archived and deleted from the FTP-server. This scenario works fine for a couple days. After that I get the error message:

"Error occurred while connecting to the ftp-server "62.50.2.149:21": java.net.ConnectException: Connection refused: connect"

I tried using a ftp-client to connect to the ftp-server from the PI-system, which gave no errors. I also looked into the log on the external ftp-server, which didn't show any connection attempts from the PI system. I also extended the polling intervals, but this only extended the time for the ftp error to return. I also uninstalled the McAfee virusscan.

The only way to correct the error is rebooting the PI system. After the reboot the ftp connection is restored, but after a week the ftp connection refused error is back.

Is anyone familiair with this error and has a solution for this?

Thanks in advance!

Best regards,

Ivo

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi

R u using FTP (Free Version ??)

it's problem with FTP Server , no problem with PI.

Srini

Former Member
0 Kudos

Is ur production system running in cluster environment, then there could be a issue with "internal web dispatchers".

Ask ur basis team to have a check any of your internal web dispatchers is stopped. If yes then do the start.

Prabhu Rajesh

xinjiang_li
Active Participant
0 Kudos

Hi,

Check the parameter setting of the receiver communication channel.

The parameters need to check are about FTP connection parameters,especially "time out " ,"connection mode" and "username password". Is the values of "connection mode " is "per file transfer'?

Former Member
0 Kudos

Hi Xinjiang,

I set the ftp.timeout parameter in the additional parameters to 60 seconds, according to SAP note 849089. The Timeout in the FTP Connection Parameters has not been set. How many seconds do you advise me to set this parameter to?

Regards,

Ivo

marksmyth
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Ivo

Check SAP note #821267 FAQ: XI 3.0 / PI 7.0/ PI 7.1 File Adapter - Question 26. This discusses the error that you get.

It might also help to set the ftp.timeout parameter (see note #849089 I 3.0 / PI 7.0 File Adapter: FTP Timeout Handling).

Regards

Mark

Former Member
0 Kudos

Hi Mark,

thank your for sending me the OSS notes. I just added the ftp.timeout parameter. Hope this will solve the problem.

Regards,

Ivo

Former Member
0 Kudos

check the system log of receiver system, it might be the case of maximum connection limit reached.

Former Member
0 Kudos

Hi NE,

The maximum connection limit has already been raised. I checked the system log of the

receiver system/ftp-server. The log doesn't show any connection attempts by the PI system,

while PI keeps giving connection refused errors. I also tried to create a ftp connection from

a command prompt on the PI server to the same system, which didn't gave any errors.

Regards,

Ivo

former_member200962
Active Contributor
0 Kudos
The log doesn't show any connection attempts by the PI system, 
while PI keeps giving connection refused errors.

Check if PI is pointing to the required server....the IP address that you mentioned in your starting post....

Also check with the network people if the port gets into some restriction....

Former Member
0 Kudos

Hi Abhishek,

The IP address in the communication channel is correct.

Last night we rebooted the PI system and now the ftp connection is working fine again. But the error usually returns after one or twee weeks.

I just checked with the network guy and he told me that McAfee was running again on the PI system.

Could that cause the ftp connection error?

Regards,

Ivo

Former Member
0 Kudos

Check the network bandwidth and latency may be that can be the reason ....

Rajesh