AWA RAFTP connection-reset-by-peer-socket-write-error
search cancel

AWA RAFTP connection-reset-by-peer-socket-write-error


Article ID: 103633


Updated On:


CA Automic Workload Automation - Automation Engine


After update the RA FTP solution from 3.1.2 to 4.0.5, our SFTP job got failed with the below error while transfer a pdf file (other type of files working fine), even It's still working before the upgrade.
Connection reset by peer: socket write error
com.uc4.ftpjob.DataTransferException:  Connection reset by peer: socket write error.
    at com.uc4.ftpjob.commands.impl.CopyCommand.throwDataException(
    at com.uc4.ftpjob.commands.impl.CopyCommand.execute(
    at com.uc4.ftpjob.commands.impl.CopyCommand.execute(
    at com.uc4.ftpjob.commands.CommandProcessor.execCommand(
    at com.uc4.ftpjob.commands.CommandProcessor.processCommands(
    at com.uc4.ftpjob.commands.CommandProcessor$ Source)
    at FtpJob.runJob(FtpAgent.groovy:304)
    at com.uc4.extensibility.types.CITAgent.dispatchJob(
    at com.uc4.ex.cit.CITJob.execute(
    at com.uc4.ex.ThreadPool$
    at java.util.concurrent.Executors$ Source)
    at Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$ Source)
    at Source)
Caused by: Connection reset by peer: socket write error
    at Method)
    at Source)
    at Source)
    at com.jcraft.jsch.IO.put(
    at com.jcraft.jsch.Session._write(
    at com.jcraft.jsch.Session.write(
    at com.jcraft.jsch.ChannelSftp.sendWRITE(
    at com.jcraft.jsch.ChannelSftp.access$100(
    at com.jcraft.jsch.ChannelSftp$1.write(
    at com.uc4.ftpjob.commands.impl.CopyCommand.execute(
    ... 14 more
2018-06-22 14:47:00             pool-1-thread-24: SFtpCommandImpl: start: disconnect(): no args
2018-06-22 14:47:00             pool-1-thread-24: LocalFileSysBrowserImpl: start: disconnect(): no args



Component: ARAFTP


we can transfer a text file with our any problem, so It's not the issue with connection
Checking at the log file of the job we can see the following info

2018-06-22 14:46:44             host name = ##.###.#.#, remote user identification  = userxxxx
2018-06-22 14:46:44             Using SFTP private key file: keys\sptxxxx.ssh
2018-06-22 14:46:44             Not using pass phrase
2018-06-22 14:46:44             connecting on port : 22
2018-06-22 14:46:44             Using hosts file = C:\/.ssh/known_hosts
2018-06-22 14:46:44             Connecting to ##.##.###.# port 22
2018-06-22 14:46:44             Connection established
2018-06-22 14:46:44             Remote version string: SSH-2.0-5.23 FlowSsh: Bitvise SSH Server (WinSSHD) 6.04
2018-06-22 14:46:44             Local version string: SSH-2.0-JSCH-0.1.54

The SFTP server currently using SSH-2.0-5.23 FlowSsh: Bitvise SSH Server (WinSSHD) 6.04 which is released 4 years ago, so mostly it is not working correctly with our new  RAFTP solution
so the solution for this issue is update FTP software  please check the below link for reference