DPC 19.10 升級顯示 UI「無法連線至本機主機」
Summary: 升級至 DPC 19.10 後,DPC UI 會顯示「無法連線至本機主機/127.0.0.1:8143」。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Symptoms
升級至 DPC 19.10 後,您無法存取 DPC UI。
檢查 /var/log/dpc/elg/elg.log 檔案時,您會看到下列錯誤:
2024-05-09 13:34:54,911 DEBUG reactor-http-epoll-4 c.d.i.i.k.c.IAMCliRunner Received error during execution: finishConnect(..) failed: Connection refused: localhost/127.0.0.1:8143; nested exception is io.netty.channel.AbstractChannel$AnnotatedConnectException: finishConnect(..) failed: Connection refused: localhost/127.0.0.1:8143
執行 docker ps 命令顯示 Keycloak 容器已「EXITED」:
/data01/docker/volumes/keycloak-postgres-db/_data # docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 05dd8ebc74e8 dpd/dpc/iam-service:latest "java -cp iam:iam/li…" 52 minutes ago Up 48 minutes 127.0.0.1:8870->8870/tcp, ::1:8870->8870/tcp iam-service 34a6b3c4c5c4 dpd/dpc/dp-keycloak:2.3.0-2 "/opt/keycloak/bin/k…" 52 minutes ago Exited (127) 10 minutes ago iam-provider df560f07da93 dpd/dpc/postgres-db:2.3.0-2 "docker-entrypoint.s…" 52 minutes ago Up 49 minutes (healthy) 5432/tcp postgres-db
檢查 docker 記錄時,您會收到以下錯誤:
/data01/docker/volumes/keycloak-postgres-db/_data # docker logs --tail 100 34a6b3c4c5c4 Fatal glibc error: CPU does not support x86-64-v2
Cause
在 DPC 19.10 (Keycloak 21) 中使用的 Keycloak 版本需要 x86-64-v2 或以上的 CPU 類型。
為 DPC 建立的虛擬機器沒有該類型的 CPU,因此 Keycloak 容器正在退出且未執行。
Resolution
此問題可能是由幾個問題所造成。
- ESXi 主機不支援 x86-64-v2,2008 年以後製造的大多數處理器都支援此微體系結構。
- 虛擬機器可能是在沒有此微體系結構支持的情況下構建的。
要解決此問題,請確定您的主機是否支援 x86-64-v2。
- 如果是這樣,則可以部署配置了該微體系結構的新 VM,然後在該 VM 上部署 DPC。
- 如果不支援,您必須找到支援此微體系結構的主機,並將 DPC VM 放在該主機。
若要檢查 VM 是否支援此功能,請在 Linux VM 上建立包含以下內容的 cpuinfo.sh 指令檔:
#!/usr/bin/awk -f
BEGIN {
while (!/flags/) if (getline < "/proc/cpuinfo" != 1) exit 1
if (/lm/&&/cmov/&&/cx8/&&/fpu/&&/fxsr/&&/mmx/&&/syscall/&&/sse2/) level = 1
if (level == 1 && /cx16/&&/lahf/&&/popcnt/&&/sse4_1/&&/sse4_2/&&/ssse3/) level = 2
if (level == 2 && /avx/&&/avx2/&&/bmi1/&&/bmi2/&&/f16c/&&/fma/&&/abm/&&/movbe/&&/xsave/) level = 3
if (level == 3 && /avx512f/&&/avx512bw/&&/avx512cd/&&/avx512dq/&&/avx512vl/) level = 4
if (level > 0) { print "CPU supports x86-64-v" level; exit level + 1 }
exit 1
}
然後 chmod +x 這個指令檔檔案,然後使用下列命令執行:
./cpuinfo.sh
如果獲得以下輸出,則支援它:
./cpu-type.sh CPU supports x86-64-v2
Article Properties
Article Number: 000225024
Article Type: Solution
Last Modified: 14 May 2024
Version: 1
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.