Test Instance Mid Servers are down. For basic authentication ,password decryption is failing.

vinnila
Tera Contributor

Hi Team,
Test Mid Servers are down after cloning. we are trying to connect using basic authentication. due to the password in config.xml file , it is failing at decrypting password while trying to start the mid server.
getting an error as "Caused by: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption." in mid server agent logs.
 Please help us to resolve this issue asap.

 

Regards,

Vineela

2 REPLIES 2

Brian Lancaster
Tera Sage

Is the mid server accounts password different in test then it is in prod? Have you tried editing the config.xml and entering the password again? Once you restart the mid server service it will re-encrypt the password.

Hi @Brian Lancaster ,

Yes PROD and Test are different passwords.

I have reset the password for Test and updated password in config.xml file. while trying to restart the mid server. it is failing with error message as ""Caused by: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption." in mid server agent logs.