openedx / openedx/codejail

Could not execute jailcode

Open
#54 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
479
Forks
84
Avg merge
16h 34m
Merged PRs (30d)
2

Description

I have following error. Please help me to solve this problem.

Staff debug info: Traceback (most recent call last): File "/opt/bitnami/apps/edx/edx-platform/common/lib/xmodule/xmodule/capa_base.py", line 1151, in submit_problem correct_map = self.lcp.grade_answers(answers) File "/opt/bitnami/apps/edx/edx-platform/common/lib/capa/capa/capa_problem.py", line 400, in grade_answers return self._grade_answers(answers) File "/opt/bitnami/apps/edx/edx-platform/common/lib/capa/capa/capa_problem.py", line 462, in _grade_answers results = responder.evaluate_answers(self.student_answers, oldcmap) File "/opt/bitnami/apps/edx/edx-platform/common/lib/capa/capa/responsetypes.py", line 306, in evaluate_answers new_cmap = self.get_score(student_answers) File "/opt/bitnami/apps/edx/edx-platform/common/lib/capa/capa/responsetypes.py", line 3283, in get_score raise ResponseError(msg) ResponseError: Error in evaluating SchematicResponse. The error was: Couldn't execute jailed code: stdout: '', stderr: '/opt/bitnami/apps/edx/venvs/edxapp-sandbox/bin/python: 3: exec: /opt/bitnami/apps/edx/venvs/edxapp-sandbox/bin/.python2.7.bin: Permission denied\n' with status code: 126

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the traceback path through capa_base.py, capa_problem.py, and responsetypes.py, then inspect the jailed Python executable at /opt/bitnami/apps/edx/venvs/edxapp-sandbox/bin/.python2.7.bin. Reproduce the SchematicResponse evaluation and investigate the reported permission-denied status 126; done means jailed code executes successfully without this error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.