Closed Bug 937777 Opened 11 years ago Closed 10 years ago

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

Categories

(Marketplace Graveyard :: General, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: krupa.mozbugs, Unassigned)

References

()

Details

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)
This code is no more.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.