Drumor on feature_request_710
add a research field in audienc… (compare)
Drumor on master
course_admin/task_edit: allows … Merge pull request #706 from UC… (compare)
Drumor on fix_task_edit2
I'd like to automate some testing for my deployment of INGInious. In particular, we had the system crash last year during a class where lots of students were using the system at the same time .
I can pull the submissions out of the mongo database, but I am wondering if there is some sort of API call (or something similar) that I can make against INGInious to run these submissions. My idea is to use some testing software to keep asking INGInious to run these various submissions to see where and how things broke down.
Any idea @GuillaumeDerval how I can do this?
ssh_exchange_identification: read: Connection reset by peer
When i'm running:
Collecting git+https://github.com/UCL-INGI/INGInious.git Cloning https://github.com/UCL-INGI/INGInious.git to /tmp/pip-req-build-bn7e7jp7 Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-req-build-bn7e7jp7/setup.py", line 85, in <module> long_description=open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() File "/usr/lib64/python3.5/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 637: ordinal not in range(128)
pip3.5 install --upgrade git+https://github.com/UCL-INGI/INGInious.git
hello, i have trouble with accessing student submissions from single task. Specifically it is page /admin/6m/submissions?user=studentname&task=posloupnost-max-rust . Page says "internal server error". Log says:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 22233: ordinal not in range(128), referer: https://inginious.hamiweb.cz/admin/6m/task/posloupnost-max-rust
This error occours with every student on any task even if they dont have any submissions for the task yet. I can download submissions without problem, i just cannot view them. I am on the latest 0.5 inginious. Should i open new issue? I just wanted to make sure here i am not doing something stupid.
Hello @hamacekh are you using apache?
I am seeing UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 22233: ordinal not in range(128) which prevents a plugin from being loaded. This DOES NOT HAPPEN on the development version. i.e. I stop the apache service and run inginious in debug mode (inginious-webap --host 0.0.0.0 --port 80) and the issue does not happen and the plugin is loaded correctly
I haven't found any solution yet but I think it is related to apache and python integration because it does not happen on development mode (not using apache).
@hamacekh I have found the error, I don't know if it would work for your case but I might be worth a look.
What happened is that for some reason we had and environment variable called LANG set to C (ascii) default encoding for apache. The solution is simply to eliminate it so that it will use default setting form the OS.
If you don't have that variable you might need to set it to the encoding you want or edit the locales of your server
On CentOS they are located on
On Ubuntu they are located on
Here are some useful links that explain the issue
Aug 15 08:02:48 inginious-ikg dockerd: time="2021-08-15T08:02:48.332563322Z" level=warning msg="Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap." Aug 15 08:02:48 inginious-ikg systemd: var-lib-docker-overlay2-8b8ad0557504b708968c89d99e8535e684d45b134cdeb90c6fef804e0dc65e1c\x2dinit-merged.mount: Succeeded. Aug 15 08:02:48 inginious-ikg containerd: time="2021-08-15T08:02:48.446994151Z" level=info msg="starting signal loop" namespace=moby path=/run/containerd/io.containerd.runtime.v2.task/moby/0c3c6eeb557ee9f3656a80ee2cc29aab3afde1fe65b4330161be3d5e47aba622 pid=1488 Aug 15 08:03:18 inginious-ikg dockerd: time="2021-08-15T08:03:18.807622852Z" level=info msg="ignoring event" container=0c3c6eeb557ee9f3656a80ee2cc29aab3afde1fe65b4330161be3d5e47aba622 module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete" Aug 15 08:03:18 inginious-ikg containerd: time="2021-08-15T08:03:18.807807045Z" level=info msg="shim disconnected" id=0c3c6eeb557ee9f3656a80ee2cc29aab3afde1fe65b4330161be3d5e47aba622 Aug 15 08:03:18 inginious-ikg containerd: time="2021-08-15T08:03:18.807867082Z" level=error msg="copy shim log" error="read /proc/self/fd/12: file already closed" Aug 15 08:03:18 inginious-ikg systemd: run-docker-netns-3808aacb17ba.mount: Succeeded. Aug 15 08:03:18 inginious-ikg systemd: var-lib-docker-overlay2-8b8ad0557504b708968c89d99e8535e684d45b134cdeb90c6fef804e0dc65e1c-merged.mount: Succeeded.