VMware Cloud Community
shsinha
Contributor
Contributor

vCenter Appliance failing at 2nd stage with hvc service failed error.

Hello Team

I'm trying to install vCenter 7.0.3 over an ESXi.
The 1st stage is getting by smoothly.
On 2nd stage, I'm getting error - An error occurred while starting service 'hvc' and the progress gets interrupted 

On further debugging, I have the following in logs -

root@localhost [ /var/log/firstboot ]# cat hvc_firstboot.py_9254_stderr.log
2022-01-28T06:37:50.796Z  ERROR starting hvc rc: 1, stdout: , stderr: Start service request failed. Error: Operation timed out

Traceback (most recent call last):
  File "/usr/lib/vmware-hvc/firstboot/hvc_firstboot.py", line 217, in Main
    hvcsvc_fb.start_hvcsvc()
  File "/usr/lib/vmware-hvc/firstboot/hvc_firstboot.py", line 54, in start_hvcsvc
    self.start_service()
  File "/usr/lib/vmware/site-packages/cis/firstboot.py", line 266, in start_service
    service_start(self.get_eff_service_name())
  File "/usr/lib/vmware/site-packages/cis/utils.py", line 1087, in service_start
    raise ServiceStartException(svc_name)
cis.exceptions.ServiceStartException: {
    "detail": [
        {
            "id": "install.ciscommon.service.failstart",
            "translatable": "An error occurred while starting service '%(0)s'",
            "args": [
                "hvc"
            ],
            "localized": "An error occurred while starting service 'hvc'"
        }
    ],
    "componentKey": null,
    "problemId": null,
    "resolution": null
}
2022-01-28T06:37:50.800Z  HybridVC Service firstboot failed due to <cis.componentStatus.ErrorInfo object at 0x7f6b5130b490>

 

root@localhost [ ~ ]# cat /storage/log/vmware/vmon/vmon.log
...
2022-01-28T05:27:50.747Z Wa(03) host-13149 <hvc> Service api-health command's stderr: Error getting service health. Error: Failed to read health xml file: /usr/lib/vmware-hvc/hvc-health.xml. Error: [Errno 2] No such file or directory: '/usr/lib/vmware-hvc/hvc-health.xml'
2022-01-28T05:27:50.762Z Wa(03) host-13149 <hvc> Service api healthcheck command returned unknown exit code 1
...
2022-01-28T05:27:57.074Z Wa(03) host-13149 <hvc> Service api-health command's stderr: Error getting service health. Error: Failed to read health xml file: /usr/lib/vmware-hvc/hvc-health.xml. Error: [Errno 2] No such file or directory: '/usr/lib/vmware-hvc/hvc-health.xml'
2022-01-28T05:27:57.074Z Wa(03)+ host-13149
2022-01-28T05:27:57.110Z Wa(03) host-13149 <hvc> Service api healthcheck command returned unknown exit code 1
...
2022-01-28T05:28:11.094Z In(05) host-13149 <hvc> Running the API Health command as user
2022-01-28T05:28:11.094Z In(05) host-13149 <hvc-healthcmd> Constructed command: /usr/bin/python /usr/lib/vmware-vmon/vmonApiHealthCmd.py -n hvc -f /usr/lib/vmware-hvc/hvc-health.xml -t 30
2022-01-28T05:28:16.473Z Wa(03) host-13149 <hvc> Service api-health command's stderr: Error getting service health. Error: Failed to read health xml file: /usr/lib/vmware-hvc/hvc-health.xml. Error: [Errno 2] No such file or directory: '/usr/lib/vmware-hvc/hvc-health.xml'
2022-01-28T05:28:16.473Z Wa(03)+ host-13149
2022-01-28T05:28:16.510Z Wa(03) host-13149 <hvc> Service api healthcheck command returned unknown exit code 1
2022-01-28T05:28:16.510Z In(05) host-13149 <hvc> Re-check service health since it is still initializing.
2022-01-28T05:28:17.511Z In(05) host-13149 <hvc> Running the API Health command as user
2022-01-28T05:28:17.512Z In(05) host-13149 <hvc-healthcmd> Constructed command: /usr/bin/python /usr/lib/vmware-vmon/vmonApiHealthCmd.py -n hvc -f /usr/lib/vmware-hvc/hvc-health.xml -t 30
...

 

root@localhost [ ~ ]# ls -lrt /usr/lib/vmware-hvc/
total 16
drwxr-xr-x 3 root root 4096 Jan 28 04:49 site-packages
dr-xr-xr-x 2 root root 4096 Jan 28 04:49 firstboot
dr-xr-xr-x 3 root root 4096 Jan 28 04:49 config
drwxr-xr-x 2 root root 4096 Jan 28 04:49 lib
root@localhost [ ~ ]#

I'm stuck here and unable to find the solution for these error in any of the vmware support/community forms.

Let me know if any more info is required.

 

PS - In case this is not the correct forum for this question, please redirect 

0 Kudos
8 Replies
scott28tt
VMware Employee
VMware Employee

Thread reported so a moderator can move your thread to the area for vCenter Server.

 


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
0 Kudos
JasonJLevine
Contributor
Contributor

Has a solution been found? I have been fighting with a brand new vCenter appliance 7.0.3 installation for two days now and am currently stuck on this same error.

0 Kudos
Ajay1988
Expert
Expert

Please connect with support. There isn't enough information to help. Please raise a SR with support and upload the upgrade failure logs

If you think your queries have been answered
Mark this response as "Correct" or "Helpful".

Regards,
AJ
0 Kudos
cheesedog
Contributor
Contributor

I have been working with support for the past month.  Any fix found?

0 Kudos
jaroy
Contributor
Contributor

Я получил такую ошибку когда установочный iso был примонтирован через сеть, после того как скопировал его на локальную машину и запускал установку повторно, все прошло без ошибок.

0 Kudos
samans1
Contributor
Contributor

I have a exact same problem,
did you find any solution ?

 

0 Kudos
maksym007
Expert
Expert

strange we had no issues

0 Kudos
kinshukt1
Contributor
Contributor

I had an exact situation, Tried mounting the ISO image (vCenter Installer ISO) locally to a Windows instance which was participating on the same portgroup as of the source vCenter. This worked for me.