-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
healthcheck not works #2591
Comments
Have you tried to set the start_period to be a bit longer ? I faced the same issue when i set the start_period too soon. |
Hi, The URL is fine. docker-gitlab/assets/runtime/functions Lines 1683 to 1698 in 32d0e27
It uses http (unless you set the gitlab_https to true) and uses the URL you meantioned: There is nothing to fix here, check your logs why it doesn't respond with http 200 (thats the only thing the healthcheck does) after 20 minutes (5 min start + 3*5 min check). |
Hi, |
If use in docker-compose
healthcheck:
test: ["CMD", "/usr/local/sbin/healthcheck"]
interval: 5m
timeout: 10s
retries: 3
start_period: 5m
and container always starting
Fix: need change to http protocol in line:
url=http://localhost/-/liveness
The text was updated successfully, but these errors were encountered: