After upgrading the Autosys System Agent from version 12.0 to 12.1.01 on an AS400 server, users reported that SCP (Secure Copy Protocol) download jobs were failing to complete.
The ftp_scp_debug.log file shows below message:
======
11/05/2025 12:57:03.354+0800 5 FtpPlugin.SCP Transfer thread for 2851695.10241287_1/WAAE_WF0.1/MAIN.StreamEncoder.implFlush[:309] - 11.05.2025 12:57:03 [ FINER] Outgoing SFTP message at [XX.XX.XX.XX:42489 <-> XX.XX.XX.XX:22]: SshFxpRead {id=1015495, handle=[0, 0, 0, 0], offset=66551283712, length=65536}.
11/05/2025 12:57:03.354+0800 5 FtpPlugin.SFTP Transfer.StreamEncoder.implFlush[:309] - 11.05.2025 12:57:03 [ FINER] Incoming SFTP message at [XX.XX.XX.XX:42489 <-> XX.XX.XX.XX:22]: SshFxpStatus {id=1015463, code=5, message='Bad message', languageTag=''}.
11/05/2025 12:57:03.354+0800 5 FtpPlugin.SCP Transfer thread for 2851695.10241287_1/WAAE_WF0.1/MAIN.StreamEncoder.implFlush[:309] - 11.05.2025 12:57:03 [ FINER] Outgoing SSH message at [XX.XX.XX.XX:42489 <-> XX.XX.XX.XX:22]: SshMsgChannelData {recipientChannel=0, data.length=8192, offset=0, length=29}
11/05/2025 12:57:03.354+0800 5 FtpPlugin.SFTP Transfer.StreamEncoder.implFlush[:309] - 11.05.2025 12:57:03 [ FINER] Incoming SSH message at [XX.XX.XX.XX:42489 <-> XX.XX.XX.XX:22]: SshMsgChannelData {recipientChannel=1, data.length=32, offset=0, length=32}
======
Agent R12.1.01 in AS400 server
1. Add the below parameters in agentparam.txt file:
ftp.scp.pipelinetransferenable=false
ftp.scp.pipelinewindowsize=8
ftp.scp.downloadblocksize=32750
2. Restart the Agent