vcenter 503 service unavalilable servernamespace ERR
Debug记录:vCenter6.5突然不能访问并报错“503 Service Unavailable”
原文链接:http://blog.51cto.com/vmwareeuc/1969679
参考以上
我的是Vcenter6.7
这个错误 真是烦顶,重启是不管用的。
503 Service Unavailable (Failed to connect to endpoint: [N7Vmacore4Http20NamedPipeServiceSpecE:0x7f0782fb55f0] _serverNamespace = / _isRedirect = false _pipeName =/var/run/vmware/vpxd-webserver-pipe)
或类似以上的错误。可能会是以下原因
并且与此同时,无论如何重启vCenter都没有作用。此时,请不要慌张,只需按照如下的步骤,问题即可迎刃而解,并且数据中心的一切数据都完好如初:
1. 使用ssh或者直接从ESXi界面登陆到vCenter Applience虚机中,进入SHELL。。如果是windows的直接在CMD中进行安装目录的BIN目录下运行命令。
Last login: Thu Sep 28 10:05:40 2017 from 10.4.143.97
Connected to service
* List APIs: "help api list"
* List Plugins: "help pi list"
* Launch BASH: "shell"
Command> shell
Shell access is granted to root
vcenter 6.5 的服务是 vmware-vpxd
2. 输入如下命令:service-control --status vpxd看到状态为“Stopped”
3. 输入如下命令:service-control --start vpxd并不能启动相应服务
当确认了2,3两点后,继续执行:
4. 输入如下命令:/opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgres,此命令登陆postgres数据库
5. 输入如下命令,找到有问题的虚机:select v.id, v.local_file_name, h.IP_ADDRESS FROM VPX_VM v, VPX_NIC n, VPX_HOST h WHERE v.id=n.entity_id and v.host_id=h.id and n.network_name='';
6. 输入如下命令,请用5中得到的虚机id来替换本语句的“
7. 找到受影响的虚机后您有两个选择:
1)删除相应虚机以及删除相应记录:delete from vpx_entity where id = '
2)删除该虚机的网络适配器(Network Adepter) -> 保存 -> 添加网络适配器
8. 输入如下命令:service-control --start vpxd
您将可以看到您的vCenter可以访问了。
受影响的vCenter版本为:Version 6.5.0 Build 4944578,原因是在创建虚机的时候虚机数据库出现了网卡数据项空(NULL)值。
Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
C:\Users\Administrator>cd C:\Program Files\VMware\vCenter Server\bin
C:\Program Files\VMware\vCenter Server\bin>service-control --status –all
Failed to get service 鈥揳ll status. Err {
"componentKey": null,
"resolution": {
"id": "install.ciscommon.cmlookup.resolution",
"translatable": "Please refer to component manager documentation to troubleshoot.",
"localized": "Please refer to component manager documentation to troubleshoot."
},
"detail": [
{
"args": [
"\u2013all"
],
"id": "install.ciscommon.service.notfound",
"translatable": "Unable to locate service '%(0)s'",
"localized": "Unable to locate service '\u2013all'"
}
],
"problemId": null
}
Service-control failed. Error: {
"componentKey": null,
"resolution": {
"id": "install.ciscommon.cmlookup.resolution",
"translatable": "Please refer to component manager documentation to troubleshoot.",
"localized": "Please refer to component manager documentation to troubleshoot."
},
"detail": [
{
"args": [
"\u2013all"
],
"id": "install.ciscommon.service.notfound",
"translatable": "Unable to locate service '%(0)s'",
"localized": "Unable to locate service '\u2013all'"
}
],
"problemId": null
}
C:\Program Files\VMware\vCenter Server\bin> service-control --stop vspherewebclientsvc
Operation not cancellable. Please wait for it to finish...
Performing stop operation on service vsphere-client...
Successfully stopped service vsphere-client
C:\Program Files\VMware\vCenter Server\bin>service-control --start vspherewebclientsvc
Operation not cancellable. Please wait for it to finish...
Performing start operation on service vsphere-client...
Successfully started service vsphere-client
C:\Program Files\VMware\vCenter Server\bin> service-control --list-services
vapi-endpoint (VMware vAPI Endpoint)
perfcharts (VMware Performance Charts)
vsphere-client (VMware vSphere Web Client)
sca (VMware Service Control Agent)
vmware-cis-config (VMware vCenter Configuration Service)
vmcam (VMware vSphere Authentication Proxy)
vsm (VMware vService Manager)
VMwareIdentityMgmtService (VMware Identity Management Service)
netdumper (VMware vSphere ESXi Dump Collector)
vmon (VMware Service Lifecycle Manager)
rhttpproxy (VMware HTTP Reverse Proxy)
mbcs (VMware Message Bus Configuration Service)
content-library (VMware Content Library Service)
vmsyslogcollector (VMware Syslog Collector)
vsphere-ui (VMware vSphere Client)
vpxd-svcs (VMware vCenter-Services)
vsan-health (VMware VSAN Health Service)
VMwareDNSService (VMware Domain Name Service)
rbd (VMware vSphere Auto Deploy Waiter)
VMWareDirectoryService (VMware Directory Service)
sps (VMware vSphere Profile-Driven Storage Service)
cis-license (VMware License Service)
VMWareAfdService (VMware Authentication Framework)
eam (VMware ESX Agent Manager)
vpxd (VMware vCenter Server)
vmware-vpostgres (VMware Postgres)
cm (VMware Component Manager)
vmonapi (VMware Service Lifecycle Manager API)
VMWareCertificateService (VMware Certificate Service)
VMwareSTS (VMware Security Token Service)
imagebuilder (VMware Image Builder Manager)
C:\Program Files\VMware\vCenter Server\bin>service-control --status vpxd
Stopped:
vpxd
C:\Program Files\VMware\vCenter Server\bin>service-control --start vpxd
Operation not cancellable. Please wait for it to finish...
Performing start operation on service vpxd...
Successfully started service vpxd
C:\Program Files\VMware\vCenter Server\bin>

浙公网安备 33010602011771号