VMware Cloud Community
tcops
Contributor
Contributor

Web Client Problem vSphere 5

hi ,

i got a problem with vcenter on windows 2008 r2 (physical). just a complete new install that connects to an oracle db that was upgraded from vsphere 4.1 -> vsphere 5. Everything works fine except this message in the WebClient. I always get an popup that my vCenter inventory service is not reachable. it is possible to search the inventory, also you can connect to the service site from the inventory service (https://servername:10443) and get an response. so i think everything works fine, but sporadic this message appears.

Anyone got the same problem, perhaps a solution ? Thx in advance.

oliver

0 Kudos
21 Replies
admin
Immortal
Immortal

HI

Can you send the screenshot of the message? Also have you tried looking into this community link http://communities.vmware.com/message/1816679 to check if this fix the issue?

Thanks

Aakash

0 Kudos
tcops
Contributor
Contributor

Sorry for delay. Here the Screenshot you requested. The Interesting thing here is that when i´m logged on i see everything as expected. My Hosts, VM´s, Datastores etc. Everything works as it should only this message appears randomly.

WebClient-Meldung1.jpg

0 Kudos
admin
Immortal
Immortal

Have you tried the fix provided in the lin  I provided in the previous reply.

0 Kudos
tcops
Contributor
Contributor

Hi ,

jep registered the Server again with the skript, but changes nothing. Still the same message.:smileycry:

0 Kudos
mbmw8268
Contributor
Contributor

I have the same problem and manaully run the register.bat script did not help.

0 Kudos
cattbrie
Contributor
Contributor

i have same problem. When i try to connect web client, i take connection error which is "unable to connect to vcenter inventory service - https://domain.local:10443" (adress is fine, i used the register.bat and i was corrected it)

i look to the .../inventory services/scripts/script.log

statement say that

caused by: org.apache.http.conn.HttpHostConnectException: Connection to https://domain.local:10443 refused

i look to the services:

vCenter Inventory Services configuration is Automatic. I cannot start it manually(is this should start manually?)

(i think that my problem's root is this. ) But i cannot find how could i start it manually...

Please help...

thanks

0 Kudos
ifonul
Contributor
Contributor

Exact same problem here. Nothing shows up in the inventory due to this.

Re-registered the web client, restarted all services, blah... blah... nothing helps.

An additional fact: if I login as local Administrator on vCenter Server machine, it works, if I loging as a domain user (with admin priviledges), it does not.

Why so compilicated? Why not a simple additional service that you have to start/stop on your vcenter? Why even that? Why not running by default?

0 Kudos
Argyle
Enthusiast
Enthusiast

I had this same problem. This occured since "vCenter Inventory Service" on our Windows vCenter Server was in a stopped state. I started it (took a couple of minutes) via Administrative Tools->Services in Windows and now its working with Web Client.

I assume the service was down since I had stopped the normal "VMware Virtual Center" service to do a change. If "vCenter Inventory Service" is depdendant on "VMware Virtual Center" service it will not automatically restart if you stop it.

If it still doesn't work it might help to reset the DB:

Reset the vCenter Inventory Service Database

http://pubs.vmware.com/vsphere-50/index.jsp?topic=/com.vmware.vsphere.install.doc_50/GUID-9C65879E-7...

0 Kudos
morrisosu
Contributor
Contributor

Anyone have any updates on this issue?  I am having the same exact issue and resetting the DB and re-registering the vCenter server did not remove the error message.  The web client works fine however that error will hose up the user's experience.

Thanks!

Shane

0 Kudos
RParker
Immortal
Immortal

Must be a bug in the Windows version, the appliance doesn't have this issue.. Another reason we need to have separate groups for the vCenter Appliance and vCenter Windows

0 Kudos
ifonul
Contributor
Contributor

This is most certainly a bug, I ended up reinstalling vCenter Server.

0 Kudos
mbmw8268
Contributor
Contributor

Finally I got the Web Client working (no more "unable to connect to http://localhost:10443" error when login) by re-install vCenter Server with build-in MS SQL Express, instead of manually create ODBC connection since I was migrating database from vCenter 4.1. This is mostlikely a bug when Web Client Inventory server/service trying to communicate with vCetner database.

0 Kudos
ilazzari
Contributor
Contributor

If this is indeed a bug, will there be a fix for it?

I am running vcenter on a full SQL 2008 R2 instance so obviously don't want to reinstall using Express.

Again, the web client functions normally but the error message at logon is frustrating.

0 Kudos
arika
Contributor
Contributor

If you are seeing "Unable to connect to the vCenter Inventory Service on <VC_HOSTNAME>" and not
"Unable to connect  to the vCenter Inventory Service - https://<VC_HOSTNAME>:10443" ; then

you may have restored the vCenter from the DB backup/SSL cert.

Suppose you are running the vCenter in non-linked mode :

1. Login to VC machine. Open up a browser, to https://localhost/mob/?moid=ServiceDirectory
login as an administrator

you see service name with value:

  • servcie ["<SERVICE_ID_A/VIMWEBSVC"]   <=== one of these is not correct
  • servcie ["<SERVICE_ID_B/VIMWEBSVC"]   <===
  • servcie ["<SERVICE_ID_C/VIMAPI"]
  • servcie ["<SERVICE_ID_C/VIMWEBSVC"]

you can try to delete SERVICE_ID_A/VIMWEBSVC or SERVICE_ID_B/VIMWEBSVC and restart the vCenter server service to see if it resolves the issue.

2. Click UnregisterService
3. Type in "<SERVICE_ID_A>/VIMWEBSVC" for the serviceKey
4. Hit "Invoke Method"

5. Restart VMware vCenter Server Service with dependent services(Inventory Service/Management WebServices)

If SERVICE_ID_A was not the correct one to delete, it should be re-populated and re-appears in the https://localhost/mob/?moid=ServiceDirectory after restarting the service.

If that is the case, delete SERVICE_ID_B and restart the service again.

Plese backup vCenter before you try Smiley Happy

HTH.

0 Kudos
ilazzari
Contributor
Contributor

Hi,

Thanks for the advice.

Please see my services below as I’m unable to make out which are services A or B which you have specified in your example.

Name

Type

Value

service

ServiceEndpoint[]

· service["3718F1F6-D564-47AC-8113-6AB49B2CC982/VIMAPI"]<https://localhost/mob/?moid=ServiceDirectory&doPath=service%5b%223718F1F6%2dD564%2d47AC%2d8113%2d6AB49B2CC982%2fVIMAPI%22%5d>

· service["3718F1F6-D564-47AC-8113-6AB49B2CC982/VIMWEBSVC"]<https://localhost/mob/?moid=ServiceDirectory&doPath=service%5b%223718F1F6%2dD564%2d47AC%2d8113%2d6AB49B2CC982%2fVIMWEBSVC%22%5d>

· service["d1d2ec7b-da21-4c35-9e89-6a647e00df99/VIMWEBSVC"]<https://localhost/mob/?moid=ServiceDirectory&doPath=service%5b%22d1d2ec7b%2dda21%2d4c35%2d9e89%2d6a647e00df99%2fVIMWEBSVC%22%5d>

· service["d24f31f0-9fc4-4f33-bbb8-f2f909036a1b/VIMWEBSVC"]<https://localhost/mob/?moid=ServiceDirectory&doPath=service%5b%22d24f31f0%2d9fc4%2d4f33%2dbbb8%2df2f909036a1b%2fVIMWEBSVC%22%5d>

Regards

Ian

0 Kudos
arika
Contributor
Contributor

If you stop vCenter Inverntory Service, you should see

Shutting down jGroup server channel at SERVICE_ID...

in %allusersprofile%\VMware\Infrastructure\Inventory Servcie\Logs\ds.log

This SERVICE_ID is the one you want to keep, please try the other one.

Regards

0 Kudos
xtremembassist
Contributor
Contributor

Came across the same problem and this was the fix:

  1. Unregister vCenter from the web client admin section
  2. Follow the instructions in this post: http://communities.vmware.com/message/1816679
  3. Uninstall the web service and reboot! The reboot is important.
  4. Reinstall the web service and re-register vCenter.

This way you do not have to re-install vCenter.

0 Kudos
dmancole
Contributor
Contributor

I have followed all these instructions and still getting the error 'Unable to connect to vCenter Inventory Service'?  Am I the only one still seeing this?

0 Kudos
arika
Contributor
Contributor

Are you sure the message is

"Unable to connect to the vCenter Inventory Service on <VC_HOSTNAME>" and not
"Unable to connect to the vCenter Inventory Service - https://<VC_HOSTNAME>:10443" ?

These are different.

Do you still see the stale entry in

https://localhost/mob/?moid=ServiceDirectory  ?

You may need to update the xml file and replace the <instanceUuid> to correct one.

%programfiles%\vmware\infrastructure\virtualcenter server\endpoints\qs-endpoint.xml

<instanceUuid><SERVICE_ID></instanceUuid>

0 Kudos