DPC:修正由於 Docker 連接埠組態問題導致的 DPC IAM 服務失敗問題。
Summary: 本知識文章針對 DPC dp-iam 服務無法啟動的問題提供解決方案。當這是由於 docker-compose.yml 檔中的埠配置問題造成的。根本原因是冒號過多的無效 IPv6 位址,導致容器構建過程中的誤解。解決方法是編輯 docker-compose.yml 檔案,將 IPv6 位址括在方括弧中,然後重新啟動 docker 撰寫服務。
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 的 dp-iam 服務已關閉。
- 當您嘗試啟動該服務時,它會失敗。
- 在 /var/log/dpc/iam/dp_iam.log 中,您會看到下列錯誤:
error decoding 'ports': Invalid ip address ::1: address ::1:: too many colons in address
- 上述錯誤也可能出現在 /var/log/dpc/install/intstall.log 中。
Cause
此問題是由docker-compose.yml檔中的配置問題引起的。IPv6 位址包含“::”,這會導致系統誤解容器生成的埠。
/var/log/dpc/iam/dp_iam.log 檔案中的錯誤訊息指出系統無法正確剖析 IPv6 位址。
Resolution
注意:此問題的修正已新增至 goidpa 工具,請遵循以下 KB 安裝 goidpa:
然後在 ACM 上執行下列命令:
./goidpa dpc yml-port-fix
注意:如果問題仍然存在,請聯絡 Dell 支援以取得進一步協助。
Additional Information
如果 goidpa 自動化程序失敗,以下是此問題的手動步驟:
- 使用 PUTTY/SSH 以系統管理員和 su- 身分登入 DPC UI 至根使用者。
- 使用下列內容瀏覽至包含 docker 撰寫檔案的目錄:
cd /usr/local/dpc/lib/iam/bin
- 使用下列命令編輯「docker-compose.yml」檔案:
vi docker-compose.yml
- 在「服務」部分的「iam-provider」部分中編輯埠,如下所示:
ports:
- "127.0.0.1:8143:8443"
- "::1:8143:8443"
Change this by putting square brackets around the IPv6 address, "::1" as follows:
ports:
- "127.0.0.1:8143:8443"
- "[::1]:8143:8443"
- 在「服務」部分的「iam-service」部分中編輯埠,如下所示:
ports:
- "127.0.0.1:8870:8870"
- "::1:8870:8870"
Change this by putting square brackets around the IPv6 address, "::1" as follows:
ports:
- "127.0.0.1:8870:8870"
- "[::1]:8870:8870"
- 按一下「ESC」鍵,然後輸入以下內容,以退出 vi 編輯器:
:x
- 使用下列命令重新啟動 docker 撰寫服務:
docker-compose down docker-compose up -d
- 使用下列命令重新啟動 msm-elg 服務:
service msm-elg restart
Affected Products
Data Protection CentralArticle Properties
Article Number: 000228776
Article Type: Solution
Last Modified: 24 Apr 2025
Version: 4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.