The sftp_java and ftp_java can abort with the following error message in the job outfile.
2018-07-22 10:02:28 Error - unable to connect to remote host - 'Automic.test.com'
The following error can also be seen in the Client gui RmiServer pop up window.
10:27:05.702 ASM2: .AgentService: module name = SFTP_JAVA
10:27:05.714 ASM2: AwE-5700
ErrorMsg: AwE-5700 Server closed connection (7/22/18 10:27 AM)
Details: /app/appworx/out/ o71776966.00
com.jcraft.jsch.JSchException: fromBase64: invalid base64 data
A review of the AgentService log from the server where the job runs will show the source of the error message as followed…
ASM2: .AxOptions: NoErrorMsgProperties=false
ErrorMsg: AwE-5700 Server closed connection (7/22/18 8:08 AM)
Details: /app/appworx/out/o71776966.00
com.jcraft.jsch.JSchException: fromBase64: invalid base64 data
at com.jcraft.jsch.Util.fromBase64(Util.java:63)
at com.jcraft.jsch.KnownHosts.setKnownHosts(KnownHosts.java:219)
at com.jcraft.jsch.KnownHosts.setKnownHosts(KnownHosts.java:55)
at com.jcraft.jsch.JSch.setKnownHosts(JSch.java:317)
at com.appworx.agent.B.?(Sftp.java:238)
at com.appworx.agent.B.<init>(Sftp.java:198)
at com.appworx.agent.AgentService.sftp(AgentService.java:2195)
Please note this is a jcraft error message which is being captured in the Applications Manager logs.
In the past the error has been resolved by correcting format errors in the known_host file.