2019-09-26 00:06:37,821 - ERROR [Evaluation,0 8 triggeredservice::run] Unexpected error when executing operation `evaluate on 5236 against dataset 181, testcase 24' (and 12 more operations).
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/cms-1.5.dev0-py3.6.egg/cms/io/triggeredservice.py", line 131, in run
self.execute(to_execute)
File "/usr/local/lib/python3.6/dist-packages/cms-1.5.dev0-py3.6.egg/cms/service/EvaluationService.py", line 140, in execute
res = self.pool.acquire_worker(self._currently_executing)
File "/usr/local/lib/python3.6/dist-packages/cms-1.5.dev0-py3.6.egg/cms/service/workerpool.py", line 214, in acquire_worker
JobGroup.from_operations(operations, session).export_to_dict()
File "/usr/local/lib/python3.6/dist-packages/cms-1.5.dev0-py3.6.egg/cms/grading/Job.py", line 677, in from_operations
jobs.append(Job.from_operation(operation, object_, dataset))
File "/usr/local/lib/python3.6/dist-packages/cms-1.5.dev0-py3.6.egg/cms/grading/Job.py", line 227, in from_operation
job = EvaluationJob.from_submission(operation, object_, dataset)
File "/usr/local/lib/python3.6/dist-packages/cms-1.5.dev0-py3.6.egg/cms/grading/Job.py", line 518, in from_submission
language = get_language(submission.language)
File "/usr/local/lib/python3.6/dist-packages/cms-1.5.dev0-py3.6.egg/cms/grading/languagemanager.py", line 48, in get_language
raise KeyError("Language `%s' not supported." % name)
KeyError: "Language `None' not supported."
Hi, guys! Thank you very much for such a great tool CMS.
I am using it to check student's homeworks.
I have a small dumb question. I dont know why, but the dashbord says every service is down.
Although I am able to edit contests, submit and have results.
Web pages of admin service, contest service are up and running.
cmsuser
group and that the user you're using to run the service is in that group
Hi, I've just pushed the pull-request cms-dev/cms#1141 but the tests are failing.
In particular only https://github.com/cms-dev/cms/blob/de73b21cdc62bdecb3ae65a2eef0ff8b1fa65492/cmstestsuite/unit_tests/io/rpc_test.py#L234 fails saying Expected 'connect' to be called once
. After a lot of digging we figured out that calling gevent.socket.getaddrinfo
changes the value of the mocked method:
cms.io.rpc.gevent.socket.socket = <MagicMock name='socket' id='139905522845776'>
# call to gevent.socket.getaddrinfo
cms.io.rpc.gevent.socket.socket = <class 'gevent._socket3.socket'>
We have no idea how the mocking library works, do you have any idea?