Cannot migrate from 8.x to 10.x using export/import


I’m trying to migrate from a Sentry v8.x instance on an old server to a Sentry v10.x auto-installed from repository on a brand new server.

However, while sentry export from 8.x works, sentry import from 10.x throws the following error :

11:18:17 [WARNING] sentry.utils.geo: settings.GEOIP_PATH_MMDB not configured.
11:18:22 [INFO] sentry.plugins.github: apps-not-configured
Traceback (most recent call last):
  File "/usr/local/bin/sentry", line 8, in <module>
  File "/usr/local/lib/python2.7/site-packages/sentry/runner/", line 165, in main
    cli(prog_name=get_prog(), obj={}, max_content_width=100)
  File "/usr/local/lib/python2.7/site-packages/click/", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/click/", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/site-packages/click/", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/site-packages/click/", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/site-packages/click/", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/click/", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/sentry/runner/", line 30, in inner
    return ctx.invoke(f, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/click/", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/sentry/runner/commands/", line 15, in import_
    for obj in serializers.deserialize("json", src, stream=True, use_natural_keys=True):
  File "/usr/local/lib/python2.7/site-packages/django/core/serializers/", line 88, in Deserializer
    six.reraise(DeserializationError, DeserializationError(e), sys.exc_info()[2])
  File "/usr/local/lib/python2.7/site-packages/django/core/serializers/", line 82, in Deserializer
    for obj in PythonDeserializer(objects, **options):
  File "/usr/local/lib/python2.7/site-packages/django/core/serializers/", line 129, in Deserializer
    field = Model._meta.get_field(field_name)
  File "/usr/local/lib/python2.7/site-packages/django/db/models/", line 619, in get_field
    raise FieldDoesNotExist("%s has no field named '%s'" % (self.object_name, field_name))
django.core.serializers.base.DeserializationError: ContentType has no field named 'name'
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/", line 801, in __bootstrap_inner
  File "/usr/local/lib/python2.7/site-packages/sentry_sdk/integrations/", line 69, in run
  File "/usr/local/lib/python2.7/site-packages/sentry_sdk/integrations/", line 67, in run
    return old_run_func(self, *a, **kw)
  File "/usr/local/lib/python2.7/", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/lib/python2.7/site-packages/sentry/utils/", line 101, in worker
    logger.exception("Unable to incr internal metric")
  File "/usr/local/lib/python2.7/logging/", line 1207, in exception
    self.error(msg, *args, **kwargs)
  File "/usr/local/lib/python2.7/logging/", line 1200, in error
    self._log(ERROR, msg, args, **kwargs)
  File "/usr/local/lib/python2.7/logging/", line 1292, in _log
    record = self.makeRecord(, level, fn, lno, msg, args, exc_info, func, extra)
  File "/usr/local/lib/python2.7/site-packages/celery/utils/", line 276, in makeRecord
    record.processName = current_process()._name
AttributeError: 'NoneType' object has no attribute '_name'

How do I fix this ?



we have a sentry on-permise server start 5 years ago, before 8.x, upgrade server only need to do pip upgrade and change some configuration.

But starting from 9.0, the on-premise dependency becomes complicated, we can’t find document about how to upgrade to 9.x, 10.x on self-hosted documents.

How to upgrade to new version safely and enjoy new feature? commercial support like atlassian and gitlab are welcome.

1 Like