Manager unable to connect agent. Logs show message about "Bad padding".

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

Description:

The scheduler is not able to connect to the agent. The agent logs show error similar to this:


02/12/2014 13:52:37.673 EST-0500 1 TCP/IP Controller Plugin.Receiver pool thread .CybReceiverChannel.receive[:233] -
cybermation.library.communications.CybConversationException: Bad padding at cybermation.library.communications.protocol.CybCommunicationProtocolRevision....

Solution:

The encryption key used between manager and agent does not match. The same key and cipher must be defined on both sides.

By default, the CA WA Agent R11.3 keeps the key in cryptkey.txt file. A new key file can be generated by using the keygen utility in the agent install directory.


Usage: keygen   Example:  ./keygen 0x0987654321FEDCBA DES   (Linux/UNIX)    keygen.bat 0x0987654321FEDCBA DES   (Windows)

Note: 0x must be added to the key. The manger side does not need to have 0x, only the hexadecimal key.

After generating the new cryptkey.txt file, restart the agent for changes to take affect.