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(CopyCommand.java:705) at com.uc4.ftpjob.commands.impl.CopyCommand.execute(CopyCommand.java:640) at com.uc4.ftpjob.commands.impl.CopyCommand.execute(CopyCommand.java:444) at com.uc4.ftpjob.commands.CommandProcessor.execCommand(CommandProcessor.java:325) at com.uc4.ftpjob.commands.CommandProcessor.processCommands(CommandProcessor.java:166) at com.uc4.ftpjob.commands.CommandProcessor$processCommands.call(Unknown Source) at FtpJob.runJob(FtpAgent.groovy:304) at com.uc4.extensibility.types.CITAgent.dispatchJob(CITAgent.java:258) at com.uc4.ex.cit.CITJob.execute(CITJob.java:191) at com.uc4.ex.Job.run(Job.java:469) at com.uc4.ex.ThreadPool$RunnableDecorator.run(ThreadPool.java:53) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(Unknown Source) at java.net.SocketOutputStream.write(Unknown Source) at com.jcraft.jsch.IO.put(IO.java:60) at com.jcraft.jsch.Session._write(Session.java:1379) at com.jcraft.jsch.Session.write(Session.java:1343) at com.jcraft.jsch.ChannelSftp.sendWRITE(ChannelSftp.java:2352) at com.jcraft.jsch.ChannelSftp.access$100(ChannelSftp.java:38) at com.jcraft.jsch.ChannelSftp$1.write(ChannelSftp.java:731) at com.uc4.ftpjob.commands.impl.CopyCommand.execute(CopyCommand.java:626) ... 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
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
https://www.bitvise.com/ssh-server-version-history-6
https://www.bitvise.com/ssh-server-version-history