cancel
Showing results for 
Search instead for 
Did you mean: 

File adapter issue

Former Member
0 Kudos

Hi Gurus,

I 'm using file adapter to connect to the server external to our firewall using File Transfer protocol.

I configured file adapter and tested teh interafce.

In the channel monitoring I can see the error.

Error occurred while connecting to the FTP server "ftp.neopost.co.uk:21": java.net.UnknownHostException: Hostname.

I tried to ping this server in command prompt and I got unknown Host exception.

But I can open the URL ftp://hostname in IE.

The network team asked me to test from Filezilla client.

I installed that on my local machine and I configured teh proxy server settings and created teh FTP site.

I did teh connection test but I got HTTP 1.1,407 proxy authentication failed.

I asked the basis team to ping the FTP server from PI using the command telnet FTPhost port

but they said telnet is banned from PI server.

Can you please help in resolving this issue.

Thanks,

Jay.

Accepted Solutions (1)

Accepted Solutions (1)

Shabarish_Nair
Active Contributor
0 Kudos

Hi Gurus,

>

> I 'm using file adapter to connect to the server external to our firewall using File Transfer protocol.

>

> I configured file adapter and tested teh interafce.

Are all port open for you to connect from PI to the external FTP via the firewall?

>

> In the channel monitoring I can see the error.

>

> Error occurred while connecting to the FTP server "ftp.neopost.co.uk:21": java.net.UnknownHostException: Hostname.

>

> I tried to ping this server in command prompt and I got unknown Host exception.

try to give the IP address instead of host in the CC and try again.

>

> But I can open the URL ftp://hostname in IE.

>

> The network team asked me to test from Filezilla client.

>

> I installed that on my local machine and I configured teh proxy server settings and created teh FTP site.

>

> I did teh connection test but I got HTTP 1.1,407 proxy authentication failed.

>

> I asked the basis team to ping the FTP server from PI using the command telnet FTPhost port

>

> but they said telnet is banned from PI server.

>

> Can you please help in resolving this issue.

>

> Thanks,

> Jay.

Do a telnet to your PI server from your local machine. Once you are logged into the PI server via telnet, from within the PI login try to do a FTP <your FTP server> command and check if you are able to successfully connect.

Former Member
0 Kudos

Hi Shabharish,

Thanks for teh reply.

All the ports are opened on the firewall to connect from PI server to ftp server.

I used teh telenet command to connect to PI server.

TELNET hostname port...which port should I specify here.

Thanks,

Jay.

baskar_gopalakrishnan2
Active Contributor
0 Kudos

>TELNET hostname port...which port should I specify here

port number should be 23 for telnet and for ftp 21. Also check with basis team.

Former Member
0 Kudos

Hi Bhaskar,

I used the telnet command from Windows Command prompt.

Telnet PI HOst 23

but I'm getting error..could not open connection to the host on port 23, Connection failed.

Thanks,

Jay.

Shabarish_Nair
Active Contributor
0 Kudos

do a telnet on 21 port

and then within telnet, use the ftp command as i mentioned earlier.

Former Member
0 Kudos

Hi Shabharish,

I'm still getting the same error.

Could not open the connection to the host,on port 21:Connect failed.

Thanks,

Jay.

Shabarish_Nair
Active Contributor
0 Kudos

you might want to take the help of the basis team and get this activity done.

baskar_gopalakrishnan2
Active Contributor
0 Kudos

You might have firewall issue for that port 23 . Check with Basis team.

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

Using your own desktop (internet explorer) cannot similulate the connexion from PI, this is not the same "computer" and not the same config and authorization. You (normally your admin team) should connect to PI server iteself (in fact, server on which your Adapter Engine is installed) and do a ping to this file server, so from PI server.

it's either the file "hosts" on PI server which does not have the link "hostname -> IP address" or it's your DNS server.

regards.

Mickael