-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
docs(self-hosted): Update troubleshooting Docker healthcheck (clarify unhealthy container troubleshooting on slower systems) #17149
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
base: master
Are you sure you want to change the base?
Changes from 3 commits
798c5fa
6a09912
47a4f58
4dfc3e2
63fddcd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,7 +10,7 @@ Around version 25.1.0 to 25.4.0, users which did not have `docker compose` plugi | |
|
|
||
| ## Container Healthcheck | ||
|
|
||
| There may be some circumstances which you may want to increase or decrease healthcheck interval, timeout or retries for your custom needs. This can be achieved by editing `HEALTHCHECK_INTERVAL`, `HEALTHCHECK_TIMEOUT`, `HEALTHCHECK_RETRIES` variables' values in `.env`. | ||
| There may be some circumstances which you may want to increase or decrease healthcheck interval, timeout or retries for your custom needs. This can be achieved by overriding the values of `HEALTHCHECK_INTERVAL`, `HEALTHCHECK_TIMEOUT` and `HEALTHCHECK_RETRIES` defined in `.env` in `.env.custom`. | ||
|
|
||
| Occasionally, you might see an error like this | ||
| ``` | ||
|
|
@@ -19,6 +19,23 @@ container for service "${servicename}" is unhealthy | |
|
|
||
| This can usually be resolved by running `docker compose down` and `docker compose up --wait` or rerunning the install script. | ||
|
|
||
| <Alert title="Note"> | ||
| On slower systems, including systems that only meet the minimum resource requirements for self-hosted Sentry, this issue may still persist even after rerunning <code>docker compose down</code> and <code>docker compose up --wait</code>. | ||
|
|
||
| In this case, you can override the healthcheck parameters defined in `.env` by setting custom values in `.env.custom`. | ||
|
|
||
| For example, increasing `HEALTHCHECK_RETRIES` may resolve the issue: | ||
|
|
||
| ```shell | ||
| # .env.custom | ||
| HEALTHCHECK_RETRIES=20 | ||
sentry[bot] marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ``` | ||
|
|
||
| Then start Docker Compose. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The troubleshooting guide for Docker healthchecks is incomplete. It instructs creating Suggested FixReplace the vague instruction "Then start Docker Compose." with the explicit command required to load the custom environment file, such as Prompt for AI Agent
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @arsalanyavari does this review make sense?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @sergical I think this sentence is enough. There’s no need to explain how to start Docker Compose again, since it’s already mentioned above and in the main documentation based on @aldy505 contribution to this repo.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you think it’s necessary to mention this again, we can repeat that line as well (or I can move the Docker Compose start command closer to this section instead).
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i mean more so the part about creating a new .env.custom file. Can the healthcheck value not go into the existing .env file?
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
@sergical we actually don't suggest users to update the
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. as long as it's clear to the user that |
||
|
|
||
| Depending on your system, you may also need to adjust other `HEALTHCHECK_*` values. | ||
| </Alert> | ||
|
|
||
| ## Docker Network Conflicting IP Address | ||
|
|
||
| Self-hosted Sentry is using Docker's bridge networking, in which use a specific private IP range. By default, Docker uses `172.17.0.0/16` range (`172.17.0.0`-`172.17.255.255`). This may cause conflict with your private network. You can change Docker's default IP range by configuring the `/etc/docker/daemon.json` file. If the file does not exists, you can create it yourself. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.