Problem with network pool

Hi,

I’m trying to build the docker image to run sentry on premises, but I’m getting an error that says:
Error response from daemon: no available IPv4 addresses on this network’s address pools: sentry_onpremise_default (22e0d1997c7f134def276e60c42691e454b721e40ba76479572a50a62fae36ae)

Does anyone know what this can be about ? This is on RHEL8, with the latest master branch of onpremise.

I tried googling but couldn’t find anything related.

Trying to up the image after that doesn’t seem to work as it shuts down with the same kind of messages…

Hereafter comes the full log from the installation.

Thanks in advance!

Martin

Full log of install.sh:

Checking minimum requirements…
Removing network onpremise_default
Network onpremise_default not found.
Removing sentry_onpremise_snuba-api_1 …
Removing sentry_onpremise_snuba-outcomes-consumer_1 …
Removing sentry_onpremise_snuba-consumer_1 …
Removing sentry_onpremise_snuba-replacer_1 …
Removing sentry_onpremise_snuba-sessions-consumer_1 …
Removing sentry_onpremise_postgres_1 …
Removing sentry_onpremise_smtp_1 …
Removing sentry_onpremise_symbolicator_1 …
Removing sentry_onpremise_memcached_1 …
Removing sentry_onpremise_kafka_1 …
Removing sentry_onpremise_redis_1 …
Removing sentry_onpremise_zookeeper_1 …
Removing sentry_onpremise_clickhouse_1 …
Removing sentry_onpremise_redis_1 … done
Removing sentry_onpremise_clickhouse_1 … done
Removing sentry_onpremise_snuba-outcomes-consumer_1 … done
Removing sentry_onpremise_snuba-replacer_1 … done
Removing sentry_onpremise_memcached_1 … done
Removing sentry_onpremise_kafka_1 … done
Removing sentry_onpremise_snuba-api_1 … done
Removing sentry_onpremise_snuba-sessions-consumer_1 … done
Removing sentry_onpremise_zookeeper_1 … done
Removing sentry_onpremise_postgres_1 … done
Removing sentry_onpremise_snuba-consumer_1 … done
Removing sentry_onpremise_smtp_1 … done
Removing sentry_onpremise_symbolicator_1 … done
Removing network sentry_onpremise_default

Creating volumes for persistent storage…
Created sentry-data.
Created sentry-postgres.
Created sentry-redis.
Created sentry-zookeeper.
Created sentry-kafka.
Created sentry-clickhouse.
Created sentry-symbolicator.

Creating sentry/sentry.conf.py…
Creating sentry/config.yml…
Creating sentry/requirements.txt…

Generating secret key…
Secret key written to sentry/config.yml

Fetching and updating Docker images…

Some service image(s) must be built from source by running:
docker-compose build symbolicator-cleanup cron post-process-forwarder ingest-consumer snuba-cleanup sentry-cleanup web worker
latest: Pulling from getsentry/sentry
Digest: sha256:2899a6f443ac96afb80507df06b63b864a8b3f999a1470c017fb7113b05a1c17
Status: Image is up to date for getsentry/sentry:latest

Building and tagging Docker images…

Building web
Step 1/5 : ARG SENTRY_VERSION=latest
Step 2/5 : ARG SENTRY_IMAGE
Step 3/5 : FROM ${SENTRY_IMAGE:-getsentry/sentry:$SENTRY_VERSION}
—> ec100ba53eee
Step 4/5 : COPY . /usr/src/sentry
—> Using cache
—> ed1c2e61bad8
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi
—> Using cache
—> f542621e6614

