Error when Docker cannot create more networks

Abierto
#4,576 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

  • #4628 de @sojay — cerrado sin fusionar

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
docker, docker-compose, shell

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Shell
Estrellas
9.7k
Forks
2k
Merge medio
3 d 2 h
PR fusionados (30 d)
16

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de getsentry/self-hosted

Todos los issues de getsentry/self-hosted

Issues similares

Más issues de Shell/Bash

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.