"Panic: NOT_REACHED bora\vpx\common\vpxVmomi.cpp:786" error while starting the vCenter service
search cancel

"Panic: NOT_REACHED bora\vpx\common\vpxVmomi.cpp:786" error while starting the vCenter service

book

Article ID: 301214

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:
  • Unable to start the vCenter service.
  • In the vpxd.log file, you see entries similar to:

    ERROR Starting service: vpxd, Exception: (1056, 'Star
    tService', 'An instance of the service is already running.')
    ERROR:root:Unable to start service vpxd, Exception: {
    "resolution": null,
    "detail": [
    {
    "args": [
    "vpxd"
    ],
    "id": "install.ciscommon.service.failstart",
    "localized": "An error occurred while starting service 'vpxd'",
    "translatable": "An error occurred while starting service '%(0)s'"
    }
    ],
    "componentKey": null,
    "problemId": null
    }

    error vpxd[12672] [Originator@6876 sub=MoOptionMgr] [OptionMgr] Skipping bad entry config.vpxd.enableDebugBrowse from DB. Resetting to default.Exception: vmodl.fault.InvalidArgument

    error vpxd[02560] [Originator@6876 sub=Vmomi] [VpxVmomi] Double register of key: 'vm-2280' and name: ''

     
Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment

 


Environment

VMware vCenter Server 6.0.x

Cause

This error occurs when there are duplicate entries in the vCenter server database.

Resolution

To resolve the issue:
 
  1. Take a snapshot of the vCenter server.
  2. Navigate to C:\Program Files\VMware\vCenter Server\vPostgres\bin .
  3. Connect to the database running the command:

    psql -d VCDB -U vc
     
  4. Search for the name of the duplicate running the command:

    For example: Consider the VM causing the issue is identified with the name VM-2280.

    select id, file_name from VPX_VM group by id, file_name having count(id)
    > 1;
    id | vm-2280



    You will receive output similar to:

    id | file_name
    ------+-------------------------------------------------------------------------
    ---------------------------------------
    2280 | ds:///vmfs/volumes/Volume Name/VM name/(2)_replica/VM name.vmx
    2247 | ds:///vmfs/volumes/Volume Name/VM name/VM_name.vmx
    (2 rows)

     
  5. Once you have the ID matching the error message, you delete the matching ID with the command:

    For example: delete from VPX_VM where ctid=(select ctid from VPX_VM where ID=2247 LIMIT 1);

After the entry has been deleted, stop all the vCenter Services and try to start them again, it may fail with another ID number, so you need to delete all the entries that causes conflicts


Additional Information

简体中文:启动vCenter 服务时出现“紧急: NOT_REACHED bora\vpx\common\vpxVmomi.cpp:786 (Panic: NOT_REACHED bora\vpx\common\vpxVmomi.cpp:786)”错误