Successfully built f542621e6614
Successfully tagged sentry-onpremise-local:latest
smtp uses an image, skipping
memcached uses an image, skipping
redis uses an image, skipping
postgres uses an image, skipping
zookeeper uses an image, skipping
kafka uses an image, skipping
clickhouse uses an image, skipping
snuba-api uses an image, skipping
snuba-consumer uses an image, skipping
snuba-outcomes-consumer uses an image, skipping
snuba-sessions-consumer uses an image, skipping
snuba-replacer uses an image, skipping
symbolicator uses an image, skipping
relay uses an image, skipping
nginx uses an image, skipping
Building snuba-cleanup …
Building symbolicator-cleanup …
Building web …
Building cron …
Building worker …
Building ingest-consumer …
Building post-process-forwarder …
Building sentry-cleanup …
Building snuba-cleanup
Building ingest-consumer
Building post-process-forwarder
Building web
Building worker
Step 1/5 : ARG BASE_IMAGE
Step 2/5 : FROM ${BASE_IMAGE}
—> c278520d8aa3
Step 3/5 : RUN apt-get update && apt-get install -y --no-install-recommends cron && rm -r /var/lib/apt/lists/*
—> Using cache
—> 108d2590ba9a
Step 4/5 : COPY entrypoint.sh /entrypoint.sh
—> Using cache
—> b7356e0fca11
Step 5/5 : ENTRYPOINT ["/entrypoint.sh"]
—> Using cache
—> 96a58ac5f1ec

Successfully built 96a58ac5f1ec
Step 1/5 : ARG SENTRY_VERSION=latest
Step 2/5 : ARG SENTRY_IMAGE
Step 3/5 : FROM ${SENTRY_IMAGE:-getsentry/sentry:$SENTRY_VERSION}
Successfully tagged snuba-cleanup-onpremise-local:latest
—> ec100ba53eee
Step 4/5 : COPY . /usr/src/sentry
—> Using cache
—> ed1c2e61bad8
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi
—> Using cache
—> f542621e6614

Successfully built f542621e6614
Building sentry-cleanup
Step 1/5 : ARG SENTRY_VERSION=latestBuilding snuba-cleanup … done
Step 1/5 : ARG SENTRY_VERSION=latest
Step 1/5 : ARG SENTRY_VERSION=latest

Step 2/5 : ARG SENTRY_IMAGESuccessfully tagged sentry-onpremise-local:latest

Step 2/5 : ARG SENTRY_IMAGEBuilding ingest-consumer … done
Step 3/5 : FROM ${SENTRY_IMAGE:-getsentry/sentry:$SENTRY_VERSION}

Building cron
Step 3/5 : FROM ${SENTRY_IMAGE:-getsentry/sentry:$SENTRY_VERSION}Step 2/5 : ARG SENTRY_IMAGE

—> ec100ba53eee
Step 3/5 : FROM ${SENTRY_IMAGE:-getsentry/sentry:$SENTRY_VERSION}Step 4/5 : COPY . /usr/src/sentry

—> ec100ba53eee
—> Using cache
Step 4/5 : COPY . /usr/src/sentry —> ed1c2e61bad8

Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi —> Using cache

—> ec100ba53eee
—> ed1c2e61bad8
Step 4/5 : COPY . /usr/src/sentryStep 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi

—> Using cache
—> Using cache
—> f542621e6614
—> ed1c2e61bad8

Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fiSuccessfully built f542621e6614

—> Using cache
—> Using cache
Successfully tagged sentry-onpremise-local:latest
—> f542621e6614
Building post-process-forwarder … done

—> f542621e6614
Successfully built f542621e6614

Building symbolicator-cleanup
Successfully built f542621e6614
Successfully tagged sentry-onpremise-local:latest
Successfully tagged sentry-onpremise-local:latest
Building web … done
Building worker … done
Step 1/5 : ARG BASE_IMAGE
Step 2/5 : FROM ${BASE_IMAGE}
—> f542621e6614
Step 3/5 : RUN apt-get update && apt-get install -y --no-install-recommends cron && rm -r /var/lib/apt/lists/*
—> Using cache
—> 99ea789eabb0
Step 4/5 : COPY entrypoint.sh /entrypoint.sh
—> Using cache
—> 4dc363756b3a
Step 5/5 : ENTRYPOINT ["/entrypoint.sh"]
—> Using cache
—> 8d91c55e37ab

Successfully built 8d91c55e37ab
Successfully tagged sentry-cleanup-onpremise-local:latest
Building sentry-cleanup … done
Step 1/5 : ARG SENTRY_VERSION=latest
Step 2/5 : ARG SENTRY_IMAGE
Step 3/5 : FROM ${SENTRY_IMAGE:-getsentry/sentry:$SENTRY_VERSION}
—> ec100ba53eee
Step 4/5 : COPY . /usr/src/sentry
—> Using cache
—> ed1c2e61bad8
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi
—> Using cache
—> f542621e6614

Successfully built f542621e6614
Successfully tagged sentry-onpremise-local:latest
Building cron … done
Step 1/5 : ARG BASE_IMAGE
Step 2/5 : FROM ${BASE_IMAGE}
—> 857ed4c4c3bb
Step 3/5 : RUN apt-get update && apt-get install -y --no-install-recommends cron && rm -r /var/lib/apt/lists/*
—> Using cache
—> 792557999953
Step 4/5 : COPY entrypoint.sh /entrypoint.sh
—> Using cache
—> 39d522612cda
Step 5/5 : ENTRYPOINT ["/entrypoint.sh"]
—> Using cache
—> a69b2c93cce0

Successfully built a69b2c93cce0
Successfully tagged symbolicator-cleanup-onpremise-local:latest
Building symbolicator-cleanup … done

Docker images built.
Creating network “sentry_onpremise_default” with the default driver
Bootstrapping and migrating Snuba…
Creating sentry_onpremise_redis_1 …
Creating sentry_onpremise_zookeeper_1 …
Creating sentry_onpremise_clickhouse_1 …
Creating sentry_onpremise_redis_1 … done
Creating sentry_onpremise_zookeeper_1 … done
Creating sentry_onpremise_clickhouse_1 … done
Creating sentry_onpremise_kafka_1 …
Creating sentry_onpremise_kafka_1 … done

  • ‘[’ b = - ‘]’
  • snuba bootstrap --help
  • set – snuba bootstrap --force
  • set gosu snuba snuba bootstrap --force
  • exec gosu snuba snuba bootstrap --force
    2020-07-06 12:24:49,892 Connection to Kafka failed (attempt 0)
    Traceback (most recent call last):
    File “/usr/src/snuba/snuba/cli/bootstrap.py”, line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str=“Failed to get metadata: Local: Broker transport failure”}
    2020-07-06 12:24:51,896 Connection to Kafka failed (attempt 1)
    Traceback (most recent call last):
    File “/usr/src/snuba/snuba/cli/bootstrap.py”, line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str=“Failed to get metadata: Local: Broker transport failure”}
    2020-07-06 12:24:53,897 Connection to Kafka failed (attempt 2)
    Traceback (most recent call last):
    File “/usr/src/snuba/snuba/cli/bootstrap.py”, line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str=“Failed to get metadata: Local: Broker transport failure”}
    2020-07-06 12:24:55,091 Failed to create topic ingest-sessions
    Traceback (most recent call last):
    File “/usr/src/snuba/snuba/cli/bootstrap.py”, line 92, in bootstrap
    future.result()
    File “/usr/local/lib/python3.7/concurrent/futures/_base.py”, line 435, in result
    return self.__get_result()
    File “/usr/local/lib/python3.7/concurrent/futures/_base.py”, line 384, in __get_result
    raise self._exception
    cimpl.KafkaException: KafkaError{code=TOPIC_ALREADY_EXISTS,val=36,str=“Topic ‘ingest-sessions’ already exists.”}
    2020-07-06 12:24:55,092 Failed to create topic cdc
    Traceback (most recent call last):
    File “/usr/src/snuba/snuba/cli/bootstrap.py”, line 92, in bootstrap
    future.result()
    File “/usr/local/lib/python3.7/concurrent/futures/_base.py”, line 428, in result
    return self.__get_result()
    File “/usr/local/lib/python3.7/concurrent/futures/_base.py”, line 384, in __get_result
    raise self._exception
    cimpl.KafkaException: KafkaError{code=TOPIC_ALREADY_EXISTS,val=36,str=“Topic ‘cdc’ already exists.”}
    2020-07-06 12:24:55,092 Failed to create topic events
    Traceback (most recent call last):
    File “/usr/src/snuba/snuba/cli/bootstrap.py”, line 92, in bootstrap
    future.result()
    File “/usr/local/lib/python3.7/concurrent/futures/_base.py”, line 428, in result
    return self.__get_result()
    File “/usr/local/lib/python3.7/concurrent/futures/_base.py”, line 384, in __get_result
    raise self._exception
    cimpl.KafkaException: KafkaError{code=TOPIC_ALREADY_EXISTS,val=36,str=“Topic ‘events’ already exists.”}
    2020-07-06 12:24:55,092 Failed to create topic event-replacements
    Traceback (most recent call last):
    File “/usr/src/snuba/snuba/cli/bootstrap.py”, line 92, in bootstrap
    future.result()
    File “/usr/local/lib/python3.7/concurrent/futures/_base.py”, line 428, in result
    return self.__get_result()
    File “/usr/local/lib/python3.7/concurrent/futures/_base.py”, line 384, in __get_result
    raise self._exception
    cimpl.KafkaException: KafkaError{code=TOPIC_ALREADY_EXISTS,val=36,str=“Topic ‘event-replacements’ already exists.”}
    2020-07-06 12:24:55,092 Failed to create topic snuba-commit-log
    Traceback (most recent call last):
    File “/usr/src/snuba/snuba/cli/bootstrap.py”, line 92, in bootstrap
    future.result()
    File “/usr/local/lib/python3.7/concurrent/futures/_base.py”, line 428, in result
    return self.__get_result()
    File “/usr/local/lib/python3.7/concurrent/futures/_base.py”, line 384, in __get_result
    raise self._exception
    cimpl.KafkaException: KafkaError{code=TOPIC_ALREADY_EXISTS,val=36,str=“Topic ‘snuba-commit-log’ already exists.”}
    2020-07-06 12:24:55,092 Failed to create topic errors-replacements
    Traceback (most recent call last):
    File “/usr/src/snuba/snuba/cli/bootstrap.py”, line 92, in bootstrap
    future.result()
    File “/usr/local/lib/python3.7/concurrent/futures/_base.py”, line 428, in result
    return self.__get_result()
    File “/usr/local/lib/python3.7/concurrent/futures/_base.py”, line 384, in __get_result
    raise self._exception
    cimpl.KafkaException: KafkaError{code=TOPIC_ALREADY_EXISTS,val=36,str=“Topic ‘errors-replacements’ already exists.”}
    2020-07-06 12:24:55,093 Failed to create topic outcomes
    Traceback (most recent call last):
    File “/usr/src/snuba/snuba/cli/bootstrap.py”, line 92, in bootstrap
    future.result()
    File “/usr/local/lib/python3.7/concurrent/futures/_base.py”, line 428, in result
    return self.__get_result()
    File “/usr/local/lib/python3.7/concurrent/futures/_base.py”, line 384, in __get_result
    raise self._exception
    cimpl.KafkaException: KafkaError{code=TOPIC_ALREADY_EXISTS,val=36,str=“Topic ‘outcomes’ already exists.”}
    2020-07-06 12:24:55,106 Creating tables for storage events
    2020-07-06 12:24:55,112 Migrating storage events
    2020-07-06 12:24:55,176 Creating tables for storage errors
    2020-07-06 12:24:55,181 Migrating storage errors
    2020-07-06 12:24:55,226 Creating tables for storage groupedmessages
    2020-07-06 12:24:55,227 Migrating storage groupedmessages
    2020-07-06 12:24:55,236 Creating tables for storage groupassignees
    2020-07-06 12:24:55,239 Migrating storage groupassignees
    2020-07-06 12:24:55,247 Creating tables for storage outcomes_raw
    2020-07-06 12:24:55,248 Migrating storage outcomes_raw
    2020-07-06 12:24:55,263 Creating tables for storage outcomes_hourly
    2020-07-06 12:24:55,268 Migrating storage outcomes_hourly
    2020-07-06 12:24:55,280 Creating tables for storage sessions_raw
    2020-07-06 12:24:55,282 Migrating storage sessions_raw
    2020-07-06 12:24:55,297 Creating tables for storage sessions_hourly
    2020-07-06 12:24:55,313 Migrating storage sessions_hourly
    2020-07-06 12:24:55,327 Creating tables for storage transactions
    2020-07-06 12:24:55,332 Migrating storage transactions

Setting up database…
Starting sentry_onpremise_redis_1 …
Creating sentry_onpremise_symbolicator_1 …
Starting sentry_onpremise_redis_1 … done
Starting sentry_onpremise_zookeeper_1 …
Creating sentry_onpremise_postgres_1 …
Creating sentry_onpremise_memcached_1 …
Creating sentry_onpremise_smtp_1 …
Starting sentry_onpremise_zookeeper_1 … done
Starting sentry_onpremise_clickhouse_1 …
Starting sentry_onpremise_clickhouse_1 … done
Starting sentry_onpremise_kafka_1 …
Starting sentry_onpremise_kafka_1 … done
Creating sentry_onpremise_snuba-replacer_1 …
Creating sentry_onpremise_snuba-outcomes-consumer_1 …
Creating sentry_onpremise_snuba-sessions-consumer_1 …
Creating sentry_onpremise_snuba-api_1 …
Creating sentry_onpremise_snuba-consumer_1 …
Creating sentry_onpremise_postgres_1 … done
Creating sentry_onpremise_memcached_1 … done
Creating sentry_onpremise_symbolicator_1 … done
Creating sentry_onpremise_snuba-outcomes-consumer_1 … done
Creating sentry_onpremise_smtp_1 … done
Creating sentry_onpremise_snuba-replacer_1 … done
Creating sentry_onpremise_snuba-sessions-consumer_1 … done
Creating sentry_onpremise_snuba-api_1 … done
Creating sentry_onpremise_snuba-consumer_1 … done
Error response from daemon: no available IPv4 addresses on this network’s address pools: sentry_onpremise_default (22e0d1997c7f134def276e60c42691e454b721e40ba76479572a50a62fae36ae)
Cleaning up…