Could not execute jailcode

Đang mở
#54 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
15/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
security

Hướng nghiên cứu

Bắt đầu với đường dẫn traceback qua capa_base.py, capa_problem.py và responsetypes.py, sau đó kiểm tra Python executable trong jailed tại /opt/bitnami/apps/edx/venvs/edxapp-sandbox/bin/.python2.7.bin. Tái hiện việc đánh giá SchematicResponse và điều tra trạng thái 126 do permission-denied đã được báo cáo; hoàn tất nghĩa là jailed code thực thi thành công mà không gặp lỗi này.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Python
Star
477
Fork
83
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của openedx/codejail

Tất cả issue của openedx/codejail

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.