Issue: Unable to start Deploy [Cannot decrypt: key=deploy.plugins.servers[0].credentials.password]

Issue

Unable to start Deploy [Cannot decrypt: key=deploy.plugins.servers[0].credentials.password]

Environment

Noticed in Deploy 10.2.x

Symptom

2021-09-21 11:11:18.785 [main] {} WARN o.s.b.l.logback.LogbackLoggingSystem - Ignoring 'logback.
configurationFile' system property. Please use 'logging.config' instead.
2021-09-21 11:11:19.057 [main] {} WARN o.s.c.b.e.EnvironmentDecryptApplicationInitializer - Cannot
decrypt: key=deploy.plugins.servers[0].credentials.password
2021-09-21 11:11:19.090 [main] {} ERROR o.s.boot.SpringApplication - Application run failed
java.lang.IllegalStateException: Cannot decrypt: key=deploy.plugins.servers[0].credentials.password

Cause

Possibly, you have copied <DEPLOY_HOME>/conf/deployit.conf and replaced the original one. So, the encryption key xl.spring.cloud.encrypt.key that is used to create a hash is changed.

Work Around

Remove all the encrypted fields [containing '{cipher}' and '{aes}'] from the <DEPLOY_HOME>/centralConfiguration and <DEPLOY_HOME>/conf/deployit.conf, and update them with plaintext.

The passwords will be re-encrypted once the Deploy service starts

Was this article helpful?
1 out of 1 found this helpful

Comments

0 comments

Please sign in to leave a comment.