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

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

book

Article ID: 301213

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:
免责声明: 本文是 "Panic: NOT_REACHED bora\vpx\common\vpxVmomi.cpp:786" error while starting the vCenter service (2150902) 的翻译版本。 尽管我们会不断努力为本文提供最佳翻译版本,但本地化的内容可能会过时。 有关最新内容,请参见英文版本。

 
  • 无法启动 vCenter 服务。
  • vpxd.log 文件中,您会看到类似以下内容的条目:

    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: ''

     
注意:上述日志摘录仅为示例。日期、时间和环境变量可能会因环境而有所不同。

Environment

VMware vCenter Server 6.0.x

Cause

当 vCenter Server 数据库中有重复条目时,会出现此错误。

Resolution

要解决此问题,请执行以下操作:
 
  1. 生成 vCenter Server 的快照。
  2. 导航到 C:\Program Files\VMware\vCenter Server\vPostgres\bin
  3. 运行以下命令连接到数据库:

    psql -d VCDB -U vc
     
  4. 运行以下命令搜索重复条目名称:

    例如:考虑使用名称 VM-2280 标识导致此问题的虚拟机。

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



    您会收到类似以下内容的输出:

    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. 一旦您有 ID 匹配错误消息,请使用以下命令删除匹配的 ID:

    例如:delete from VPX_VM where ctid=(select ctid from VPX_VM where ID=2247 LIMIT 1);

删除该条目后,停止所有 vCenter 服务并尝试重新启动它们,可能会因为另一个 ID 号而失败,因此您需要删除导致冲突的所有条目