getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
38.94k stars 4.17k forks source link

BrowserPlugin conflicts with django database router #4229

Closed julyclyde closed 8 years ago

julyclyde commented 8 years ago

Sentry 7.7.4 from pypi I set a write read spliting database router in settings DATABASE_ROUTERS. When I start sentry web service, it prints many error messages like:

[ERROR] Error processing 'get_event_preprocessors' on 'BrowserPlugin': 'DatabaseWrapper' object has no attribute 'Database' Traceback (most recent call last): File "/opt/meituan/sentry/lib/python2.7/site-packages/sentry/utils/safe.py", line 25, in safe_execute with transaction.atomic(): File "/opt/meituan/sentry/lib/python2.7/site-packages/django/db/transaction.py", line 237, in enter if not connection.get_autocommit(): File "/opt/meituan/sentry/lib/python2.7/site-packages/django/db/backends/init.py", line 331, in get_autocommit self.ensure_connection() File "/opt/meituan/sentry/lib/python2.7/site-packages/django/db/backends/init.py", line 127, in ensure_connection self.connect() File "/opt/meituan/sentry/lib/python2.7/site-packages/django/db/utils.py", line 86, in exit db_exc_type = getattr(self.wrapper.Database, dj_exc_type.name) AttributeError: 'DatabaseWrapper' object has no attribute 'Database'

dcramer commented 8 years ago

@julyclyde sentry 7 is not supported