Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions install/check-minimum-requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Copy link
Copy Markdown

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_default may still exist. A later compose down frees that subnet, and --minimize-downtime reuses the existing network, so an upgrade can fail this check even though install never needs another pool slot.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit b65ebc0. Configure here.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Collision mistaken for pool exhaustion

Low Severity

Create uses the fixed name sentry-network-check and discards daemon stderr, so a leftover or colliding network is reported as address-pool exhaustion. The install trap does not remove this network, so an interrupted run can block later installs with a misleading FAIL.

Fix in Cursor Fix in Web

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.
Expand Down
Loading