Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products

解決錯誤 503 服務無法使用無法連線至 VMware vCenter 中的端點

Summary: 使用 VMware vCenter 進行故障排除步驟,以解決錯誤 503「Service Unavailable Failed to connect to endpoint」。錯誤 503 可能是由各種情況所造成。系統會記錄兩個常見案例的解決方案。

This article applies to   This article does not apply to 

Symptoms

系統管理員可能無法存取 vCenter。他們可能發現 vpxd 和清查服務無法啟動。

錯誤訊息: 503 Service Unavailable Failed to connect to endpoint: [N7Vmacore4Http20NamedPipeServiceSpecE:0x00007f975808ee30] _serverNamespace = / action = Allow _pipeName =/var/run/vmware/vpxd-webserver-pipe)

Cause

此錯誤的原因可能多種。以下是兩種可能的情況:

案例 1

機器帳戶使用的密碼會定期自動重新整理。

此密碼儲存在 vCenter Server 上的機器帳戶,以及位於平臺服務控制器上的 VMware 目錄服務內。如果用於執行還原的備份會預先設定最新的密碼重新整理,則在還原時,機器帳戶無法登入 VMware 目錄服務。

此外,如果 vCenter Server 復原至快照狀態,而該狀態會在還原前預先完成密碼更新,則機器帳戶無法登入 VMware 目錄服務。
 


案例 2

使用 VSAN 資料存放區的內容庫時,ISO 會安裝在 vCenter UI 內任意數量的 VM 上,名稱很長。這會使資料庫的使用時間過長。

在檔案中 /var/log/vmware/vpxd.log ,最後一行讀取 string too largestring too large for database

Resolution

案例 1

若為 vCenter Server Appliance:

  1. 以根使用者身分使用 SSH 登入 vCenter Server。
  2. 執行 下列 shell 命令以切換至 BASH。
  3. 執行 下列命令以重設密碼:
    /usr/lib/vmware-vmafd/bin/dir-cli computer password-reset --login administrator --live-dc-hostname  --password  密碼>

    例如:
    /usr/lib/vmware-vmafd/bin/dir-cli computer password-reset --login administrator --live-dc-hostname mgmt01psc01.sfo01.rainpole.local --password 'VMware1!'

    密碼重設成功輸出:
    Password for machine account reset.
  4. 執行 下列命令以啟動 vCenter Server 服務:
    service-control --stop --all
    service-control --start --all


案例 2

請遵循 VMware KB 文章,因為錯誤而無法將主機連接至 vCenter:字串過大,無法連接至資料庫 (55610)此超連結會帶您前往 Dell Technologies 以外的網站。

本知識庫文章提到主機,但對 vCenter Server 有熟悉的影響。

如果這兩種情況都不適用,請使用此 VMware KB 文章進行額外的故障診斷:登入或存取 vCenter Server 時,vSphere Web 用戶端發生「503 Service Unavailable」錯誤 (67818)此超連結會帶您前往 Dell Technologies 以外的網站。

Additional Information

Affected Products

VxRail, VxRail Appliance Family

Products

VxRail Appliance Family