Debug記錄:vCenter6.5突然不能訪問(wèn)并報(bào)錯(cuò)“50

當(dāng)您欣喜地使用著vCenter6.5對(duì)自己心愛(ài)的數(shù)據(jù)中心進(jìn)行管理的時(shí)候,不知某一時(shí)刻突然在界面上出現(xiàn)了如下畫(huà)面:?
503 Service Unavailable (Failed to connect to endpoint: [N7Vmacore4Http20NamedPipeServiceSpecE:0x7f0782fb55f0] _serverNamespace = / _isRedirect = false _pipeName =/var/run/vmware/vpxd-webserver-pipe)?
并且與此同時(shí),無(wú)論如何重啟vCenter都沒(méi)有作用。此時(shí),請(qǐng)不要慌張,只需按照如下的步驟,問(wèn)題即可迎刃而解,并且數(shù)據(jù)中心的一切數(shù)據(jù)都完好如初:?
?1.?使用ssh或者直接從ESXi界面登陸到vCenter Applience虛機(jī)中,進(jìn)入SHELL ?????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 2.?輸入如下命令:service-control --status vmware-vpxd看到狀態(tài)為“Stopped” 3.?輸入如下命令:service-control --start vmware-vpxd并不能啟動(dòng)相應(yīng)服務(wù)當(dāng)確認(rèn)了2,3兩點(diǎn)后,繼續(xù)執(zhí)行:?
?4.?輸入如下命令:/opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgres,此命令登陸postgres數(shù)據(jù)庫(kù)?5.?輸入如下命令,找到有問(wèn)題的虛機(jī):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.?輸入如下命令,請(qǐng)用5中得到的虛機(jī)id來(lái)替換本語(yǔ)句的“<YOURID>”:select * from vpx_entity where id = '<YOURID>'; ??7.?找到受影響的虛機(jī)后您有兩個(gè)選擇: ?????1)刪除相應(yīng)虛機(jī)以及刪除相應(yīng)記錄:delete from vpx_entity where id = '<YOURID>'; ??????2)刪除該虛機(jī)的網(wǎng)絡(luò)適配器(Network Adepter) ->?保存?->?添加網(wǎng)絡(luò)適配器 ?8.?輸入如下命令:service-control --start vmware-vpxd ?????您將可以看到您的vCenter可以訪問(wèn)了。受影響的vCenter版本為:Version 6.5.0 Build 4944578,原因是在創(chuàng)建虛機(jī)的時(shí)候虛機(jī)數(shù)據(jù)庫(kù)出現(xiàn)了網(wǎng)卡數(shù)據(jù)項(xiàng)空(NULL)值。
了解更多相關(guān)內(nèi)容歡迎關(guān)注http://www.vecloud.com/