Unable to upgrade from
to 10 / 20 .root@sentry:/home/cosmic/sentry/onpremise# docker-compose run --rm web upgrade && docker-compose up -d
Starting sentry_onpremise_memcached_1 … done
Starting sentry_onpremise_zookeeper_1 … done
Starting sentry_onpremise_postgres_1 … done
Starting sentry_onpremise_clickhouse_1 … done
Starting sentry_onpremise_redis_1 … done
Starting sentry_onpremise_smtp_1 … done
Starting sentry_onpremise_symbolicator_1 … done
Starting sentry_onpremise_kafka_1 … done
Starting sentry_onpremise_snuba-sessions-consumer_1 … done
Starting sentry_onpremise_snuba-consumer_1 … done
Starting sentry_onpremise_snuba-replacer_1 … done
Starting sentry_onpremise_snuba-api_1 … done
Starting sentry_onpremise_snuba-outcomes-consumer_1 … done
22:01:38 [WARNING] sentry.utils.geo: settings.GEOIP_PATH_MMDB not configured.
/usr/local/lib/python2.7/site-packages/cryptography/init.py:39: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
CryptographyDeprecationWarning,
22:02:06 [INFO] sentry.plugins.github: apps-not-configured
Traceback (most recent call last):
File "/usr/local/bin/sentry", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/site-packages/sentry/runner/__init__.py", line 166, in main
cli(prog_name=get_prog(), obj={}, max_content_width=100)
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/sentry/runner/decorators.py", line 30, in inner
return ctx.invoke(f, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/sentry/runner/commands/upgrade.py", line 174, in upgrade
_upgrade(not noinput, traceback, verbosity, not no_repair, with_nodestore)
File "/usr/local/lib/python2.7/site-packages/sentry/runner/commands/upgrade.py", line 121, in _upgrade
_migrate_from_south(verbosity)
File "/usr/local/lib/python2.7/site-packages/sentry/runner/commands/upgrade.py", line 93, in _migrate_from_south
if not _has_south_history(connection):
File "/usr/local/lib/python2.7/site-packages/sentry/runner/commands/upgrade.py", line 78, in _has_south_history
cursor = connection.cursor()
File "/usr/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 254, in cursor
return self._cursor()
File "/usr/local/lib/python2.7/site-packages/sentry/db/postgres/decorators.py", line 44, in inner
return func(self, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/sentry/db/postgres/base.py", line 97, in _cursor
return super(DatabaseWrapper, self)._cursor()
File "/usr/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 229, in _cursor
self.ensure_connection()
File "/usr/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 213, in ensure_connection
self.connect()
File "/usr/local/lib/python2.7/site-packages/django/db/utils.py", line 94, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/usr/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 213, in ensure_connection
self.connect()
File "/usr/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 189, in connect
self.connection = self.get_new_connection(conn_params)
File "/usr/local/lib/python2.7/site-packages/django/db/backends/postgresql/base.py", line 176, in get_new_connection
connection = Database.connect(**conn_params)
File "/usr/local/lib/python2.7/site-packages/psycopg2/__init__.py", line 127, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
django.db.utils.OperationalError: could not connect to server: Connection refused
Is the server running on host "postgres" (172.20.0.17) and accepting
TCP/IP connections on port 5432?
root@sentry:/home/cosmic/sentry/onpremise#
I have tried all what was written online, here on forums, nothing helped. And a few statements about beying on version 9.1.2 to be able to use the script to automatically upgrade are bening, since this procedure clearly fails. If I would be the only one with this issue, there wont be so many posts about the upgrade from 9 to 10.
I am confused as to what is an upgrade procedure, I am thinking of testing with clean machine deployent fresh install and migrate db? Is there a better procedure to fix this?
I have runned also:
root@sentry:/home/cosmic/sentry/onpremise# docker-compose build --pull && docker-compose run --rm web upgrade && docker-compose up -d
zookeeper uses an image, skipping
kafka uses an image, skipping
postgres uses an image, skipping
symbolicator uses an image, skipping
smtp uses an image, skipping
memcached uses an image, skipping
redis uses an image, skipping
relay uses an image, skipping
clickhouse uses an image, skipping
snuba-api uses an image, skipping
snuba-replacer uses an image, skipping
snuba-outcomes-consumer uses an image, skipping
snuba-consumer uses an image, skipping
snuba-sessions-consumer uses an image, skipping
nginx uses an image, skipping
Building snuba-cleanup
Step 1/5 : ARG BASE_IMAGE
Step 2/5 : FROM ${BASE_IMAGE}
latest: Pulling from getsentry/snuba
Digest: sha256:e1dc2c55ab940b4e9a5d733164885b305e994d112028460a711f0470b35e0668
Status: Image is up to date for getsentry/snuba:latest
---> 4e51e4e88582
Step 3/5 : RUN apt-get update && apt-get install -y --no-install-recommends cron && rm -r /var/lib/apt/lists/*
---> Using cache
---> 9df8a5845c23
Step 4/5 : COPY entrypoint.sh /entrypoint.sh
---> Using cache
---> 1831a97bd459
Step 5/5 : ENTRYPOINT ["/entrypoint.sh"]
---> Using cache
---> 19da727a0295
Successfully built 19da727a0295
Successfully tagged snuba-cleanup-onpremise-local:latest
Building worker
Step 1/5 : ARG SENTRY_VERSION=latest
Step 2/5 : ARG SENTRY_IMAGE
Step 3/5 : FROM ${SENTRY_IMAGE:-getsentry/sentry:$SENTRY_VERSION}
latest: Pulling from getsentry/sentry
Digest: sha256:27d0771025f721702a57f45631cf4ba35d2502b6d8d957fe03b788af890172d6
Status: Image is up to date for getsentry/sentry:latest
---> 01780055e2bf
Step 4/5 : COPY . /usr/src/sentry
---> Using cache
---> 4eca4bab4894
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi
---> Using cache
---> 78a78f51f233
Successfully built 78a78f51f233
Successfully tagged sentry-onpremise-local:latest
Building sentry-cleanup
Step 1/5 : ARG BASE_IMAGE
Step 2/5 : FROM ${BASE_IMAGE}
ERROR: Service 'sentry-cleanup' failed to build: pull access denied for sentry-onpremise-local, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
That gave also errors, so at every step are issues, I got it working last on 9.1.2 after a restart I cannot seem to get it working, telling me nginx is in use, I also opened this github issue to help track such issues and maybe find a fix so others can avoid it.
This latest log saved from running install.sh attempts from version 9.1.2. according to the documentation.
root@sentry:/home/cosmic/sentry/onpremise# cat sentry_install_log-2020-06-11_19-08-07.txt
Checking minimum requirements...
Removing network onpremise_default
Network onpremise_default not found.
Stopping sentry_onpremise_snuba-sessions-consumer_1 ...
Stopping sentry_onpremise_snuba-consumer_1 ...
Stopping sentry_onpremise_snuba-outcomes-consumer_1 ...
Stopping sentry_onpremise_snuba-api_1 ...
Stopping sentry_onpremise_snuba-replacer_1 ...
Stopping sentry_onpremise_smtp_1 ...
Stopping sentry_onpremise_postgres_1 ...
Stopping sentry_onpremise_symbolicator_1 ...
Stopping sentry_onpremise_memcached_1 ...
Stopping sentry_onpremise_kafka_1 ...
Stopping sentry_onpremise_clickhouse_1 ...
Stopping sentry_onpremise_zookeeper_1 ...
Stopping sentry_onpremise_redis_1 ...
Stopping sentry_onpremise_postgres_1 ... done
Stopping sentry_onpremise_memcached_1 ... done
Stopping sentry_onpremise_smtp_1 ... done
Stopping sentry_onpremise_symbolicator_1 ... done
Stopping sentry_onpremise_snuba-api_1 ... done
Stopping sentry_onpremise_snuba-sessions-consumer_1 ... done
Stopping sentry_onpremise_snuba-replacer_1 ... done
Stopping sentry_onpremise_snuba-outcomes-consumer_1 ... done
Stopping sentry_onpremise_snuba-consumer_1 ... done
Stopping sentry_onpremise_redis_1 ... done
Stopping sentry_onpremise_clickhouse_1 ... done
Stopping sentry_onpremise_kafka_1 ... done
Stopping sentry_onpremise_zookeeper_1 ... done
Removing sentry_onpremise_snuba-sessions-consumer_1 ...
Removing sentry_onpremise_snuba-consumer_1 ...
Removing sentry_onpremise_snuba-outcomes-consumer_1 ...
Removing sentry_onpremise_snuba-api_1 ...
Removing sentry_onpremise_snuba-replacer_1 ...
Removing sentry_onpremise_smtp_1 ...
Removing sentry_onpremise_postgres_1 ...
Removing sentry_onpremise_symbolicator_1 ...
Removing sentry_onpremise_memcached_1 ...
Removing sentry_onpremise_kafka_1 ...
Removing sentry_onpremise_clickhouse_1 ...
Removing sentry_onpremise_zookeeper_1 ...
Removing sentry_onpremise_redis_1 ...
Removing sentry_onpremise_snuba-sessions-consumer_1 ... done
Removing sentry_onpremise_snuba-api_1 ... done
Removing sentry_onpremise_snuba-replacer_1 ... done
Removing sentry_onpremise_snuba-consumer_1 ... done
Removing sentry_onpremise_snuba-outcomes-consumer_1 ... done
Removing sentry_onpremise_memcached_1 ... done
Removing sentry_onpremise_smtp_1 ... done
Removing sentry_onpremise_symbolicator_1 ... done
Removing sentry_onpremise_postgres_1 ... done
Removing sentry_onpremise_redis_1 ... done
Removing sentry_onpremise_clickhouse_1 ... done
Removing sentry_onpremise_zookeeper_1 ... done
Removing sentry_onpremise_kafka_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.
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 symbolicator-cleanup snuba-cleanup sentry-cleanup worker ingest-consumer web cron post-process-forwarder
latest: Pulling from getsentry/sentry
Digest: sha256:57323e24d454aea64ca10ecf222b6c92022f0f1637caecafba3e08ffd83756be
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}
---> 3edde8d4b2ac
Step 4/5 : COPY . /usr/src/sentry
---> Using cache
---> f0c27ea60b52
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi
---> Using cache
---> 8d26f1b660de
Successfully built 8d26f1b660de
Successfully tagged sentry-onpremise-local:latest
memcached uses an image, skipping
postgres uses an image, skipping
redis uses an image, skipping
symbolicator uses an image, skipping
smtp uses an image, skipping
zookeeper uses an image, skipping
kafka uses an image, skipping
relay uses an image, skipping
clickhouse uses an image, skipping
snuba-api uses an image, skipping
snuba-outcomes-consumer uses an image, skipping
snuba-consumer uses an image, skipping
snuba-replacer uses an image, skipping
snuba-sessions-consumer uses an image, skipping
nginx uses an image, skipping
Building symbolicator-cleanup ...
Building ingest-consumer ...
Building post-process-forwarder ...
Building cron ...
Building web ...
Building worker ...
Building snuba-cleanup ...
Building sentry-cleanup ...
Building symbolicator-cleanup
Building cron
Building ingest-consumer
Building worker
Building sentry-cleanup
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
---> 011b3c7d84d5
Step 4/5 : COPY entrypoint.sh /entrypoint.sh
---> Using cache
---> 11a211879d05
Step 5/5 : ENTRYPOINT ["/entrypoint.sh"]
---> Using cache
---> 16633d7826a4
Successfully built 16633d7826a4
Step 1/5 : ARG BASE_IMAGE
Step 2/5 : FROM ${BASE_IMAGE}
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=latestSuccessfully tagged symbolicator-cleanup-onpremise-local:latest
---> 8d26f1b660de
Building symbolicator-cleanup ... done
Building snuba-cleanup
---> 3edde8d4b2ac
Step 4/5 : COPY . /usr/src/sentry
---> Using cache
---> f0c27ea60b52
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi
---> Using cache
---> 8d26f1b660de
Successfully built 8d26f1b660de
Step 2/5 : ARG SENTRY_IMAGE
Step 3/5 : FROM ${SENTRY_IMAGE:-getsentry/sentry:$SENTRY_VERSION}
Step 3/5 : RUN apt-get update && apt-get install -y --no-install-recommends cron && rm -r /var/lib/apt/lists/*
Step 1/5 : ARG SENTRY_VERSION=latest
Step 2/5 : ARG SENTRY_IMAGE
Step 3/5 : FROM ${SENTRY_IMAGE:-getsentry/sentry:$SENTRY_VERSION}
---> 3edde8d4b2ac
Step 4/5 : COPY . /usr/src/sentry
---> Using cache
---> f0c27ea60b52
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi
---> Using cache
---> 8d26f1b660de
Successfully built 8d26f1b660de
Successfully tagged sentry-onpremise-local:latest
Building ingest-consumer ... done
Building post-process-forwarder
---> 3edde8d4b2ac
Step 4/5 : COPY . /usr/src/sentry
---> Using cache
---> f0c27ea60b52
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi
---> Using cache
---> 8d26f1b660de
---> Using cache
---> c0c735cedaf7
Step 4/5 : COPY entrypoint.sh /entrypoint.sh
Successfully built 8d26f1b660de
Step 1/5 : ARG BASE_IMAGE
Step 2/5 : FROM ${BASE_IMAGE}
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-onpremise-local:latest
Building worker ... done
Building web
---> Using cache
---> 4793ef51f86c
Step 5/5 : ENTRYPOINT ["/entrypoint.sh"]
---> Using cache
---> 68076a15d109
Successfully built 68076a15d109
---> 1370ed20ef93
Step 3/5 : RUN apt-get update && apt-get install -y --no-install-recommends cron && rm -r /var/lib/apt/lists/*
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
---> 3edde8d4b2ac
Building sentry-cleanup ... done
Successfully tagged sentry-onpremise-local:latest
Building cron ... done
Step 4/5 : COPY . /usr/src/sentry
---> Using cache
---> f0c27ea60b52
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi
---> Using cache
---> 8d26f1b660de
Successfully built 8d26f1b660de
---> 3edde8d4b2ac
Step 4/5 : COPY . /usr/src/sentry
Successfully tagged sentry-onpremise-local:latest
---> Using cache
---> a8a3f6ce591b
Step 4/5 : COPY entrypoint.sh /entrypoint.sh
---> Using cache
---> 6d21933addf7
Step 5/5 : ENTRYPOINT ["/entrypoint.sh"]
---> Using cache
---> bcf336b7637b
Successfully built bcf336b7637b
Building web ... done
---> Using cache
Successfully tagged snuba-cleanup-onpremise-local:latest
Building snuba-cleanup ... done
---> f0c27ea60b52
Step 5/5 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi
---> Using cache
---> 8d26f1b660de
Successfully built 8d26f1b660de
Successfully tagged sentry-onpremise-local:latest
Building post-process-forwarder ... 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_clickhouse_1 ...
Creating sentry_onpremise_zookeeper_1 ...
Creating sentry_onpremise_clickhouse_1 ... done
Creating sentry_onpremise_redis_1 ... done
Creating sentry_onpremise_zookeeper_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-06-11 19:09:08,856 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-06-11 19:09:10,860 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-06-11 19:09:11,985 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-06-11 19:09:11,986 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-06-11 19:09:11,986 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-06-11 19:09:11,986 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-06-11 19:09:11,986 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-06-11 19:09:11,987 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-06-11 19:09:11,987 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-06-11 19:09:12,028 Creating tables for storage events
2020-06-11 19:09:12,032 Migrating storage events
2020-06-11 19:09:12,066 Creating tables for storage errors
2020-06-11 19:09:12,069 Migrating storage errors
2020-06-11 19:09:12,093 Creating tables for storage groupedmessages
2020-06-11 19:09:12,095 Migrating storage groupedmessages
2020-06-11 19:09:12,100 Creating tables for storage groupassignees
2020-06-11 19:09:12,109 Migrating storage groupassignees
2020-06-11 19:09:12,114 Creating tables for storage outcomes_raw
2020-06-11 19:09:12,117 Migrating storage outcomes_raw
2020-06-11 19:09:12,124 Creating tables for storage outcomes_hourly
2020-06-11 19:09:12,127 Migrating storage outcomes_hourly
2020-06-11 19:09:12,130 Creating tables for storage sessions_raw
2020-06-11 19:09:12,139 Migrating storage sessions_raw
2020-06-11 19:09:12,145 Creating tables for storage sessions_hourly
2020-06-11 19:09:12,190 Migrating storage sessions_hourly
2020-06-11 19:09:12,197 Creating tables for storage transactions
2020-06-11 19:09:12,199 Migrating storage transactions
sentry-postgres-new
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
The database cluster will be initialized with locale "en_US.utf8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".
Data page checksums are disabled.
fixing permissions on existing directory /var/lib/postgresql/9.6/data ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default timezone ... Etc/UTC
selecting dynamic shared memory implementation ... posix
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... ok
Success. You can now start the database server using:
pg_ctl -D /var/lib/postgresql/9.6/data -l logfile start
WARNING: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
--auth-local and --auth-host, the next time you run initdb.
*failure*
Consult the last few lines of "pg_upgrade_server.log" for
the probable cause of the failure.
There seems to be a postmaster servicing the old cluster.
Please shutdown that postmaster and try again.
Failure, exiting
Cleaning up...
root@sentry:/home/cosmic/sentry/onpremise#