[Satellite 6] Tomcat service fails with "keystore password was incorrect" error when upgrading Satellite 6.2

Solution Verified - Updated -

Issue

  • Missing cached credential files required by the foreman-installer in /var/lib/puppet/foreman_cache_data directory.
  • Tomcat service failed to start with following error when upgrading Satellite 6.2
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@njiplinfdb03 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 njiplinfdb03 systemd[1]: Started Apache Tomcat Web Application Container.
Jan 12 19:12:07 njiplinfdb03 systemd[1]: Starting Apache Tomcat Web Application Container...
Jan 12 19:12:07 njiplinfdb03 server[8412]: Java virtual machine used: /usr/lib/jvm/jre/bin/java
Jan 12 19:12:07 njiplinfdb03 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 njiplinfdb03 server[8412]: main class used: org.apache.catalina.startup.Bootstrap
...
Jan 12 19:12:08 njiplinfdb03 server[8412]: INFO: Initializing ProtocolHandler ["http-bio-8443"]
Jan 12 19:12:08 njiplinfdb03 server[8412]: Jan 12, 2017 7:12:08 PM org.apache.coyote.AbstractProtocol init
Jan 12 19:12:08 njiplinfdb03 server[8412]: SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-bio-8443"]
Jan 12 19:12:08 njiplinfdb03 server[8412]: java.io.IOException: keystore password was incorrect
...
Jan 12 19:12:08 njiplinfdb03 server[8412]: at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253)
Jan 12 19:12:08 njiplinfdb03 server[8412]: at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427)
Jan 12 19:12:08 njiplinfdb03 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.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In