[traceback] Task mkt.webapps.tasks.index_webapps[214e687f-8bbf-4a25-9450-737458194359] raised exception: Attr

RESOLVED INVALID

Status

P2
normal
RESOLVED INVALID
5 years ago
4 years ago

People

(Reporter: krupa.mozbugs, Unassigned)

Tracking

Points:
---

Details

(URL)

(Reporter)

Description

5 years ago
AttributeError: 'Webapp' object has no attribute 'collectionmembership_set'

Stacktrace (most recent call last):

  File "celery/task/trace.py", line 233, in trace_task
    R = retval = fun(*args, **kwargs)
  File "celery/task/trace.py", line 420, in __protected_call__
    return self.run(*args, **kwargs)
  File "nuggets/celeryutils.py", line 35, in wrapped
    return fun(*args, **kw)
  File "amo/decorators.py", line 157, in wrapper
    return f(*args, **kw)
  File "amo/decorators.py", line 149, in wrapper
    return f(*args, **kw)
  File "python2.6/contextlib.py", line 34, in __exit__
    self.gen.throw(type, value, traceback)
  File "amo/models.py", line 38, in skip_cache
    yield
  File "amo/decorators.py", line 149, in wrapper
    return f(*args, **kw)
  File "mkt/webapps/tasks.py", line 307, in index_webapps
    doc = WebappIndexer.extract_document(obj.id, obj)
  File "mkt/webapps/models.py", line 1335, in extract_document
    for cms in obj.collectionmembership_set.all()]

sentry: http://sentry.dmz.phx1.mozilla.com/addons/addons-dev/group/16983/
Whatever process that is running this task appears not to be run with settings_local_mkt; it's reporting for addons-dev despite being a Marketplace-specific task.
Priority: -- → P2
Interestingly, it also happens when running AMO tests. Look for "collectionmembership_set" in https://ci-addons.allizom.org/job/amo-master/10490/console (or the console output for any amo-master jenkins build)

Comment 3

4 years ago
This code is no more.
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.