Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
sentry_install_log
Checking minimum requirements...
Removing network onpremise_default
Network onpremise_default not found.
Network elbotola is external, skipping
Removing sentry_onpremise_snuba-replacer_1 ...
Removing sentry_onpremise_snuba-api_1 ...
Removing sentry_onpremise_snuba-outcomes-consumer_1 ...
Removing sentry_onpremise_snuba-consumer_1 ...
Removing sentry_onpremise_snuba-sessions-consumer_1 ...
Removing sentry_onpremise_symbolicator_1 ...
Removing sentry_onpremise_postgres_1 ...
Removing sentry_onpremise_smtp_1 ...
Removing sentry_onpremise_memcached_1 ...
Removing sentry_onpremise_kafka_1 ...
Removing sentry_onpremise_redis_1 ...
Removing sentry_onpremise_clickhouse_1 ...
Removing sentry_onpremise_zookeeper_1 ...
Removing sentry_onpremise_clickhouse_1 ... done
Removing sentry_onpremise_postgres_1 ... done
Removing sentry_onpremise_snuba-api_1 ... done
Removing sentry_onpremise_redis_1 ... done
Removing sentry_onpremise_snuba-consumer_1 ... done
Removing sentry_onpremise_snuba-sessions-consumer_1 ... done
Removing sentry_onpremise_snuba-replacer_1 ... done
Removing sentry_onpremise_memcached_1 ... done
Removing sentry_onpremise_symbolicator_1 ... done
Removing sentry_onpremise_snuba-outcomes-consumer_1 ... done
Removing sentry_onpremise_kafka_1 ... done
Removing sentry_onpremise_smtp_1 ... done
Removing sentry_onpremise_zookeeper_1 ... done
Removing network sentry_onpremise_default
Network elbotola is external, skipping
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.
sentry/sentry.conf.py already exists, skipped creation.
sentry/config.yml already exists, skipped creation.
sentry/requirements.txt already exists, skipped creation.
Fetching and updating Docker images...
Some service image(s) must be built from source by running:
docker-compose build snuba-cleanup worker cron sentry-cleanup symbolicator-cleanup ingest-consumer web post-process-forwarder
latest: Pulling from getsentry/sentry
Digest: sha256:332723eba81a44e0ec850e76c0d05438856803764a377a7fd61fc3f2ccc4ca20
Status: Image is up to date for getsentry/sentry:latest
docker.io/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}
---> 9064962ac536
Step 4/5 : COPY . /usr/src/sentry
---> Using cache
---> bf51bf86b647
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi
---> Using cache
---> 7d38225afb84
Successfully built 7d38225afb84
Successfully tagged sentry-onpremise-local:latest
smtp uses an image, skipping
symbolicator uses an image, skipping
clickhouse uses an image, skipping
redis uses an image, skipping
postgres uses an image, skipping
memcached uses an image, skipping
zookeeper uses an image, skipping
kafka uses an image, skipping
snuba-replacer uses an image, skipping
relay uses an image, skipping
snuba-consumer uses an image, skipping
snuba-api uses an image, skipping
snuba-outcomes-consumer uses an image, skipping
snuba-sessions-consumer uses an image, skipping
nginx uses an image, skipping
Building symbolicator-cleanup ...
Building snuba-cleanup ...
Building cron ...
Building worker ...
Building sentry-cleanup ...
Building post-process-forwarder ...
Building ingest-consumer ...
Building web ...
Building web
Building ingest-consumer
Building worker
Building post-process-forwarder
Building sentry-cleanup
Step 1/5 : ARG BASE_IMAGE
Step 2/5 : FROM ${BASE_IMAGE}
---> 7d38225afb84
Step 3/5 : RUN apt-get update && apt-get install -y --no-install-recommends cron && rm -r /var/lib/apt/lists/*
---> Using cache
---> cec6bbca8b33
Step 4/5 : COPY entrypoint.sh /entrypoint.sh
---> Using cache
---> 55aab1e664ad
Step 5/5 : ENTRYPOINT ["/entrypoint.sh"]
---> Using cache
---> 3922a530917f
Successfully built 3922a530917f
Step 1/5 : ARG SENTRY_VERSION=latest
Step 2/5 : ARG SENTRY_IMAGE
Step 3/5 : FROM ${SENTRY_IMAGE:-getsentry/sentry:$SENTRY_VERSION}
Step 1/5 : ARG SENTRY_VERSION=latest
Step 2/5 : ARG SENTRY_IMAGE
Step 3/5 : FROM ${SENTRY_IMAGE:-getsentry/sentry:$SENTRY_VERSION}
Step 1/5 : ARG SENTRY_VERSION=latest
Step 2/5 : ARG SENTRY_IMAGE
Step 3/5 : FROM ${SENTRY_IMAGE:-getsentry/sentry:$SENTRY_VERSION}
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 sentry-cleanup-onpremise-local:latest
---> 9064962ac536
Step 4/5 : COPY . /usr/src/sentry
---> 9064962ac536
Step 4/5 : COPY . /usr/src/sentry
---> Using cache
---> Using cache
---> bf51bf86b647
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi
---> 9064962ac536
---> bf51bf86b647
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fiBuilding sentry-cleanup ... done
Building symbolicator-cleanup
Step 4/5 : COPY . /usr/src/sentry
---> Using cache
---> 7d38225afb84
Successfully built 7d38225afb84
---> 9064962ac536
Step 4/5 : COPY . /usr/src/sentry
---> Using cache
---> Using cache
---> bf51bf86b647
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi
---> Using cache
---> 7d38225afb84
Successfully tagged sentry-onpremise-local:latest
Building ingest-consumer ... done
Building cron
---> bf51bf86b647
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi
---> Using cache
---> 7d38225afb84
Successfully built 7d38225afb84
Successfully built 7d38225afb84
---> Using cache
---> 7d38225afb84
Successfully built 7d38225afb84
Successfully tagged sentry-onpremise-local:latest
Building worker ... done
Building snuba-cleanup
Successfully tagged sentry-onpremise-local:latest
Building web ... done
Successfully tagged sentry-onpremise-local:latest
Building post-process-forwarder ... done
Step 1/5 : ARG BASE_IMAGE
Step 2/5 : FROM ${BASE_IMAGE}
---> d6cf0be44380
Step 3/5 : RUN apt-get update && apt-get install -y --no-install-recommends cron && rm -r /var/lib/apt/lists/*
---> Using cache
---> 60b64a588696
Step 4/5 : COPY entrypoint.sh /entrypoint.sh
---> Using cache
---> d990ed3d2179
Step 5/5 : ENTRYPOINT ["/entrypoint.sh"]
---> Using cache
---> b8adbaa17804
Successfully built b8adbaa17804
Step 1/5 : ARG SENTRY_VERSION=latest
Step 2/5 : ARG SENTRY_IMAGE
Step 3/5 : FROM ${SENTRY_IMAGE:-getsentry/sentry:$SENTRY_VERSION}
Step 1/5 : ARG BASE_IMAGE
Step 2/5 : FROM ${BASE_IMAGE}
Successfully tagged symbolicator-cleanup-onpremise-local:latest
Building symbolicator-cleanup ... done
---> 9064962ac536
Step 4/5 : COPY . /usr/src/sentry
---> Using cache
---> bf51bf86b647
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi
---> c507e5e0e77c
Step 3/5 : RUN apt-get update && apt-get install -y --no-install-recommends cron && rm -r /var/lib/apt/lists/*
---> Using cache
---> 7d38225afb84
Successfully built 7d38225afb84
---> Using cache
---> 2a3d1699333b
Step 4/5 : COPY entrypoint.sh /entrypoint.sh
---> Using cache
---> da11186784ae
Step 5/5 : ENTRYPOINT ["/entrypoint.sh"]
---> Using cache
---> 18bacd9504b9
Successfully built 18bacd9504b9
Successfully tagged sentry-onpremise-local:latest
Building cron ... done
Successfully tagged snuba-cleanup-onpremise-local:latest
Building snuba-cleanup ... done
Docker images built.
Creating network "sentry_onpremise_default" with the default driver
Bootstrapping and migrating Snuba...
Creating sentry_onpremise_clickhouse_1 ...
Creating sentry_onpremise_zookeeper_1 ...
Creating sentry_onpremise_redis_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-10-02 13:04:42,365 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-10-02 13:04:44,370 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-10-02 13:04:46,375 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-10-02 13:04:47,561 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 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 'events' already exists."}
2020-10-02 13:04:47,562 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-10-02 13:04:47,563 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-10-02 13:04:47,563 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-10-02 13:04:47,563 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 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 'ingest-sessions' already exists."}
2020-10-02 13:04:47,563 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-10-02 13:04:47,564 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-10-02 13:04:47,581 Creating tables for storage events
2020-10-02 13:04:47,585 Migrating storage events
2020-10-02 13:04:47,629 Creating tables for storage errors
2020-10-02 13:04:47,636 Migrating storage errors
2020-10-02 13:04:47,667 Creating tables for storage groupedmessages
2020-10-02 13:04:47,670 Migrating storage groupedmessages
2020-10-02 13:04:47,678 Creating tables for storage groupassignees
2020-10-02 13:04:47,681 Migrating storage groupassignees
2020-10-02 13:04:47,691 Creating tables for storage outcomes_raw
2020-10-02 13:04:47,693 Migrating storage outcomes_raw
2020-10-02 13:04:47,703 Creating tables for storage outcomes_hourly
2020-10-02 13:04:47,709 Migrating storage outcomes_hourly
2020-10-02 13:04:47,718 Creating tables for storage sessions_raw
2020-10-02 13:04:47,720 Migrating storage sessions_raw
2020-10-02 13:04:47,731 Creating tables for storage sessions_hourly
2020-10-02 13:04:47,737 Migrating storage sessions_hourly
2020-10-02 13:04:47,746 Creating tables for storage transactions
2020-10-02 13:04:47,749 Migrating storage transactions
Setting up database...
Starting sentry_onpremise_zookeeper_1 ...
Creating sentry_onpremise_memcached_1 ...
Starting sentry_onpremise_zookeeper_1 ... done
Starting sentry_onpremise_redis_1 ...
Creating sentry_onpremise_smtp_1 ...
Creating sentry_onpremise_postgres_1 ...
Starting sentry_onpremise_redis_1 ... done
Starting sentry_onpremise_kafka_1 ...
Starting sentry_onpremise_clickhouse_1 ...
Starting sentry_onpremise_kafka_1 ... done
Creating sentry_onpremise_symbolicator_1 ...
Starting sentry_onpremise_clickhouse_1 ... done
Creating sentry_onpremise_snuba-api_1 ...
Creating sentry_onpremise_snuba-outcomes-consumer_1 ...
Creating sentry_onpremise_snuba-sessions-consumer_1 ...
Creating sentry_onpremise_snuba-consumer_1 ...
Creating sentry_onpremise_snuba-replacer_1 ...
Creating sentry_onpremise_snuba-sessions-consumer_1 ... done
Creating sentry_onpremise_memcached_1 ... done
Creating sentry_onpremise_symbolicator_1 ... done
Creating sentry_onpremise_snuba-replacer_1 ... done
Creating sentry_onpremise_snuba-api_1 ... done
Creating sentry_onpremise_smtp_1 ... done
Creating sentry_onpremise_snuba-consumer_1 ... done
Creating sentry_onpremise_snuba-outcomes-consumer_1 ... done
Creating sentry_onpremise_postgres_1 ... done
13:05:01 [WARNING] sentry.utils.geo: settings.GEOIP_PATH_MMDB not configured.
13:05:06 [INFO] sentry.plugins.github: apps-not-configured
* Unknown config option found: 'slack.legacy-app'
Operations to perform:
Apply all migrations: admin, auth, contenttypes, jira_ac, nodestore, sentry, sessions, sites, social_auth
Running migrations:
No migrations to apply.
Creating missing DSNs
Correcting Group.num_comments counter
Did not prompt for user creation due to non-interactive shell.
Run the following command to create one yourself (recommended):
docker-compose run --rm web createuser
Cleaning up...
----------------
You're all done! Run the following command to get Sentry running:
docker-compose up -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.