Hi, I tried to install GitHub - overhangio/tutor-xqueue: Xqueue plugin for Tutor using provided instructions in README and got stucked on reproducing example.
tutor xqueue submissions count
and tutor xqueue submissions show
work as expected, but tutor xqueue submissions grade
fails with read: connection reset by peer
in logs (though /xqueue/login/ was successful)
My tutor vesion is 15.1.0 and tutor-xqueue 15.0.0, both installed from pip
I rebuilt all images (several times…) and used tutor local launch
What can be possible reasons for this read: connection reset by peer
?
Here are the logs from tutor local logs --tail=100 -f
for local tutor run:
tutor_local-xqueue-consumer-1 | running consumers
tutor_local-caddy-1 | {"level":"info","ts":1673521972.5126934,"logger":"http.log.access.log3","msg":"handled request","request":{"remote_addr":"172.18.0.1:37440","proto":"HTTP/1.1","method":"POST","host":"xqueue.local.overhang.io","uri":"/xqueue/login/"},"user_id":"","duration":0.078369046,"size":42,"status":200}
tutor_local-xqueue-1 | [pid: 7|app: 0|req: 2/3] 172.18.0.7 () {40 vars in 540 bytes} [Thu Jan 12 11:12:52 2023] POST /xqueue/login/ => generated 42 bytes in 80 msecs (HTTP/1.1 200) 5 headers in 406 bytes (2 switches on core 0)
tutor_local-caddy-1 | {"level":"error","ts":1673521972.5165203,"logger":"http.log.error.log3","msg":"read tcp 172.18.0.7:42342->172.18.0.3:8000: read: connection reset by peer","request":{"remote_addr":"172.18.0.1:37440","proto":"HTTP/1.1","method":"POST","host":"xqueue.local.overhang.io","uri":"/xqueue/put_result/","headers":{"Connection":["keep-alive"],"Cookie":["csrftoken=EWL61c9uEdIh4977LlpJR4KUkoU9EngLxvq1njkfMIaazlL3xDddVNGkIYQhjE3C; sessionid=rz1yoev1q0oopnsx6uobmypvmmm85p9t"],"Content-Length":["212"],"Content-Type":["application/x-www-form-urlencoded"],"User-Agent":["python-requests/2.28.1"],"Accept-Encoding":["gzip, deflate"],"Accept":["*/*"]}},"duration":0.001145645,"status":502,"err_id":"5ve4cx3if","err_trace":"reverseproxy.statusError (reverseproxy.go:886)"}
tutor_local-caddy-1 | {"level":"error","ts":1673521972.516556,"logger":"http.log.access.log3","msg":"handled request","request":{"remote_addr":"172.18.0.1:37440","proto":"HTTP/1.1","method":"POST","host":"xqueue.local.overhang.io","uri":"/xqueue/put_result/"},"user_id":"","duration":0.001145645,"size":0,"status":502}
python exception:
Traceback (most recent call last):
File "/home/developer/miniconda3/envs/tutor/lib/python3.10/site-packages/reque
sts/models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
File "/home/developer/miniconda3/envs/tutor/lib/python3.10/site-packages/simpl
ejson/__init__.py", line 525, in loads
return _default_decoder.decode(s)
File "/home/developer/miniconda3/envs/tutor/lib/python3.10/site-packages/simpl
ejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/home/developer/miniconda3/envs/tutor/lib/python3.10/site-packages/simpl
ejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "/home/developer/miniconda3/envs/tutor/bin/tutor", line 8, in <module>
sys.exit(main())
File "/home/developer/miniconda3/envs/tutor/lib/python3.10/site-packages/tutor
/commands/cli.py", line 24, in main
cli() # pylint: disable=no-value-for-parameter
File "/home/developer/miniconda3/envs/tutor/lib/python3.10/site-packages/click
/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/home/developer/miniconda3/envs/tutor/lib/python3.10/site-packages/click
/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/home/developer/miniconda3/envs/tutor/lib/python3.10/site-packages/click
/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/developer/miniconda3/envs/tutor/lib/python3.10/site-packages/click
/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/developer/miniconda3/envs/tutor/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/developer/miniconda3/envs/tutor/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/developer/miniconda3/envs/tutor/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/developer/miniconda3/envs/tutor/lib/python3.10/site-packages/click/decorators.py", line 38, in new_func
return f(get_current_context().obj, *args, **kwargs)
File "/home/developer/miniconda3/envs/tutor/lib/python3.10/site-packages/tutorxqueue/plugin.py", line 117, in grade_submission
print_result(
File "/home/developer/miniconda3/envs/tutor/lib/python3.10/site-packages/tutorxqueue/plugin.py", line 132, in print_result
result = func(*args, **kwargs)
File "/home/developer/miniconda3/envs/tutor/lib/python3.10/site-packages/tutorxqueue/plugin.py", line 201, in grade_submission
return self.request(
File "/home/developer/miniconda3/envs/tutor/lib/python3.10/site-packages/tutorxqueue/plugin.py", line 218, in request
return response.json()
File "/home/developer/miniconda3/envs/tutor/lib/python3.10/site-packages/requests/models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)