search cancel

FTP JOB failing | Connection refused (Connection refused)

book

Article ID: 201696

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

RA FTP JOB is failing with the following error message in the report log.

 

2020-10-12 16:54:52             host name = casplda02, remote user identification  = bta_na
2020-10-12 16:54:52             connecting on port : 22
2020-10-12 16:54:52             Using hosts file = /home/automicbta/.ssh/known_hosts
2020-10-12 16:54:52             Connecting to casplda02 port 22
java.net.ConnectException: Connection refused (Connection refused)
com.uc4.ftpjob.DataTransferException: Connection exception.
    at com.uc4.transfer.CITSFTPImpl.<init>(CITSFTPImpl.java:175)
    at com.uc4.ftpjob.connections.ConnectionManager$1.run(ConnectionManager.java:87)
    at java.lang.Thread.run(Thread.java:748)
Caused by: com.jcraft.jsch.JSchException: java.net.ConnectException: Connection refused (Connection refused)
    at com.jcraft.jsch.Util.createSocket(Util.java:349)
    at com.jcraft.jsch.Session.connect(Session.java:215)
    at com.jcraft.jsch.Session.connect(Session.java:183)
    at com.uc4.transfer.CITSFTPImpl.<init>(CITSFTPImpl.java:141)
    ... 2 more
Caused by: java.net.ConnectException: Connection refused (Connection refused)
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:606)
    at java.net.Socket.connect(Socket.java:555)
    at java.net.Socket.<init>(Socket.java:451)
    at java.net.Socket.<init>(Socket.java:228)
    at com.jcraft.jsch.Util.createSocket(Util.java:343)
    ... 5 more

Environment

Release : 12.x

Component : AUTOMATION ENGINE

Resolution


Based on the error message, there is a connection issue to the ftp/sftp server.

2020-10-12 16:54:52             Connecting to casplda02 port 22
java.net.ConnectException: Connection refused (Connection refused)


Troubleshooting steps:


-Check if the issue occur when using the IP address instead of the hostname


-Check how FTP performs outside of RA FTP agent? For example, from the command line ?