Page MenuHomePhabricator
Paste P180

Error trace encountered working on Bug T74747
ActivePublic

Authored by Fhocutt on Dec 26 2014, 10:52 PM.
After running sudo stop wikimetrics-queue:
vagrant@mediawiki-vagrant:/vagrant/wikimetrics$ nosetests /vagrant/wikimetrics/tests/test_controllers/test_reports.py
....................E
======================================================================
ERROR: test_save_public_report (tests.test_controllers.test_reports.ReportsControllerTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/vagrant/wikimetrics/tests/test_controllers/test_reports.py", line 385, in test_save_public_report
response = self.client.post('/reports/set-public/{}'.format(report.id))
File "/usr/local/lib/python2.7/dist-packages/werkzeug/test.py", line 772, in post
return self.open(*args, **kw)
File "/usr/local/lib/python2.7/dist-packages/flask/testing.py", line 108, in open
follow_redirects=follow_redirects)
File "/usr/local/lib/python2.7/dist-packages/werkzeug/test.py", line 736, in open
response = self.run_wsgi_app(environ, buffered=buffered)
File "/usr/local/lib/python2.7/dist-packages/werkzeug/test.py", line 659, in run_wsgi_app
rv = run_wsgi_app(self.application, environ, buffered=buffered)
File "/usr/local/lib/python2.7/dist-packages/werkzeug/test.py", line 855, in run_wsgi_app
app_iter = app(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1836, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/vagrant/wikimetrics/wikimetrics/controllers/reports.py", line 60, in set_public_report
data = report_result_json(result_key).data
File "/vagrant/wikimetrics/wikimetrics/controllers/reports.py", line 385, in report_result_json
user_names = get_usernames_for_task_result(result[result_key])
File "/vagrant/wikimetrics/wikimetrics/controllers/reports.py", line 202, in get_usernames_for_task_result
user_names = g.cohort_service.get_wikiusernames_for_cohort(cohort_id, session)
File "/usr/local/lib/python2.7/dist-packages/werkzeug/local.py", line 338, in __getattr__
return getattr(self._get_current_object(), name)
AttributeError: '_AppCtxGlobals' object has no attribute 'cohort_service'

Event Timeline

Fhocutt edited the content of this paste. (Show Details)Dec 26 2014, 10:52 PM
Fhocutt changed the title of this paste from untitled to Error trace encountered working on Bug T74747.
Fhocutt updated the paste's language from autodetect to python.