Issue
During CD upgrade, after the repository is installed, the installation process failed with this error message: Failed to initialize Server’s keystore.
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.
This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.