Unable to start vpxd service it gives Error - Service name 'vpxd' is invalid
search cancel

Unable to start vpxd service it gives Error - Service name 'vpxd' is invalid

book

Article ID: 381359

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Unable to start vpxd service

Error - Service name 'vpxd' is invalid

 

If we manually start the service :

service-control --start vpxd
Operation not cancellable. Please wait for it to finish...
Performing start operation on service vpxd...
Error: Invalid input provided to get startType ofservice vpxd.
Error executing start on service cm. Details Error: startType of svc: vpxd rc : 6 stdout:  stderr: Service Get State request failed. Error: Invalid input data
Service-control failed. Error: Error: startType of svc: vpxd rc : 6 stdout:  stderr: Service Get State request failed. Error: Invalid input data

Environment

vCenter version - 7.0

Cause

The issue is occurred due to inappropriate vpxd.json file changes.   

Resolution

  • Steps to Unmask the Service if it is Masked
    • Verify if the service is masked.
    • If the service is masked, proceed to unmask it.

Unmasking the service

  • Take a snapshot of the vCenter VM

    • If the vCenter is in linked mode, ensure to take an offline snapshot.
    • If the vCenter has VCHA (vCenter High Availability) enabled, destroy the VCHA before taking the snapshot.
  • Navigate to the service statistics directory

    Open the SSH session of the vCenter and run the following command:

    cd /storage/vmware-vmon/.svcStats
  • Backup the vpxd.json file

    Run the following command to create a backup of the vpxd.json file:

    mv /storage/vmware-vmon/.svcStats/vpxd.json /var/tmp/vpxd.json-bkp
  • Stop and restart vCenter services

    To restart all vCenter services, execute the following commands:

           service-control --stop --all  &&  service-control --start --all

  • Confirm that the vpxd service has restarted

    After the restart, verify that the vpxd service has started properly.