New issue 347: AttributeError: 'DisabledBackend' object has no attribute
'_get_task_meta_for'
https://bitbucket.org/conservancy/kallithea/issues/347/attributeerror-disabledbackend-object-has
Brandon Jones:
I can’t seem to get Celery 3.1.26.post2 to play nice with Kallithea 0.4.1. I
have tried multiple different configurations for the backend \(rpc, amqp, db\)
to no avail. Here is my stack trace:
```
Sep 17 00:17:01 wti-repos kallithea[2218]: 2019-09-17 00:17:01.678 DEBUG [amqp]
Start from server, version: 0.9, properties: {u'information': u'Licensed under
the MPL. See http://www.rabbitmq.com/', u'product': u'RabbitMQ', u'copyright$
Sep 17 00:17:01 wti-repos kallithea[2218]: 2019-09-17 00:17:01.679 DEBUG [amqp]
Open OK!
Sep 17 00:17:01 wti-repos kallithea[2218]: 2019-09-17 00:17:01.679 DEBUG [amqp]
using channel_id: 1
Sep 17 00:17:01 wti-repos kallithea[2218]: 2019-09-17 00:17:01.680 DEBUG [amqp]
Channel open
Sep 17 00:17:03 wti-repos kallithea[2218]: Traceback (most recent call last):
Sep 17 00:17:03 wti-repos kallithea[2218]: File
"/srv/kallithea/venv/lib/python2.7/site-packages/tg/appwrappers/session.py",
line 71, in __call__
Sep 17 00:17:03 wti-repos kallithea[2218]: response =
self.next_handler(controller, environ, context)
Sep 17 00:17:03 wti-repos kallithea[2218]: File
"/srv/kallithea/venv/lib/python2.7/site-packages/tg/appwrappers/i18n.py", line
71, in __call__
Sep 17 00:17:03 wti-repos kallithea[2218]: return
self.next_handler(controller, environ, context)
Sep 17 00:17:03 wti-repos kallithea[2218]: File
"/srv/kallithea/venv/lib/python2.7/site-packages/tg/wsgiapp.py", line 285, in
_dispatch
Sep 17 00:17:03 wti-repos kallithea[2218]: return controller(environ,
context)
Sep 17 00:17:03 wti-repos kallithea[2218]: File
"/srv/kallithea/venv/lib/python2.7/site-packages/kallithea/lib/base.py", line
539, in __call__
Sep 17 00:17:03 wti-repos kallithea[2218]: return super(BaseController,
self).__call__(environ, context)
Sep 17 00:17:03 wti-repos kallithea[2218]: File
"/srv/kallithea/venv/lib/python2.7/site-packages/tg/controllers/dispatcher.py",
line 119, in __call__
Sep 17 00:17:03 wti-repos kallithea[2218]: response =
self._perform_call(context)
Sep 17 00:17:03 wti-repos kallithea[2218]: File
"/srv/kallithea/venv/lib/python2.7/site-packages/tg/controllers/dispatcher.py",
line 108, in _perform_call
Sep 17 00:17:03 wti-repos kallithea[2218]: r = self._call(action, params,
remainder=remainder, context=context)
Sep 17 00:17:03 wti-repos kallithea[2218]: File
"/srv/kallithea/venv/lib/python2.7/site-packages/tg/controllers/decoratedcontroller.py",
line 131, in _call
Sep 17 00:17:03 wti-repos kallithea[2218]: output =
controller_caller(context_config, bound_controller_callable, remainder, params)
Sep 17 00:17:03 wti-repos kallithea[2218]: File
"/srv/kallithea/venv/lib/python2.7/site-packages/tg/decorators.py", line 44, in
_decorated_controller_caller
Sep 17 00:17:03 wti-repos kallithea[2218]: return
application_controller_caller(tg_config, controller, remainder, params)
Sep 17 00:17:03 wti-repos kallithea[2218]: File
"/srv/kallithea/venv/lib/python2.7/site-packages/tg/configuration/app_config.py",
line 127, in call_controller
Sep 17 00:17:03 wti-repos kallithea[2218]: return controller(*remainder,
**params)
Sep 17 00:17:03 wti-repos kallithea[2218]: File
"</srv/kallithea/venv/local/lib/python2.7/site-packages/decorator.pyc:decorator-gen-15>",
line 2, in repo_check
Sep 17 00:17:03 wti-repos kallithea[2218]:
Sep 17 00:17:03 wti-repos kallithea[2218]: File
"/srv/kallithea/venv/lib/python2.7/site-packages/kallithea/lib/auth.py", line
797, in __wrapper
Sep 17 00:17:03 wti-repos kallithea[2218]: return func(*fargs, **fkwargs)
Sep 17 00:17:03 wti-repos kallithea[2218]: File
"</srv/kallithea/venv/local/lib/python2.7/site-packages/decorator.pyc:decorator-gen-14>",
line 2, in repo_check
Sep 17 00:17:03 wti-repos kallithea[2218]:
Sep 17 00:17:03 wti-repos kallithea[2218]: File
"/srv/kallithea/venv/lib/python2.7/site-packages/kallithea/lib/base.py", line
627, in jsonify
Sep 17 00:17:03 wti-repos kallithea[2218]: data = func(*args, **kwargs)
Sep 17 00:17:03 wti-repos kallithea[2218]: File
"/srv/kallithea/venv/lib/python2.7/site-packages/kallithea/controllers/admin/repos.py",
line 189, in repo_check
Sep 17 00:17:03 wti-repos kallithea[2218]: if task.failed():
Sep 17 00:17:03 wti-repos kallithea[2218]: File
"/srv/kallithea/venv/lib/python2.7/site-packages/celery/result.py", line 267,
in failed
Sep 17 00:17:03 wti-repos kallithea[2218]: return self.state ==
states.FAILURE
Sep 17 00:17:03 wti-repos kallithea[2218]: File
"/srv/kallithea/venv/lib/python2.7/site-packages/celery/result.py", line 394,
in state
Sep 17 00:17:03 wti-repos kallithea[2218]: return
self._get_task_meta()['status']
Sep 17 00:17:03 wti-repos kallithea[2218]: File
"/srv/kallithea/venv/lib/python2.7/site-packages/celery/result.py", line 339,
in _get_task_meta
Sep 17 00:17:03 wti-repos kallithea[2218]: return
self._maybe_set_cache(self.backend.get_task_meta(self.id))
Sep 17 00:17:03 wti-repos kallithea[2218]: File
"/srv/kallithea/venv/lib/python2.7/site-packages/celery/backends/base.py", line
307, in get_task_meta
Sep 17 00:17:03 wti-repos kallithea[2218]: meta =
self._get_task_meta_for(task_id)
Sep 17 00:17:03 wti-repos kallithea[2218]: AttributeError: 'DisabledBackend'
object has no attribute '_get_task_meta_for'
```
_______________________________________________
kallithea-general mailing list
[email protected]
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general