{
"LOCAL_LOGLEVEL": "INFO",
"LOGGING_ENV": "sandbox",
"LOG_DIR": "/edx/var/log/xqueue",
"RABBIT_HOST": "localhost",
"S3_BUCKET": "sandbox-bucket",
"S3_PATH_PREFIX": "sandbox-xqueue",
"SYSLOG_SERVER": "localhost",
"XQUEUES": {
"certificates": null,
"test-pull": null
},
"XQUEUE_WORKERS_PER_QUEUE": 12
}
sudo /edx/bin/supervisorctl restart xqueue:
$ sudo /edx/bin/supervisorctl -c /edx/etc/supervisord.conf status
certs RUNNING pid 5412, uptime 0:10:20
edxapp:cms RUNNING pid 1506, uptime 1 day, 19:59:30
edxapp:lms RUNNING pid 1504, uptime 1 day, 19:59:30
edxapp_worker:cms_default_4 RUNNING pid 1526, uptime 1 day, 19:59:29
edxapp_worker:cms_high_1 RUNNING pid 1521, uptime 1 day, 19:59:29
edxapp_worker:cms_low_3 RUNNING pid 1512, uptime 1 day, 19:59:30
edxapp_worker:lms_default_3 RUNNING pid 1517, uptime 1 day, 19:59:29
edxapp_worker:lms_high_4 RUNNING pid 1531, uptime 1 day, 19:59:29
edxapp_worker:lms_high_mem_2 RUNNING pid 1513, uptime 1 day, 19:59:30
edxapp_worker:lms_low_1 RUNNING pid 1523, uptime 1 day, 19:59:29
forum RUNNING pid 1500, uptime 1 day, 19:59:30
xqueue RUNNING pid 5409, uptime 0:10:20
xqueue_consumer RUNNING pid 1499, uptime 1 day, 19:59:30
sudo python /edx/java-grader/JavaGrader.py
select grader_reply from queue_submission;
+------------------------------------------------------------------------------------------+
| grader_reply |
+------------------------------------------------------------------------------------------+
| {"msg": "Good job!", "score": 1, "correct": true} |
| {"msg": "Good job!", "score": 1, "correct": true} |
| {"msg": "Good job!", "score": 1, "correct": true} |
| {"msg": "Good job!", "score": 1, "correct": true} |
| {"msg": "Good job!", "score": 1, "correct": true} |
.....
/edx/var/log/xqueue/edx.log
Mar 17 16:33:09 Mathesis1 [service_variant=xqueue][queue.consumer][env:sandbox] INFO [Mathesis1 1896] [consumer.py:321] - Processing submission from queue_name: java-queue, submission_id: 31
Mar 17 16:33:09 Mathesis1 [service_variant=xqueue][requests.packages.urllib3.connectionpool][env:sandbox] INFO [Mathesis1 1896] [connectionpool.py:191] - Starting new HTTP connection (1): localhost
Mar 17 16:33:09 Mathesis1 [service_variant=xqueue][queue.consumer][env:sandbox] ERROR [Mathesis1 1896] [consumer.py:185] - Could not connect to server at http://localhost:1710 in timeout=30.000000
Mar 17 16:33:09 Mathesis1 [service_variant=xqueue][queue.consumer][env:sandbox] ERROR [Mathesis1 1896] [consumer.py:403] - Submission 31 to grader http://localhost:1710 failure: Reply: cannot connect to server,
Mar 17 16:33:09 Mathesis1 [service_variant=xqueue][requests.packages.urllib3.connectionpool][env:sandbox] INFO [Mathesis1 1896] [connectionpool.py:191] - Starting new HTTP connection (1): localhost
Mar 17 16:33:09 Mathesis1 [service_variant=xqueue][queue.consumer][env:sandbox] ERROR [Mathesis1 1896] [consumer.py:185] - Could not connect to server at http://localhost:3180/courses/CUP/j101/2014_T12/xqueue/9/i4x://CUP/j101/problem/a2ed4ae1e2e94c278d92c494b2b738b6/score_update in timeout=5.000000
Mar 17 16:33:09 Mathesis1 [service_variant=xqueue][requests.packages.urllib3.connectionpool][env:sandbox] INFO [Mathesis1 1896] [connectionpool.py:191] - Starting new HTTP connection (1): localhost
Mar 17 16:33:09 Mathesis1 [service_variant=xqueue][queue.consumer][env:sandbox] ERROR [Mathesis1 1896] [consumer.py:185] - Could not connect to server at http://localhost:3180/courses/CUP/j101/2014_T12/xqueue/9/i4x://CUP/j101/problem/a2ed4ae1e2e94c278d92c494b2b738b6/score_update in timeout=5.000000
Mar 17 16:33:09 Mathesis1 [service_variant=xqueue][requests.packages.urllib3.connectionpool][env:sandbox] INFO [Mathesis1 1896] [connectionpool.py:191] - Starting new HTTP connection (1): localhost
Mar 17 16:33:09 Mathesis1 [service_variant=xqueue][queue.consumer][env:sandbox] ERROR [Mathesis1 1896] [consumer.py:185] - Could not connect to server at http://localhost:3180/courses/CUP/j101/2014_T12/xqueue/9/i4x://CUP/j101/problem/a2ed4ae1e2e94c278d92c494b2b738b6/score_update in timeout=5.000000
Mar 17 16:33:09 Mathesis1 [service_variant=xqueue][requests.packages.urllib3.connectionpool][env:sandbox] INFO [Mathesis1 1896] [connectionpool.py:191] - Starting new HTTP connection (1): localhost
Mar 17 16:33:09 Mathesis1 [service_variant=xqueue][queue.consumer][env:sandbox] ERROR [Mathesis1 1896] [consumer.py:185] - Could not connect to server at http://localhost:3180/courses/CUP/j101/2014_T12/xqueue/9/i4x://CUP/j101/problem/a2ed4ae1e2e94c278d92c494b2b738b6/score_update in timeout=5.000000
Mar 17 16:33:09 Mathesis1 [service_variant=xqueue][requests.packages.urllib3.connectionpool][env:sandbox] INFO [Mathesis1 1896] [connectionpool.py:191] - Starting new HTTP connection (1): localhost
Mar 17 16:33:09 Mathesis1 [service_variant=xqueue][queue.consumer][env:sandbox] ERROR [Mathesis1 1896] [consumer.py:185] - Could not connect to server at http://localhost:3180/courses/CUP/j101/2014_T12/xqueue/9/i4x://CUP/j101/problem/a2ed4ae1e2e94c278d92c494b2b738b6/score_update in timeout=5.000000
Mar 17 16:33:09 Mathesis1 [service_variant=xqueue][queue.consumer][env:sandbox] ERROR [Mathesis1 1896] [consumer.py:163] - Unable to return to LMS: lms_callback_url: http://localhost:3180/courses/CUP/j101/2014_T12/xqueue/9/i4x://CUP/j101/problem/a2ed4ae1e2e94c278d92c494b2b738b6/score_update, payload: {'xqueue_header': u'{"lms_key": "eb1915fccfad4b664377bf8e47e27d9e", "lms_callback_url": "http://localhost:3180/courses/CUP/j101/2014_T12/xqueue/9/i4x://CUP/j101/problem/a2ed4ae1e2e94c278d92c494b2b738b6/score_update", "queue_name": "java-queue"}', 'xqueue_body': '{"msg": "<div class=\\"capa_alert\\">Your submission could not be graded. Please recheck your submission and try again. If the problem persists, please notify the course staff.</div>", "score": 0, "correct": null}'}, lms_reply: cannot connect to server
lms_reply: cannot connect to server
" means and why it is happening?/score_update
" at the end of the url shown in the logs?