DPC:修复由于 Docker 端口配置问题导致的 DPC IAM 服务故障
Summary: 本知识库文章为 DPC dp-iam 服务无法启动的问题提供了解决方案。这是由于 docker-compose.yml 文件中的端口配置问题造成的。根本原因是 IPv6 地址无效,冒号过多,导致容器构建过程中的误解。解决方法是编辑 docker-compose.yml 文件,将 IPv6 地址括在方括号中,然后重新启动 docker compose 服务。
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 工具中,请按照以下知识库文章安装 goidpa:
然后在 ACM 上运行以下命令:
./goidpa dpc yml-port-fix
提醒:如果问题仍然存在,请联系戴尔支持以获得进一步的帮助。
Additional Information
如果 goidpa 自动化过程失败,以下是此问题的手动步骤:
- 使用 PUTTY/SSH 以管理员身份登录到 DPC UI,然后通过 su 命令切换到 root 用户。
- 导航到包含 docker compose 文件的目录,其中包含以下内容:
cd /usr/local/dpc/lib/iam/bin
- 使用以下命令编辑“docker-compose.yml”文件:
vi docker-compose.yml
- 在 services部分下的 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"
- 在 services部分下的 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 compose 服务:
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.