简体   繁体   English

错误:traefik,xdbautomationworker,容器不健康

[英]ERROR: traefik, xdbautomationworker, Container is unhealthy

Trying to create sitecore 10 image using Docker on Windows 10 Enterprise locally but getting unhealthy containers.尝试在本地 Windows 10 Enterprise 上使用 Docker 创建 sitecore 10 映像,但容器不健康。 Please help me out as I have tried various steps that was updated in the forums.请帮助我,因为我尝试了论坛中更新的各种步骤。

Getting below errors:出现以下错误:

Creating network "sitecore-xp0_default" with the default driver
Creating sitecore-xp0_solr_1  ... done
Creating sitecore-xp0_mssql_1 ... done
Creating sitecore-xp0_id_1        ... done
Creating sitecore-xp0_solr-init_1 ... done
Creating sitecore-xp0_xconnect_1  ... done
Creating sitecore-xp0_cm_1        ... done

ERROR: for cortexprocessingworker  Container "992574e988e3" is unhealthy.

ERROR: for xdbautomationworker  Container "992574e988e3" is unhealthy.

ERROR: for xdbsearchworker  Container "992574e988e3" is unhealthy.

ERROR: for traefik  Container "933b548fc2f9" is unhealthy.
ERROR: Encountered errors while bringing up the project.

Checked the following things:检查了以下内容:

docker-compose stop on Powershell.

docker-compose down on Powershell.

iisreset /stop on Powershell to make sure that the required ports are free.

docker-compose up -d on Powershell.

Stopped, removed the container and executed the command docker-compose.exe up --detach multiple times but no luck.

The traefik container will always be unhealthy if one of the dependent on new are unhealthy, so I wouldn't focus on that.如果依赖于 new 的其中一个不健康,traefik 容器将始终不健康,所以我不会关注这一点。

Should each of the xconnect workers not be on a separate container?每个 xconnect 工作人员不应该在一个单独的容器上吗? Reason I ask is the error shown for each references the same container id 992574e988e3.我问的原因是每个引用相同容器 ID 992574e988e3 的错误。

Are you able to see any logs for container 992574e988e3?你能看到容器 992574e988e3 的任何日志吗?

Based on the logs now provided in the comments above, my suggestion would be to check the collection SQL connection string, to the shardsmanager database.根据上面评论中现在提供的日志,我的建议是检查集合 SQL 连接字符串到 shardsmanager 数据库。

You can inspect the SQL container in docker for Windows and find the IP address of the SQL server.您可以在 docker for Windows 中检查 SQL 容器并找到 SQL 服务器的 IP 地址。 Connect to that using ssms and try connecting with the creds you have in current string.使用 ssms 连接到那个,并尝试连接当前字符串中的凭据。

Edit: looking again at the exception, it looks like it can't find the SQL server.编辑:再次查看异常,似乎找不到 SQL 服务器。 Yet the CM server appears to not have a problem finding the same server.然而,CM 服务器似乎没有找到相同的服务器的问题。 So compare the web/master/core connection string to the collection one.因此,将 web/master/core 连接字符串与集合一进行比较。 I'm guessing the SQL server portion will be different?我猜 SQL 服务器部分会有所不同?

Check the.env file and make sure SITECORE_LICENSE has a value.检查 .env 文件并确保 SITECORE_LICENSE 具有值。

You may need to run the init.ps1 file.您可能需要运行 init.ps1 文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM