Bad Padding Error in the Workload Automation Agent

Document ID : KB000045740
Last Modified Date : 14/02/2018
Show Technical Document Details

Issue:

We were able to install the Autosys Agent successfully however, we are unable to autoping the agent:

======================================

cybermation.library.communications.CybConversationException: Bad padding

at cybermation.library.communications.protocol.CybCommunicationProtocolRevisionTwo.receiveData(CybCommunicationProtocolRevisionTwo.java:622)

at cybermation.library.communications.protocol.CybCommunicationProtocolRevisionTwo.receiveMessage(CybCommunicationProtocolRevisionTwo.java:315)

at cybermation.library.communications.CybConversation.receiveMessage(CybConversation.java:429)

at cybermation.commplugins.tcpip.receiver.CybReceiverChannel.receive(CybReceiverChannel.java:173)

at cybermation.commplugins.tcpip.receiver.CybReceiverChannel.call(CybReceiverChannel.java:138)

at cybermation.commplugins.tcpip.receiver.CybReceiverChannel.call(CybReceiverChannel.java:50)

at cybermation.commplugins.tcpip.receiver.CybReceiverScheduler$CallableWrapper.call(CybReceiverScheduler$CallableWrapper.java:352)

at cybermation.commplugins.tcpip.receiver.CybReceiverScheduler$CallableWrapper.call(CybReceiverScheduler$CallableWrapper.java:316)

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)

 ======================================

 

Environment:

Any Linux platform

 

Cause:

The "bad padding" message appears when the encryption between the agent and scheduler do not match.

 

Resolution:

1.       Backup the cryptkey.txt in the installation directory

2.       Copy the cryptkey.txt from the scheduler (located in the $AUTOUSER directory) to the agent installation directory

 

3.       Restart the agent