OK,
I've been tracing this down this morning.
The offending line is line 107 of baruwa/tasks/messages.py [0] -
task.id seems to no longer exist in the latest and greatest version of
celery!
And now onto the real issue, which I'll start a separate thread for if
I can't work it out myself!
Baruwa now can't seem to find MailScanner's quarantine.... and
therefore can't release or preview any messages!
Regards,
Chris
[0]
https://github.com/akissa/baruwa2/blob/fcd5f59f45c6581589e1dd0445d1059d3cdccab1/baruwa/tasks/messages.py#l107
On Mon, 12 Aug 2013 22:11:33 +0100, Chris Malton wrote:
For some reason, since doing some routine updates on our Mail
gateway, Baruwa is not happy!
[Mon Aug 12 22:02:20 2013] [error] [client 10.10.14.10] Error - <type
'exceptions.AttributeError'>: 'function' object has no attribute 'id'
The full traceback is as follows:
URL: http://mailgate-01.kegs.local/messages/detail/7470.json
File
'/home/baruwa/px/lib/python2.7/site-packages/weberror/errormiddleware.py',
line 162 in __call__
app_iter = self.application(environ, sr_checker)
File
'/home/baruwa/px/lib/python2.7/site-packages/repoze/who/middleware.py',
line 107 in __call__
app_iter = app(environ, wrapper.wrap_start_response)
File
'/home/baruwa/px/lib/python2.7/site-packages/beaker/middleware.py',
line 155 in __call__
return self.wrap_app(environ, session_start_response)
File
'/home/baruwa/px/lib/python2.7/site-packages/routes/middleware.py',
line 131 in __call__
response = self.app(environ, start_response)
File '/home/baruwa/px/lib/python2.7/site-packages/pylons/wsgiapp.py',
line 103 in __call__
response = self.dispatch(controller, environ, start_response)
File '/home/baruwa/px/lib/python2.7/site-packages/pylons/wsgiapp.py',
line 313 in dispatch
return controller(environ, start_response)
File
'/home/baruwa/px/lib/python2.7/site-packages/baruwa/lib/base.py',
line
93 in __call__
return WSGIController.__call__(self, environ, start_response)
File
'/home/baruwa/px/lib/python2.7/site-packages/pylons/controllers/core.py',
line 214 in __call__
response = self._dispatch_call()
File
'/home/baruwa/px/lib/python2.7/site-packages/pylons/controllers/core.py',
line 164 in _dispatch_call
response = self._inspect_call(func)
File
'/home/baruwa/px/lib/python2.7/site-packages/pylons/controllers/core.py',
line 107 in _inspect_call
result = self._perform_call(func, args)
File
'/home/baruwa/px/lib/python2.7/site-packages/pylons/controllers/core.py',
line 57 in _perform_call
return func(**args)
File '<string>', line 2 in detail
File
'/home/baruwa/px/lib/python2.7/site-packages/repoze/what/plugins/pylonshq/protectors.py',
line 118 in wrap_action
return action_(*args, **kwargs)
File
'/home/baruwa/px/lib/python2.7/site-packages/baruwa/controllers/messages.py',
line 281 in detail
task.wait(30)
File '/home/baruwa/px/lib/python2.7/site-packages/celery/result.py',
line 108 in get
interval=interval)
File
'/home/baruwa/px/lib/python2.7/site-packages/celery/backends/amqp.py',
line 151 in wait_for
raise self.exception_to_python(meta['result'])
AttributeError: 'function' object has no attribute 'id'
What have we managed to do? I suspect the problem lies outside
Baruwa, but I don't really have time to follow it right now...
Chris
_______________________________________________
http://pledgie.com/campaigns/12056
_______________________________________________
http://pledgie.com/campaigns/12056