Setry upgrade got error relation "south_migrationhistory" does not exist

Hi all
debian 10, postgresql 11
I try to use this instraction


$pip install -U sentry work well

but sentry upgrade got error

$ sentry upgrade
04:47:49 [WARNING] sentry.utils.geo: settings.GEOIP_PATH_MMDB not configured.
04:47:52 [INFO] sentry.plugins.github: apps-not-configured
Traceback (most recent call last):
File “/home/sentry/sentry_app/bin/sentry”, line 8, in
sys.exit(main())
File “/home/sentry/sentry_app/lib/python2.7/site-packages/sentry/runner/init.py”, line 164, in main
cli(prog_name=get_prog(), obj={}, max_content_width=100)
File “/home/sentry/sentry_app/lib/python2.7/site-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/home/sentry/sentry_app/lib/python2.7/site-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/home/sentry/sentry_app/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/sentry/sentry_app/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/sentry/sentry_app/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/sentry/sentry_app/lib/python2.7/site-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/sentry/sentry_app/lib/python2.7/site-packages/sentry/runner/decorators.py”, line 30, in inner
return ctx.invoke(f, *args, **kwargs)
File “/home/sentry/sentry_app/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/sentry/sentry_app/lib/python2.7/site-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/sentry/sentry_app/lib/python2.7/site-packages/sentry/runner/commands/upgrade.py”, line 168, in upgrade
_upgrade(not noinput, traceback, verbosity, not no_repair)
File “/home/sentry/sentry_app/lib/python2.7/site-packages/sentry/runner/commands/upgrade.py”, line 121, in _upgrade
_migrate_from_south(verbosity)
File “/home/sentry/sentry_app/lib/python2.7/site-packages/sentry/runner/commands/upgrade.py”, line 93, in _migrate_from_south
if not _has_south_history(connection):
File “/home/sentry/sentry_app/lib/python2.7/site-packages/sentry/runner/commands/upgrade.py”, line 80, in _has_south_history
cursor.execute(“SELECT 1 FROM south_migrationhistory LIMIT 1”)
File “/home/sentry/sentry_app/lib/python2.7/site-packages/sentry_sdk/integrations/django/init.py”, line 469, in execute
return real_execute(self, sql, params)
File “/home/sentry/sentry_app/lib/python2.7/site-packages/django/db/backends/utils.py”, line 64, in execute
return self.cursor.execute(sql, params)
File “/home/sentry/sentry_app/lib/python2.7/site-packages/django/db/utils.py”, line 95, in exit
six.reraise(dj_exc_type, dj_exc_value, traceback)
File “/home/sentry/sentry_app/lib/python2.7/site-packages/django/db/backends/utils.py”, line 62, in execute
return self.cursor.execute(sql)
File “/home/sentry/sentry_app/lib/python2.7/site-packages/sentry/db/postgres/decorators.py”, line 81, in inner
raise_the_exception(self.db, e)
File “/home/sentry/sentry_app/lib/python2.7/site-packages/sentry/db/postgres/decorators.py”, line 79, in inner
return func(self, *args, **kwargs)
File “/home/sentry/sentry_app/lib/python2.7/site-packages/sentry/db/postgres/decorators.py”, line 22, in inner
return func(self, *args, **kwargs)
File “/home/sentry/sentry_app/lib/python2.7/site-packages/sentry/db/postgres/decorators.py”, line 99, in inner
six.reraise(exc_info[0], exc_info0, exc_info[2])
File “/home/sentry/sentry_app/lib/python2.7/site-packages/sentry/db/postgres/decorators.py”, line 95, in inner
return func(self, sql, *args, **kwargs)
File “/home/sentry/sentry_app/lib/python2.7/site-packages/sentry/db/postgres/base.py”, line 77, in execute
return self.cursor.execute(sql)
django.db.utils.ProgrammingError: UndefinedTable(‘ERROR: relation “south_migrationhistory” does not exist \ nLINE 1: SELECT 1 FROM south_migrationhistory LIMIT 1 \ n\nLINE 1: SELECT 1 FROM south_migrationhistory LIMIT 1\n ^\n’,)
SQL: SELECT 1 FROM south_migrationhistory LIMIT 1

what am I doing wrong?
help me please

Hi,

This article seems to be for an older version of Sentry. You may find the official instructions (and a simple install script) at https://github.com/getsentry/onpremise

maybe is there an instruction without using docker for sentry10 ?

Not from us as we definitely don’t recommend this path. You are free to inspect our Dockerfile to see what’s needed to run the PyPI wheel and then get the service matrix and configuration from the docker-compose.yml file we provide and work your way from there.