Repository navigation
fix(install): fail early when docker cannot create networks #4628
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
Changes from all commits
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 |
|---|---|---|
|
|
@@ -42,6 +42,14 @@ if [[ "$RAM_AVAILABLE_IN_DOCKER" -lt "$MIN_RAM_HARD" ]]; then | |
| exit 1 | ||
| fi | ||
|
|
||
| # Fail early if Docker cannot create networks (e.g. default-address-pools exhausted), instead of after pulling all images. See #4576 | ||
| if ! $CONTAINER_ENGINE network create sentry-network-check >/dev/null 2>&1; then | ||
| echo "FAIL: $CONTAINER_ENGINE cannot create a new network. Its address pools may be exhausted." | ||
| echo "Remove unused networks ($CONTAINER_ENGINE network prune) or increase default-address-pools in /etc/docker/daemon.json." | ||
| exit 1 | ||
| fi | ||
| $CONTAINER_ENGINE network rm sentry-network-check >/dev/null | ||
|
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. Collision mistaken for pool exhaustionLow Severity Create uses the fixed name Reviewed by Cursor Bugbot for commit b65ebc0. Configure here. |
||
|
|
||
| # ClickHouse requires AVX2. See this: https://github.com/ClickHouse/ClickHouse/issues/40459 | ||
| # On KVM, cpuinfo could falsely emit reports, so skip the check. https://github.com/ClickHouse/ClickHouse/issues/20#issuecomment-226849297 | ||
| # This may also happen on other virtualization software. | ||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probe requires extra free subnet
Medium Severity
The probe always tries to create an extra network while
sentry-self-hosted_defaultmay still exist. A latercompose downfrees that subnet, and--minimize-downtimereuses the existing network, so an upgrade can fail this check even though install never needs another pool slot.Reviewed by Cursor Bugbot for commit b65ebc0. Configure here.