TrueNAS: nginx Container Startup Probe Failed

For those of us that are fans of TrueNAS Scale and look to leverage the platform for its capabilities beyond file storage, there is built-in functionality to run VMs and Containers. If you are here reading this, my assumption is that you already know this and experienced the same issue I did when installing the Nginx reverse proxy “Container Startup Probe Failed”.

For me, installing the reverse proxy on one of our client’s systems kept prompting us with an error no matter what we tried, “Container Startup Probe Failed.” I upgraded the system OS, built a test system to replicate the issue, racked my brain, then discovered I wasn’t alone. One of the things that led to our somewhat obscure circumstance is that our customer’s system is built completely with spinning disks, except for the OS (budget constraints).

This type of configuration actually led to timeouts when trying to load from the slower spinning disks, prompting us with the dreaded message. To alleviate this, simply add an ENV variable to the configuration for the reverse proxy and all your problems will melt like jelly beans on a driveway in June.

S6_STAGE2_HOOK=sed -i $d /etc/s6-overlay/s6-rc.d/prepare/30-ownership.sh

Description of the fix given by Daniel Siquara: “This will remove the last line that was added in version 2.10+ chown -R “$PUID:$PGID” /opt/certbot with takes a long time on HDD pools”

Enjoy!

About Joe D

I have always had a passion for everything computing. In early 2000, I decided to take my passion to the web. Thus, C.O.D. was born. Through the years we have made many great friends at C.O.D. and hope to continue our journey for years to come.

Check Also

Windows Storage Server 2012 R2 Essentials Overview

Just when I thought I had it all figured out, Microsoft drops another one on my lap. I had already covered what I thought was Windows Storage Server 2012 R2 and its functions and flavors when I learned about Essentials. Essentials is still built for a NAS device, but it adds some fantastic functionality to the platform. Some of these include Active Directory Services, Computer Backups, and IIS.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.