I was doing some upgrades in my lab and ran in to an issue. Whenever I started the vCenter Web Client I got a message that the vCenter Inventory Service wasn’t running. I looked at my Services section in Windows 2008 and found that it wasn’t started. Starting it gave me a new error: 1067. This is very generic but I figured I would google it anyway. That actually brought me to our own documentation, yes I should check that first next time, and it mentioned I could reset the inventory service as follows:
- Stop the service (was already stopped)
- Delete the entire contents of the Inventory_Service_Directory/data directory
- Change directory to Inventory_Service_directory/scripts
- Run the createDB.bat command, with no arguments, to reset the vCenter Inventory Service database
- Run the register.bat command to update the stored configuration information of the Inventory Service
register.bat vcenter-tm01.testlab.local 443 - Restart the vCenter Inventory Service
I also had to re-register the Web Client to vCenter Server. This is what I had to do:
- admin-cmd.bat register https://vcenter-tm01.testlab.local:9443/vsphere-client https://vcenter-tm01.testlab.local administrator password
Hope it helps,
Hank_Q says
Hi Duncan,
I got the same problem with teh Inventory Service, but for me these workaround doesn´t work.
After running the “register.bat” the script show these “error” ->
java.io.IOException: failed to decrypt safe contents entry: javax.crypto.BadPadd
ingException: Given final block not properly padded
at com.sun.net.ssl.internal.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeySt
ore.java:1277)
at java.security.KeyStore.load(KeyStore.java:1185)
at com.vmware.vim.dataservices.provider.util.KeyStoreUtil.loadKeyStore(K
eyStoreUtil.java:53)
at com.vmware.vim.dataservices.provider.util.SetupLocalService.connectVc
(SetupLocalService.java:117)
at com.vmware.vim.dataservices.provider.util.SetupLocalService.setupWith
RunningVpxd(SetupLocalService.java:167)
at com.vmware.vim.dataservices.provider.util.SetupLocalService.main(Setu
pLocalService.java:453)
Caused by: javax.crypto.BadPaddingException: Given final block not properly padd ed
at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
at com.sun.crypto.provider.PKCS12PBECipherCore.b(DashoA13*..)
at com.sun.crypto.provider.PKCS12PBECipherCore$PBEWithSHA1AndRC2_40.engi
neDoFinal(DashoA13*..)
at javax.crypto.Cipher.doFinal(DashoA13*..)
at com.sun.net.ssl.internal.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeySt
ore.java:1274)
… 5 more
EXECUTION FAILED
—-
any idea ?
thanks
Stefan A. says
I have the same problem.
Have anyone a idea?
Chris Nakagaki says
What happens when you reset vCenter Inventory Service database? Is it just indexing information that gets deleted or is it more than that?