VMware Cloud Community
bear1001
Contributor
Contributor

"I accidentally deleted the key pair, which caused vpxd to fail to start."

2023-07-28T16:35:52.441+08:00 error vpxd[7FC2C9B11800] [Originator@6876 sub=CryptHelper] [static int Vpx::Common::CryptHelper::ReadBioLine(BIO*, char*, int)] invalid line read 2023-07-28T16:35:52.441+08:00 error vpxd[7FC2C9B11800] [Originator@6876 sub=vpxCrypt] [bool VpxCrypterSym::SetKey(const char*)] error reading key from file /etc/vmware-vpx/ssl/symkey.dat: -1 2023-07-28T16:35:52.441+08:00 error vpxd[7FC2C9B11800] [Originator@6876 sub=vpxCrypt] [VpxCrypterSym::VpxCrypterSym(const string&)] error in setting key for symmetric encryption 2023-07-28T16:35:52.442+08:00 error vpxd[7FC2C9B11800] [Originator@6876 sub=Crypter] [static bool Vpxd::Crypter::Init()] Failed to init vpxd crypter based on symmetric key using file /etc/vmware-vpx/ssl/symkey.dat with error: VpxCrypterSym init failed: error in setting key for symmetric encryption 2023-07-28T16:35:52.442+08:00 error vpxd[7FC2C9B11800] [Originator@6876 sub=Main] Init failed. SystemError: N5Vmomi5Fault11SystemError9ExceptionE(vmodl.fault.SystemError) --> [context]zKq7AVECAAAAAA1oDAEKdnB4ZAAAlNIrbGlidm1hY29yZS5zbwAAgicbAN5pGAGCFFV2cHhkAAGXFlUBHG5VAWc8VQGa31MCwAUCbGliYy5zby42AAGl11M=[/context] 2023-07-28T16:35:52.444+08:00 error vpxd[7FC2C9B11800] [Originator@6876 sub=Default] Failed to intialize VMware VirtualCenter. Shutting down 2023-07-28T16:35:52.444+08:00 info vpxd[7FC2C9B11800] [Originator@6876 sub=SupportMgr] Wrote uptime information 2023-07-28T16:35:52.447+08:00 error vpxd[7FC2C9B11800] [Originator@6876 sub=Default] Alert:false@ bora/vpx/vpxd/util/vdb.cpp:509 --> Backtrace: --> [backtrace begin] product: VMware VirtualCenter, version: 6.5.0, build: build-17590285, tag: vpxd, cpu: x86_64, os: linux, buildType: release --> backtrace[00] libvmacore.so[0x002BD2AC]: Vmacore::System::Stacktrace::CaptureFullWork(unsigned int) --> backtrace[01] libvmacore.so[0x001B2876]: Vmacore::System::SystemFactoryImpl::CreateBacktrace(Vmacore::Ref<:system::backtrace>&) --> backtrace[02] libvmacore.so[0x00178B49]: Vmacore::Service::Alert(char const*, char const*, int) --> backtrace[03] vpxd[0x00A45D3D] --> backtrace[04] vpxd[0x00552489] --> backtrace[05] vpxd[0x00553CD9] --> backtrace[06] vpxd[0x0053DF9A] --> backtrace[07] libc.so.6[0x000205C0] --> backtrace[08] vpxd[0x0053D7A5] --> [backtrace end] 2023-07-28T16:35:52.447+08:00 info vpxd[7FC2C9B11800] [Originator@6876 sub=vpxdVdb] Registry Item DB 5 value is '' 2023-07-28T16:35:52.448+08:00 info vpxd[7FC2C9B11800] [Originator@6876 sub=vpxdVdb] Setting VDB delay statements queue size to 7000 transactions for 7 GB RAM dedicated to vpxd. 2023-07-28T16:35:52.448+08:00 info vpxd[7FC2C9B11800] [Originator@6876 sub=vpxdVdb] [VpxdVdb::SetDBType] Logging in to DSN: VMware VirtualCenter with username vc 2023-07-28T16:35:52.449+08:00 error vpxd[7FC2C9B11800] [Originator@6876 sub=CryptUtil] [static bool Vpx::Common::CryptUtil::UnmungePasswordToBuffer(VpxDecrypter*, const string&, char*, size_t)] invalid decrypter 2023-07-28T16:35:52.449+08:00 error vpxd[7FC2C9B11800] [Originator@6876 sub=Default] [Vdb::IsRecoverableErrorCode] Unable to recover from 00000:0 2023-07-28T16:35:52.449+08:00 error vpxd[7FC2C9B11800] [Originator@6876 sub=vpxdVdb] [VpxdVdb::SetDBType]: Database error: ODBC error: (00000) - 2023-07-28T16:35:52.449+08:00 error vpxd[7FC2C9B11800] [Originator@6876 sub=Default] Error getting configuration info from the database 2023-07-28T16:35:52.449+08:00 warning vpxd[7FC2C9B11800] [Originator@6876 sub=Main] Database not initialized. Nothing to unlock 2023-07-28T16:35:52.449+08:00 info vpxd[7FC2C9B11800] [Originator@6876 sub=Default] Forcing shutdown of VMware VirtualCenter now
Reply
0 Kudos
1 Reply
Brisk
Enthusiast
Enthusiast

If you deleted your certificate, your best bet is to reset the certificates and have vCenter regenerate new ones. Afterwards you can always replace it with your own PKI certificate.

/usr/lib/vmware-vmca/bin/certificate-manager and use option 4 first to see if that works. If it doesn't you can always try option 8.

More info --> https://kb.vmware.com/s/article/2112283