2022-07-25 05:52:56,809 | ERROR | Bootstrap Application | HttpEngineSslCertificateVerifier | Certificate migration failed. |
java.io.EOFException
at java.io.DataInputStream.readFully(DataInputStream.java:197)
at java.io.DataInputStream.readLong(DataInputStream.java:416)
at com.sun.crypto.provider.JceKeyStore.engineLoad(JceKeyStore.java:799)
at java.security.KeyStore.load(KeyStore.java:1445)
at com.vmware.vcloud.common.ssl.CertificateStoreConfigurationUtils.loadOrGenerateKeyStoreAndPassword(CertificateStoreConfigurationUtils.java:105)
at com.vmware.vcloud.common.ssl.CertificateStoreConfigurationUtils.configureTrustedCertificates(CertificateStoreConfigurationUtils.java:68)
at com.vmware.vcloud.common.main.bootstrap.utilities.TrustedCertificateMigrator.prepareForMigration(TrustedCertificateMigrator.java:123)
at com.vmware.vcloud.common.main.bootstrap.utilities.TrustedCertificateMigrator.migrateTrustedCertificates(TrustedCertificateMigrator.java:51)
at com.vmware.vcloud.common.main.bootstrap.HttpEngineSslCertificateVerifier.migrateTrustedCertificates(HttpEngineSslCertificateVerifier.java:67)
at com.vmware.vcloud.common.main.bootstrap.HttpEngineSslCertificateVerifier.getCertificateStorePath(HttpEngineSslCertificateVerifier.java:47)
at com.vmware.vcloud.common.main.bootstrap.AbstractSslCertificateVerifier.canProceed(AbstractSslCertificateVerifier.java:37)
at com.vmware.vcloud.common.main.bootstrap.HttpEngineSslCertificateVerifier.canProceed(HttpEngineSslCertificateVerifier.java:24)
at com.vmware.vcloud.common.main.StartupVerifierRunnerStartupAction.call(StartupVerifierRunnerStartupAction.java:46)
at com.vmware.vcloud.common.main.DelegatingStartupAction.call(DelegatingStartupAction.java:33)
at com.vmware.vcloud.common.main.bootstrap.BootstrapApplication.start(BootstrapApplication.java:160)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.vmware.vcloud.common.main.CloudLauncher.launchCloud(CloudLauncher.java:403)
at com.vmware.vcloud.common.main.CloudLauncher.run(CloudLauncher.java:157)
at com.vmware.vcloud.common.main.CloudLauncher.main(CloudLauncher.java:119)
/opt/vmware/vcloud-director/etc/truststore
also gets corrupt and can be validated from below logs: /opt/vmware/vcloud-director/logs/
cell-management-tool.log
, you may see something similar to the following:2022-07-24 13:12:55,656 | ERROR | main | TrustStoreImporter | Keystore is malformed or the keystore password is incorrect. | java.io.EOFException
2022-07-24 13:12:55,657 | ERROR | main | ImportTrustedCertificatesCommand | Failed to extract or import certificates, consult cell-management-tool.log. | java.io.EOFException
/opt/vmware/vcloud-director/logs/vcloud-container-debug.log
, you may see something similar to the following: 2022-07-25 05:52:59,780 | WARN | CloudProxy Application | FileSystemTrustManager | Reloading local truststores failed |
Java.io.EOFException
2022-07-25 05:52:59,780 | WARN | CloudProxy Application | FileSystemTrustManager | Reloading local truststores failed |
Java.io.EOFException
/opt/vmware/vcloud-director/logs/cell-runtime.log
, you may see something similar to the following: 2022-07-25 05:52:56,809 | ERROR | Bootstrap Application | HttpEngineSslCertificateVerifier | Certificate migration failed. |
java.io.EOFException
VMware Cloud Director 10.2.1 and earlier
The cell goes inactive because the /opt/vmware/vcloud-director/etc/truststore file unexpectedly corrupts.
Note: The truststore file is only available for VMware Cloud Director version 9.7.0.1 to version 10.2.1
The resolution is as follows:
1. Put vmware-vcd service into maintenance mode.Impact/Risks: