Resolving Traefik Errors for Sitecore Containers

Learn to understand and resolve the Traefik errors in Sitecore containers.

January 27, 2025

By Arsalaan Pathan

A Comprehensive Guide to Resolving Sitecore Container and Traefik Errors

As a Sitecore developer we all might have come across errors for Sitecore containers, specifically for Traefik. The general understanding when encountering this error is that there is an issue with Sitecore CM, But What? This blog tells you figure it out.

How To Debug?

First and foremost, I used the “docker-compose up -d” command to run my containers. The result was below Traefik error.

Screenshot showing a terminal output but an error is displayed for the Traefik container

As you can see, the error description does not tell you what the actual error is. But we know it has something to do with the Sitecore CM. So, we need to inspect the CM container.

Run the “docker ps” command. You will see a list of all the container with their id’s. Get the id of Sitecore CM.

Screenshot of a terminal displaying the output of the docker ps command

Once you have copied the id of CM, run “docker inspect <>”. In this case it would be “docker inspect 17d4699e75fb”. You will see an object as the response. Scroll down to the bottom of the object and copy the IP Address.

Screenshot of a terminal showing the output of the docker inspect command

Open this “http://<>/healthz/ready” in the browser and you will see the error page.

Screenshot showing Server error in application page

Based on this error, I could figure out that there was a problem with one of my .config files that were deployed to the containers. The syntax for one of my configs was broken and because of that the rest of the configs didn’t load. Hence giving me this error. 

After fixing the syntax error and deploying it to docker, my containers were up and running.

Picture of Fishtank employee Arsalaan Pathan

Arsalaan Pathan

Sitecore Developer

Arsalaan is not just a web developer; he's a certified expert in Sitecore and Content Hub development, bringing a unique blend of technical prowess and creative vision to every project. Since diving into the world of web development in 2016, he has continually honed his skills, initially on .NET platforms before transitioning seamlessly to Sitecore in 2020. With a passion for crafting dynamic and engaging digital experiences, Arsalaan is driven by the challenge of pushing boundaries and delivering innovative solutions that captivate audiences and drive results.

In his free time, he often savors the thrill of spontaneous road trips, exploring new destinations and soaking in the sights along the way. Alternatively, you'll find him on the soccer field, eagerly chasing after the ball, his passion for the game evident in the beads of sweat glistening on his brow. Whether traversing open roads or dominating the field, he embraces each moment with gusto and determination.