CA WA Agent SCP Job fails with com.jscape.inet.ssh.protocol.v2.marshaling.PacketCodec$InvalidMacException

Document ID : KB000100029
Last Modified Date : 13/02/2019
Show Technical Document Details
Issue:
SCP job type fails with the following message:
02/12/20XX 15:19:09.991-0500 1 FtpPlugin.SCP Transfer thread for 11111.100000_2/
XXXXXX/MAIN.CybSFTPHandler.run[:979] - com.jscape.inet.sftp.SftpException:
com.jscape.inet.ssh.protocol.v2.marshaling.PacketCodec$InvalidMacException
at com.jscape.inet.sftp.SftpException.wrap(Unknown Source)
at com.jscape.inet.sftp.Sftp.a(Unknown Source)
.......
.......
Caused by: com.jscape.inet.ssh.protocol.v2.marshaling.PacketCodec$InvalidMacException: null
at com.jscape.inet.ssh.protocol.v2.marshaling.PacketCodec.c(Unknown Source)
at com.jscape.inet.ssh.protocol.v2.marshaling.PacketCodec.read(Unknown Source)
at com.jscape.inet.ssh.protocol.v2.marshaling.PacketCodec.read(Unknown Source)
at com.jscape.util.l.a.fb.read(Unknown Source)

The "null" is not a valid value, it may mean that the MAC handshaking is failing, possibly due to a timeout.
 
Environment:
CA WA Agent 11.3 / 11.4
OS: Any
Cause:
The handshaking failure may be due to a read timeout. The connection timeout can been increased.
Resolution:
To increase the read timeout to 90 seconds (for example), set the following in the agentparm.txt file and restart the agent:
ftp.scp.sshd.timeout=90000