KBEC-00468 - Upgrade Failure Caused By java/lib/ext

Article ID:360054685752
1 minute readKnowledge base

Issue

During CD upgrade, after the repository is installed, the installation process failed with this error message: Failed to initialize Server’s keystore.

Environment

  • CloudBees CD 9.1.0.138283

Additional evidence

The following snippet can be found in process.log:

11/19/2020 10:41:50AM - Running program: /opt/electriccloud/electriccommander/bin/eccert list --server --verbose
11/19/2020 10:41:51AM - Exit code: 1
11/19/2020 10:41:51AM - Output: Unable to load '/opt/electriccloud/electriccommander/conf/agent/keystore'

Details:
<JAVA_HOME>/lib/ext exists, extensions mechanism no longer supported; Use -classpath instead.
.Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

child process exited abnormally
11/19/2020 10:41:51AM - Error: Failed to retrieve Server's keystore.

Solution

Remove <JAVA_HOME>/lib/ext. A fresh CloudBees CD installation does not generate the $<JAVA_HOME>/lib/ext directory and it’s not needed by CloudBees CD to work.