Page MenuHomePhabricator

ORES internal server error for edit with many added links
Closed, ResolvedPublic

Description

In order to test some some JobQueue features I've created a page with 500 links in labs and ORESFetchScoreJob failed, because for that page ORES files with a 500.

curl -i 'https://ores-beta.wmflabs.org/v3/scores/enwiki/?models=damaging%7Cgoodfaith%7Cdraftquality&revids=372206&precache=true&format=json'

HTTP/1.1 500 INTERNAL SERVER ERROR
Server: nginx/1.11.13
Date: Thu, 26 Oct 2017 11:09:30 GMT
Content-Type: application/json
Content-Length: 1653
Connection: keep-alive
Cache-Control: no-store, no-cache, max-age=0
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Access-Control-Allow-Origin: *

{"error": {"code": "internal server error", "message": "Traceback (most recent call last):\n  File \"./ores/wsgi/routes/v3/scores.py\", line 28, in process_score_request\n    score_response = scoring_system.score(score_request)\n  File \"./ores/scoring_systems/scoring_system.py\", line 42, in score\n    response = self._score(request)\n  File \"./ores/scoring_systems/celery_queue.py\", line 194, in _score\n    return super()._score(*args, **kwargs)\n  File \"./ores/scoring_systems/scoring_system.py\", line 98, in _score\n    inprogress_results=inprogress_results)\n  File \"./ores/scoring_systems/celery_queue.py\", line 117, in _process_missing_scores\n    request, missing_models, rev_id, root_cache)\n  File \"/srv/deployment/ores/venv/lib/python3.4/site-packages/celery/app/task.py\", line 453, in delay\n    return self.apply_async(args, kwargs)\n  File \"/srv/deployment/ores/venv/lib/python3.4/site-packages/celery/app/task.py\", line 565, in apply_async\n    **dict(self._get_exec_options(), **options)\n  File \"/srv/deployment/ores/venv/lib/python3.4/site-packages/celery/app/base.py\", line 354, in send_task\n    reply_to=reply_to or self.oid, **options\n  File \"/srv/deployment/ores/venv/lib/python3.4/site-packages/celery/app/amqp.py\", line 297, in publish_task\n    retry_policy=retry_policy,\n  File \"/srv/deployment/ores/venv/lib/python3.4/site-packages/celery/utils/dispatch/signal.py\", line 166, in send\n    response = receiver(signal=self, sender=sender, **named)\n  File \"./ores/scoring_systems/celery_queue.py\", line 31, in update_sent_state\n    task_id = properties['correlation_id']\nKeyError: 'correlation_id'\n"}}

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

@awight was experimenting with deployments on beta. This will likely get resolved when we get the next version of ORES first deployed.

Also ETERNAL SERVER ERROR lol

Pchelolo renamed this task from ORES eternal server error for edit with many added links to ORES internal server error for edit with many added links.Oct 27 2017, 7:39 AM

This was a glitch caused by an API mismatch between the Celery 4 library and Celery 3 code.

awight claimed this task.
awight moved this task from Unorganized to Active Tasks on the Machine-Learning-Team board.