Sitecore / Sitecore/docker-examples

docker-compose up -d doesn't work

Open
#46 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PowerShell
Stars
82
Forks
110
Avg merge
7d 59m
Merged PRs (30d)
1

Description

Steps to reproduce:

  1. Switch to master or develop branch
  2. Initialize environment .\init.ps1 -LicenseXmlFile c:\license\license.xml
  3. cd custom-images\docker
  4. Run .\clean.ps1 to make sure that there are no artifacts from previous times
  5. cd custom-images
  6. run docker-compose up -d

Expected result: containers up and running
Actual result:

Creating docker-examples_solr_1  ... done
Creating docker-examples_mssql_1 ... done
Creating docker-examples_mssql-init_1 ... done
Creating docker-examples_solr-init_1  ... done
Creating docker-examples_xconnect_1   ... done
Creating docker-examples_id_1         ... done
Creating docker-examples_cm_1         ... done
Creating docker-examples_hrz_1        ... done

ERROR: for traefik  Container "a544e3fe3ff7" is unhealthy.

ERROR: for xdbsearchworker  Container "6b2cc5dcc865" is unhealthy.

ERROR: for cortexprocessingworker  Container "6b2cc5dcc865" is unhealthy.

ERROR: for xdbautomationworker  Container "6b2cc5dcc865" is unhealthy.
ERROR: Encountered errors while bringing up the project.

I ignore traefik as it will be unhealthy if at least one container is unhealthy

Investigations:

  1. run docker logs 6b2cc5dcc865 (xdbsearchworker)

Error present in logs:

2022-01-18 10:30:59.886 +02:00 [Error] Health check "XConnect SolrCloud cluster live collection health check" completed after 26.9359ms with status Unhealthy and '"SolrCloud Cluster health check failed."
2022-01-18 10:32:00.534 +02:00 [Error] Health check "XConnect SolrCloud cluster live collection health check" completed after 1.8999ms with status Unhealthy and '"SolrCloud Cluster health check failed."'

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue from the listed PowerShell setup steps, then inspect the xdbsearchworker logs and the reported health checks for the SolrCloud cluster. Compare the container health states after docker-compose up -d; the issue is resolved when the affected containers become healthy and the compose command completes without errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose, powershell
Domain
devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.