[Satellite 6] Tomcat service fails with "keystore password was incorrect" error when upgrading Red Hat Satellite
Issue
- Missing cached credential files required by the foreman-installer in
/var/lib/puppet/foreman_cache_data
directory. - Tomcat service failed to start with the following error when upgrading Satellite 6
Upgrade Step: migrate_candlepin...
Migrating candlepin database
Liquibase Update Successful
Upgrade Step: start_tomcat...
Redirecting to /bin/systemctl start tomcat.service
Some services failed to start: tomcat
Upgrade step start_tomcat failed. Check logs for more information.
[root@satellite foreman-installer]# /bin/systemctl status tomcat.service -n 300 -l
â tomcat.service - Apache Tomcat Web Application Container
Loaded: loaded (/usr/lib/systemd/system/tomcat.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2017-01-12 19:12:07 EST; 39s ago
Main PID: 8412 (java)
CGroup: /system.slice/tomcat.service
ââ8412 /usr/lib/jvm/jre/bin/java -classpath /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar -Dcatalina.base=/usr/share/tomcat -Dcatalina.home=/usr/share/tomcat -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat/temp -Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager org.apache.catalina.startup.Bootstrap start
Jan 12 19:12:07 satellite systemd[1]: Started Apache Tomcat Web Application Container.
Jan 12 19:12:07 satellite systemd[1]: Starting Apache Tomcat Web Application Container...
Jan 12 19:12:07 satellite server[8412]: Java virtual machine used: /usr/lib/jvm/jre/bin/java
Jan 12 19:12:07 satellite server[8412]: classpath used: /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar
Jan 12 19:12:07 satellite server[8412]: main class used: org.apache.catalina.startup.Bootstrap
...
Jan 12 19:12:08 satellite server[8412]: INFO: Initializing ProtocolHandler ["http-bio-8443"]
Jan 12 19:12:08 satellite server[8412]: Jan 12, 2017 7:12:08 PM org.apache.coyote.AbstractProtocol init
Jan 12 19:12:08 satellite server[8412]: SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-bio-8443"]
Jan 12 19:12:08 satellite server[8412]: java.io.IOException: keystore password was incorrect
...
Jan 12 19:12:08 satellite server[8412]: at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253)
Jan 12 19:12:08 satellite server[8412]: at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427)
Jan 12 19:12:08 satellite server[8412]: Caused by: java.security.UnrecoverableKeyException: failed to decrypt safe contents entry: javax.crypto.BadPaddingException: Given final block not properly padded
Environment
Red Hat Satellite 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.