ask/celery — Issue #524: Celery crashes with AttributeError: 'MaybeEncodingError' object has no attribute 'exception'
Author: mtirsel
Created: 2011-11-04 22:39:32+00:00
State: open

I upgraded from version 2.3.3 to 2.4 due to problem with revoked task saving before restart and I am getting these exceptions. I need to KILL -KILL celery processes after this happens.

[2011-11-04 23:30:17,959: ERROR/MainProcess] Thread 'ResultHandler' crashed: AttributeError("'MaybeEncodingError' object has no attribute 'exception'",)
Traceback (most recent call last):
File "/var/www/.virtualenv/myproject/lib/python2.6/site-packages/celery/concurrency/processes/pool.py", line 221, in run
return self.body()
File "/var/www/.virtualenv/myproject/lib/python2.6/site-packages/celery/concurrency/processes/pool.py", line 458, in body
on_state_change(task)
File "/var/www/.virtualenv/myproject/lib/python2.6/site-packages/celery/concurrency/processes/pool.py", line 436, in on_state_change
state_handlers[state](*args)
File "/var/www/.virtualenv/myproject/lib/python2.6/site-packages/celery/concurrency/processes/pool.py", line 427, in on_ready
item._set(i, obj)
File "/var/www/.virtualenv/myproject/lib/python2.6/site-packages/celery/concurrency/processes/pool.py", line 1003, in _set
self._errback(self._value)
File "/var/www/.virtualenv/myproject/lib/python2.6/site-packages/celery/concurrency/base.py", line 116, in on_worker_error
errback(exc_info)
File "/var/www/.virtualenv/myproject/lib/python2.6/site-packages/celery/worker/job.py", line 483, in on_failure
if isinstance(exc_info.exception, exceptions.RetryTaskError):
AttributeError: 'MaybeEncodingError' object has no attribute 'exception'