Skip to main content
Question

SFTP Sender


Forum|alt.badge.img+4

Has anyone got SFTP sender to work in Apps9

I have the reader working but if I set up the sender with the same details there appears to be no network traffic at all and just an error message:-

 

 

Is there something missing from the documentation ?

Regards,

Alan

 

32 replies

Forum|alt.badge.img+10
  • Hero (Customer)
  • 82 replies
  • April 14, 2020

SFTP can be tricky if firewalls are involved.

Can you emulate this functionality manually on the application server using something like WInSCP ?


Forum|alt.badge.img+4
  • Author
  • Do Gooder (Customer)
  • 20 replies
  • April 14, 2020

Thanks for a quick reply.

I have set up an SFTP reader that works OK and I can copy in both directions with FileZilla - all firewalls are off, at least for testing.


Forum|alt.badge.img+10
  • Hero (Customer)
  • 82 replies
  • April 14, 2020

How have you set-up the SFTP sender in IFS connect?

 

 


Forum|alt.badge.img+4
  • Author
  • Do Gooder (Customer)
  • 20 replies
  • April 14, 2020

 


Forum|alt.badge.img+10
  • Hero (Customer)
  • 82 replies
  • April 14, 2020

Hmm looks Ok 

Do you have access to the SFTP server you are writing to?

If so, have you checked the log files there to see the incoming connection both when it works and when it fails? This will give you a clue as to what is happening. As a last resort, there are also logs on the IFS App Server in the Instance sub-folder folder logs\connectserver

 


Forum|alt.badge.img+4
  • Author
  • Do Gooder (Customer)
  • 20 replies
  • April 14, 2020

I can connect using SFTP_Reader and FileZilla works both directions. Wireshark does not show any activity so nothing in the SFTP server logs. There is nothing in the connectserver logs - from the documentation I gather that the connectserver is for incoming.


Forum|alt.badge.img+10
  • Hero (Customer)
  • 82 replies
  • April 15, 2020

Have you created the Routing Rules to Generate the output?


Forum|alt.badge.img+4
  • Author
  • Do Gooder (Customer)
  • 20 replies
  • April 15, 2020

I have created routing rule and address and a test file. I run the test from the routing address screen.


Forum|alt.badge.img+10
  • Hero (Customer)
  • 82 replies
  • April 15, 2020

and sftp_knowhosts is set-up?


Forum|alt.badge.img+4
  • Author
  • Do Gooder (Customer)
  • 20 replies
  • April 15, 2020

yes, it works in sftp_reader

 


Forum|alt.badge.img+10
  • Hero (Customer)
  • 82 replies
  • April 15, 2020

Well  I’m fresh out of ideas then - Sorry.


Forum|alt.badge.img+4
  • Author
  • Do Gooder (Customer)
  • 20 replies
  • April 15, 2020

Thanks for your help.

 

