After upgrading to 1.8.5, things have broken.
I was previously using django-sentry 1.6.1 / 736209d8cb65c and upgraded essentially by unpacking the tarball and then symlinking the sentry subdir in a directory on $PYTHONPATH. I also updated django-paging to 0.2.4 and django-indexer to 0.3. I went to the project directory and ran:
$ manage.py migrate sentry ; manage.py syncdb
After restarting apache to make sure all was well I'm now getting the following traceback:
Caught OperationalError while rendering: (1054, "Unknown column 'sentry_groupedmessage.score' in 'field list'")
The settings are basically:
DATABASES = {
'default': {
'ENGINE' : 'django.db.backends.mysql',
'NAME' : 'default_int',
'USER' : 'user',
'PASSWORD' : '<PASS HERE>',
},
'rpc': {
'ENGINE' : 'django.db.backends.mysql',
'NAME' : 'rpc',
'USER' : 'user',
'PASSWORD' : '<PASS HERE>',
},
'sentrylogs': {
'ENGINE' : 'django.db.backends.mysql',
'NAME' : 'django_sentry',
'USER' : 'user',
'PASSWORD' : '<PASS HERE>',
}
}
DATABASE_ROUTERS = [ "otherapp.routers.OtherAppRouter", "sentry.utils.router.SentryRouter" ]
# For django-sentry
SENTRY_KEY = '<ALPHA NUMERIC SENTRY KEY>'
SENTRY_DATABASE_USING = 'sentrylogs'
# The search filter adds the nice search box
SENTRY_FILTERS = (
'sentry.filters.SearchFilter',
'sentry.filters.LevelFilter',
'sentry.filters.LoggerFilter',
'sentry.filters.ServerNameFilter',
'sentry.filters.SiteFilter',
'sentry.filters.StatusFilter',
)
# settings.INSTALLED_APPS has this at the bottom
# For django-sentry
'indexer',
'south',
'paging',
'sentry',
'sentry.client',
'sentry.plugins.sentry_urls',
'sentry.plugins.sentry_sites',
'sentry.plugins.sentry_servers',
So in looking at the error, I tried selecting the table and it worked. So what have I configured wrong? Is the router not working anymore?
$ echo 'select count(*) from sentry_groupedmessage; select score from sentry_groupedmessage;' | ./manage.py dbshell
count(*)
0
The settings also seem to be correct:
>>> os.environ['DJANGO_SETTINGS_MODULE'] = "proj_name.settings"
>>> from sentry.conf import settings
>>> settings.DATABASE_USING
'sentrylogs'
What am I doing wrong here?