gpt4 book ai didi

docker - Netflix Conductor 服务器本地 docker 容器不健康

转载 作者:行者123 更新时间:2023-12-01 20:22:21 24 4
gpt4 key购买 nike

我正在按照步骤here进行操作在我的桌面上本地安装并运行 Netflix Conductor。我正在尝试使用 docker-compose 来启动所有服务。在出现了错误的 docker 版本、docker compose 版本、docker compose 构建问题(使用 this 解决)的初始问题之后,我遇到了此错误的障碍 -

/conductor/docker$ sudo docker-compose up

docker_elasticsearch_1 is up-to-date

docker_dynomite_1 is up-to-date

ERROR: for conductor-server Container "a89b4c61d465" is unhealthy.

ERROR: Encountered errors while bringing up the project.

我还在 docker-compose.yaml、server/config/config.properties 和 server/config/config-local.properties 中将 elasticsearch 端口更改为 10300。

Docker compose 版本为 1.23.2。 Docker版本是18.09.3。

PS:我对 docker 和相关概念非常陌生。

更多信息:将我的端口更改恢复为默认值(9200/9300)并添加不健康容器的 docker 信息(docker 容器 ID 由于重新构建而更改)

/conductor/docker$ sudo docker ps -a --filter "id=7be9f9b5288c" [sudo] password for anshuman: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

7be9f9b5288c docker.elastic.co/elasticsearch/elasticsearch:5.6.8 "/bin/bash bin/es-do…" 36 minutes ago Up 36 minutes (unhealthy) 0.0.0.0:9200->9200/tcp, 0.0.0.0:9300->9300/tcp docker_elasticsearch_1

curl 到 elasticsearch 似乎没问题。

/conductor/docker$ curl http://127.0.0.1:9200/_cat/health 1553188720 17:18:40 docker-cluster yellow 1 1 5 5 0 0 5 0 - 50.0%

容器的 Docker 日志给了我这个(不知道它们是什么意思)

/conductor/docker$ sudo docker logs 7be9f9b5288c [2019-03-21T17:12:06,323][INFO ][o.e.x.m.MachineLearningTemplateRegistry] [M5hkiIZ] successfully created .ml-meta index template

[2019-03-21T17:12:06,413][INFO ][o.e.x.m.MachineLearningTemplateRegistry] [M5hkiIZ] successfully created .ml-notifications index template

[2019-03-21T17:12:06,502][INFO ][o.e.x.m.MachineLearningTemplateRegistry] [M5hkiIZ] successfully created .ml-anomalies- index template

[2019-03-21T17:12:07,152][INFO ][o.e.l.LicenseService ] [M5hkiIZ] license [dfac41a4-9280-4c77-81ef-0f943039ef77] mode [trial] - valid

[2019-03-21T17:12:15,712][INFO ][o.e.c.m.MetaDataCreateIndexService] [M5hkiIZ] [.monitoring-es-6-2019.03.21] creating index, cause [auto(bulk api)], templates [.monitoring-es], shards 1/1, mappings [doc]

[2019-03-21T17:12:16,122][INFO ][o.e.c.m.MetaDataCreateIndexService] [M5hkiIZ] [.watches] creating index, cause [auto(bulk api)], templates [watches], shards 1/1, mappings [watch]

[2019-03-21T17:12:16,728][INFO ][o.e.c.m.MetaDataMappingService] [M5hkiIZ] [.watches/t05gsw2UQjmWEJ9IiSKn6g] update_mapping [watch]

[2019-03-21T17:13:17,111][INFO ][o.e.c.m.MetaDataCreateIndexService] [M5hkiIZ] [.triggered_watches] creating index, cause [auto(bulk api)], templates [triggered_watches], shards 1/1, mappings [triggered_watch]

[2019-03-21T17:13:17,644][INFO ][o.e.c.m.MetaDataCreateIndexService] [M5hkiIZ] [.monitoring-alerts-6] creating index, cause [auto(bulk api)], templates [.monitoring-alerts], shards 1/1, mappings [doc]

[2019-03-21T17:13:17,918][INFO ][o.e.c.m.MetaDataCreateIndexService] [M5hkiIZ] [.watcher-history-6-2019.03.21] creating index, cause [auto(bulk api)], templates [.watch-history-6], shards 1/1, mappings [doc]

[2019-03-21T17:13:18,475][INFO ][o.e.c.m.MetaDataMappingService] [M5hkiIZ] [.watcher-history-6-2019.03.21/sP8OvfXNSmCImfRf3mCR3A] update_mapping [doc]

[2019-03-21T17:13:18,718][INFO ][o.e.c.m.MetaDataMappingService] [M5hkiIZ] [.watcher-history-6-2019.03.21/sP8OvfXNSmCImfRf3mCR3A] update_mapping [doc]

最佳答案

最后,我解决了使这项工作可行的问题。它至少需要了解 dockerDockerfile 如何工作的基础知识。

  1. 基于文档 here ,我启动了本地服务器并尝试使用 docker-compose 启动所有内容。这给我带来了端口冲突。
  2. 我错误地更改了 elasticsearch 的端口。在学习了 Dockerfile 的基础知识后我意识到了这一点。这就是我的容器不健康的原因。
  3. 然后在构建conductor-ui时出现错误。

    npm ERR! code EINTEGRITY

    这需要更改conductor-ui的Dockerfilenpm install 命令已更改为 npm install --no-shrinkwrap --update-binary (基于答案 here )。其他答案 this issue

关于docker - Netflix Conductor 服务器本地 docker 容器不健康,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55270141/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com