It’s taken IFS 3 months to come to the same conclusion and now they want to charge us to look at it :(

 


Forum|alt.badge.img+10
  • Hero (Customer)
  • 82 replies
  • April 15, 2020

:frowning2:

 

 


dsj
Superhero (Partner)
Forum|alt.badge.img+22
  • Superhero (Partner)
  • 824 replies
  • April 16, 2020
Alan Gillespie wrote:

I can connect using SFTP_Reader and FileZilla works both directions. Wireshark does not show any activity so nothing in the SFTP server logs. There is nothing in the connectserver logs - from the documentation I gather that the connectserver is for incoming.

 

yes, you are correct. connectserver logs is for incoming. You should look in the j2ee for sender logs.

Check ifsapplog-*.log and ifsalert-*.log to see if you ind any interesting information there.

 

I once got stuck with the SFTP sender setup and created attached java code to simulate the IFS sftp sender connection. Hope it could guide you also to solve the issue.

 

Change the SFTP parameters in getClient() to your sftp details, compile and run from the application server machine. at least it will give the ‘real’ error message which then can investigate further.

 

below is how to compile and run the java code 

 

Cheers!

Damith


Forum|alt.badge.img+4
  • Author
  • Do Gooder (Customer)
  • 20 replies
  • April 20, 2020

Thanks Damith

 

Like the SFTP Reader the java code ran and connected as expected. However the ManagedServer Log in J2EE has an interesting error when trying to run the IFS SFTP Sender -

. [Error GUID:084152be-54cb-4737-8725-cd474908ab47]
2020-04-20 11:36:35,419  66 WARNING [Integration] ifs.fnd.tc.framework.xml.XMLUtil.getEncoding(): [B@562416b7
ifs.fnd.base.SystemException: Route Address Tester not exist in Foundation configuration
    at ifs.fnd.tc.framework.config.Config.<init>(Config.java:105)
    at ifs.fnd.tc.framework.Instance.<init>(Instance.java:38)
    at ifs.fnd.tc.framework.ConnectFramework.getReader(ConnectFramework.java:285)

 

Would I be correct in assuming that IFS have not installed all the relevant code or is this a hidden chargeable extra ?

Full extract of log attached

 


dsj
Superhero (Partner)
Forum|alt.badge.img+22
  • Superhero (Partner)
  • 824 replies
  • April 21, 2020

Hi @Alan Gillespie ,

 

Yes, there ‘s a high possibility of this error correlated to the SFTP sender error, and hopefully someone from IFS Technology will provide a proper explanation or you could log a case to IFS support.

 Have you tested SFTP sender with a integration scenario than the Routing Address Test option? Maybe it works after all? If not, interesting to check the error message in the application message.

 

Regards,

Damith


Mike.Hollifield
Hero (Partner)
Forum|alt.badge.img+8

Alan,

 

Have you configured the knownhosts file as per the instructions in the IFS help?

 

It needs to contain the thumbprint of the sftp server you are trying to authenticate with.


Forum|alt.badge.img+4
  • Author
  • Do Gooder (Customer)
  • 20 replies
  • May 6, 2020

Mike,

 

I assume that the knownhosts file must be correct as the SFTP_Reader works fine.

 

I honestly think this is a bug, although IFS won’t admit it, because there is absolutely no network traffic before the error message - I would expect at least a DNS query.


Mike.Hollifield
Hero (Partner)
Forum|alt.badge.img+8

Just to make sure, but the path to the knownhosts is the same on your reader? 

 - I’m trying to make sure you are referecing the same file

 

Please run this and post the result:

 

select instance_name,area_name,parameter_name,parameter_type,parameter_value,value_list from fndcn_config_param_tab where instance_name in ('SFTP_SENDER1','SFTP_READER1') AND parameter_name = 'SERVERAUTH_KNOWNHOSTS'

--you might be using different connector names, so please ensure you adjust to reflect your test connectors.

What update version are you on? I beleive Upd16 is available for Apps9.


Forum|alt.badge.img+4
  • Author
  • Do Gooder (Customer)
  • 20 replies
  • May 7, 2020

Hello Mike,

 

We are currently on Upd14 waiting for IFS to fix some WIP problems before we move to Upd17 ready for the new version of Oracle.

 

The parameter screen was mainly copy & paste between the reader & writer

 

SFTP_READER1    Integration    SERVERAUTH_KNOWNHOSTS    TypeText    C:\IFS\sftp_knownhosts    
SFTP_TEST    Integration    SERVERAUTH_KNOWNHOSTS    TypeText    C:\IFS\sftp_knownhosts    


Forum|alt.badge.img+10
  • Hero (Customer)
  • 82 replies
  • May 19, 2020

Hi Alan

As it happens, I’ve had to set-up a new SFTP Sender and we were getting exactly the same problem as you were   (Apps 9 Update 12)

When I dug a little deeper, the problem was to do with the file and path names. Not sure it this is the same issue but I had to prefix the folder path.

 

Andy


Forum|alt.badge.img+10
  • Hero (Customer)
  • 82 replies
  • May 19, 2020

I also gave the know_hosts file a file extension so it doesn’t get misinterpreted as folder.


Forum|alt.badge.img+4
  • Author
  • Do Gooder (Customer)
  • 20 replies
  • May 21, 2020

Thanks for your suggestion Andy. I have implemented both but still no luck.

Wire shark still does not show any outgoing packets, not even a query on the host name - Apps 9 is behaving like a petulant child, it is saying it can’t connect without even trying :(


HOOJEWINL
Sidekick (Customer)
Forum|alt.badge.img+6
  • Sidekick (Customer)
  • 17 replies
  • June 26, 2020

we have the same issue (IFS App 9)


Forum|alt.badge.img+4
  • Author
  • Do Gooder (Customer)
  • 20 replies
  • June 26, 2020

Fixed at last - it was all down to the routing address screen

 

Online documentation

 

 

Misunderstood as the file being output instead of the file on the destination

 

 

Entered on Routing screen

 

 

Should have been

 

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings