Error when Docker cannot create more networks

Aperta
#4,576 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

  • #4628 di @sojay — chiusa senza merge

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
docker, docker-compose, shell

Direzione di ricerca

Start by tracing the network creation step in install.sh and the Docker Compose configuration it invokes; the issue does not name a specific file or test. Reproduce with Docker's predefined address pools exhausted, then determine whether the installer can check network creation before proceeding. Done means the installer reports the network limitation clearly before failing during Relay credential setup.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Waiting for: Product Owner
Self-Hosted Version

26.10.0

CPU Architecture

AMD64

Docker Version

29.7.1

Docker Compose Version

5.3.1

Machine Specification
  • My system meets the minimum system requirements of Sentry
Installation Type

Fresh install on productive server

Steps to Reproduce
  1. Limit docker deamon to X subnets (default: 15)
  2. create X docker subnets
  3. execute install.sh
Expected Result

A pre-check if a docker network can be created instead of a hard error

Actual Result

hal9000@lama-lan-3:~/docker/sentry$ ./install.sh
▶ Parsing command line ...

▶ Detecting container engine ...
Detected container engine: docker

▶ Detecting Docker platform
Detected Docker platform is linux/amd64

▶ Initializing Docker|Podman Compose ...
docker compose --ansi never --env-file .env run --pull=never --rm

▶ Setting up error handling ...

Hey, so ... we would love to automatically find out about issues with your
Sentry instance so that we can improve the product. Turns out there is an app
for that, called Sentry. Would you be willing to let us automatically send data
about your instance upstream to Sentry for development and debugging purposes?

y / yes / 1
n / no / 0

(Btw, we send this to our own self-hosted Sentry instance, not to Sentry SaaS,
so that we can be in this together.)

Here's the info we may collect:

  • OS username
  • IP address
  • install log
  • runtime errors
  • performance data

Thirty (30) day retention. No marketing. Privacy policy at sentry.io/privacy.

y or n? n

Understood. To avoid this prompt in the future, use one of these flags:

--report-self-hosted-issues
--no-report-self-hosted-issues

or set the REPORT_SELF_HOSTED_ISSUES environment variable:

REPORT_SELF_HOSTED_ISSUES=1 to send data
REPORT_SELF_HOSTED_ISSUES=0 to not send data

▶ Checking for latest commit ...
skipped

▶ Checking minimum requirements ...
Found docker version 29.7.1
Found docker Compose version 5.3.1
Unable to find image 'busybox:latest' locally
latest: Pulling from library/busybox
37bb94b0940b: Pulling fs layer
37bb94b0940b: Download complete
46500c34ad0c: Download complete
37bb94b0940b: Pull complete
Digest: sha256:fd7dc98638c8e305f4dc34e979f1c0fdfdcaeb0fbf8fcff77ae834b6da3d7e6e
Status: Downloaded newer image for busybox:latest

▶ Upgrading Clickhouse ...

▶ Cleaning up ClickHouse query log tables ...

▶ Fetching and updating docker images ...
(truncated for readability)

▶ Turning things off ...

▶ Creating volumes for persistent storage ...
Created sentry-clickhouse.
Created sentry-data.
Created sentry-kafka.
Created sentry-postgres.
Created sentry-redis.
Created sentry-seaweedfs.

▶ Ensuring files from examples ...
Creating sentry/sentry.conf.py ...
Creating sentry/config.yml ...
Creating symbolicator/config.yml ...

▶ Checking memcached backend ...
ReconnectingMemcache found in sentry/sentry.conf.py, you're good.

▶ Ensuring Relay credentials ...
Creating relay/config.yml ...
26.10.0: Pulling from getsentry/relay
Digest: sha256:cd416f6078f9f6e68896a958cac4cdb4d3cf94e4e2a37f46cb741b93bf41a67a
Status: Image is up to date for ghcr.io/getsentry/relay:26.10.0
ghcr.io/getsentry/relay:26.10.0
Network sentry-self-hosted_default Creating
Network sentry-self-hosted_default Error Error response from daemon: all predefined address pools have been fully subnetted
failed to create network sentry-self-hosted_default: Error response from daemon: all predefined address pools have been fully subnetted
Unable to find image 'ghcr.io/jqlang/jq:latest' locally
Unable to find image 'ghcr.io/jqlang/jq:latest' locally
latest: Pulling from jqlang/jq
latest: Pulling from jqlang/jq
e09c0a66b700: Pulling fs layer
45f05cf73251: Pulling fs layer
e09c0a66b700: Download complete
e09c0a66b700: Pulling fs layer
45f05cf73251: Pulling fs layer
e09c0a66b700: Download complete
45f05cf73251: Download complete
45f05cf73251: Download complete
e09c0a66b700: Pull complete
e09c0a66b700: Pull complete
45f05cf73251: Pull complete
Digest: sha256:b9c68867e5766576263a222e91db3de422d802069c7af70440e667a95344e486
Status: Downloaded newer image for ghcr.io/jqlang/jq:latest
45f05cf73251: Pull complete
Digest: sha256:b9c68867e5766576263a222e91db3de422d802069c7af70440e667a95344e486
Status: Downloaded newer image for ghcr.io/jqlang/jq:latest
Error in install/ensure-relay-credentials.sh:31.
'$creds generate --stdout > "$RELAY_CREDENTIALS_JSON".tmp' exited with status 1
-> ./install.sh:main:37
--> install/ensure-relay-credentials.sh:source:31

Cleaning up...

Event ID

No response

Lingua principale
Shell
Stelle
9.7k
Fork
2k
Merge medio
3g 2h
PR unite (30g)
16

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di getsentry/self-hosted

Tutte le issue di getsentry/self-hosted

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.