dcramer/sentry — Issue #331: Sentry with a worker -- problems
Author: aknapp
Created: 2012-02-01 17:47:46+00:00
State: open

We recently ditched our old sentry setup (1.x) and started new with 2.2.3. I wanted to use the asynchronous worker setup, but I was unable to get it to work.

From the docs, it seems like the only thing I have to do is set 'SENTRY_USE_QUEUE = True' in the config file, and then start up a worker (which I did with this: 'sentry start worker --config=sentry.conf.py -d'). The worker seemed to start correctly, but no errors were getting processed. I then ran the worker in the foreground with debugging and got this:

worker started with pid 12707
Error indexing document: 'function'
Error indexing document: 'function'
Error indexing document: 'function'
Error indexing document: 'function'
Error indexing document: 'function'
Error indexing document: 'function'
Error indexing document: 'function'
Error indexing document: 'function'
Error indexing document: 'function'
Error indexing document: 'function'
Error indexing document: 'function'
Error indexing document: 'function'
Error indexing document: 'function'
Error indexing document: 'function'
Error indexing document: 'function'
Error indexing document: 'function'
Error indexing document: 'function'
Unable to process log entry: Data truncated for column 'view' at row 1
Unable to process log entry: Data truncated for column 'view' at row 1
Error indexing document: 'function'
Error indexing document: 'function'
Error indexing document: 'function'
Error indexing document: 'function'

Any ideas? I went back to the standalone server for now.

Thanks,
Andy