Hi,
I have a problem on automatic certificate generation issue on Maple after upgrading from Lilac (with Tutor installation method).
On my previous Lilac, I can enabled a course automatic certificate generation by set the early_no_info
value (18.5. Ending a Course — Building and Running an Open edX Course documentation) and somehow this Certificates Display Behavior were disappear from Maple’s Course Advanced Settings.
Secondly I then enabled certificates.auto_certificate_generation
waffle switch on Django Admin.
Now if a learner go to Progress page it couldn’t be opened and show “There was an error loading this course.” error. Check on LMS log shown:
lms_1 | 2022-01-09 00:13:56,615 INFO 24 [lms.djangoapps.certificates.generation_handler] [user 13] [ip 110.137.195.77] generation_handler.py:44 - Attempt will be made to generate course certificate for user 13 : course-v1:CAx+CA102+2022_T1
lms_1 | 2022-01-09 00:13:56,665 INFO 24 [tracking] [user 13] [ip 110.137.195.77] logger.py:41 - {“name”: “edx.course.grade.now_passed”, “context”: {“user_id”: 13, “path”: “/api/course_home/progress/course-v1:CAx+CA102+2022_T1”, “course_id”: “course-v1:CAx+CA102+2022_T1”, “org_id”: “CAx”, “enterprise_uuid”: “”}, “username”: “billydekid”, “session”: “1e39b84da9b6dc60927266820518603d”, “ip”: “110.137.195.77”, “agent”: “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36 Edg/96.0.1054.62”, “host”: “qa.cybersacademy.id”, “referer”: “https://apps.qa.cybersacademy.id/”, “accept_language”: “en-US,en;q=0.9”, “event”: {“user_id”: “13”, “course_id”: “course-v1:CAx+CA102+2022_T1”, “event_transaction_id”: “None”, “event_transaction_type”: “None”}, “time”: “2022-01-09T00:13:56.665331+00:00”, “event_type”: “edx.course.grade.now_passed”, “event_source”: “server”, “page”: null}
lms_1 | 2022-01-09 00:13:56,668 INFO 24 [lms.djangoapps.certificates.signals] [user 13] [ip 110.137.195.77] signals.py:80 - Attempt will be made to generate a course certificate for 13 : course-v1:CAx+CA102+2022_T1 as a passing grade was received.
lms_1 | 2022-01-09 00:13:56,670 INFO 24 [lms.djangoapps.certificates.generation_handler] [user 13] [ip 110.137.195.77] generation_handler.py:44 - Attempt will be made to generate course certificate for user 13 : course-v1:CAx+CA102+2022_T1
lms_1 | Fatal Python error: Cannot recover from stack overflow.
lms_1 | Python runtime state: initialized
lms_1 |
lms_1 | Thread 0x00007fceb2ede700 (most recent call first):
lms_1 | File “/openedx/venv/lib/python3.8/site-packages/pymongo/periodic_executor.py”, line 131 in _run
lms_1 | File “/opt/pyenv/versions/3.8.12/lib/python3.8/threading.py”, line 870 in run
lms_1 | File “/opt/pyenv/versions/3.8.12/lib/python3.8/threading.py”, line 932 in _bootstrap_inner
lms_1 | File “/opt/pyenv/versions/3.8.12/lib/python3.8/threading.py”, line 890 in _bootstrap
lms_1 |
lms_1 | Thread 0x00007fceb36df700 (most recent call first):
lms_1 | File “/openedx/venv/lib/python3.8/site-packages/pymongo/periodic_executor.py”, line 131 in _run
lms_1 | File “/opt/pyenv/versions/3.8.12/lib/python3.8/threading.py”, line 870 in run
lms_1 | File “/opt/pyenv/versions/3.8.12/lib/python3.8/threading.py”, line 932 in _bootstrap_inner
lms_1 | File “/opt/pyenv/versions/3.8.12/lib/python3.8/threading.py”, line 890 in _bootstrap
lms_1 |
lms_1 | Thread 0x00007fcecda2a700 (most recent call first):
lms_1 | File “/openedx/venv/lib/python3.8/site-packages/pymongo/periodic_executor.py”, line 131 in _run
lms_1 | File “/opt/pyenv/versions/3.8.12/lib/python3.8/threading.py”, line 870 in run
lms_1 | File “/opt/pyenv/versions/3.8.12/lib/python3.8/threading.py”, line 932 in _bootstrap_inner
lms_1 | File “/opt/pyenv/versions/3.8.12/lib/python3.8/threading.py”, line 890 in _bootstrap
I should disabled the certificates.auto_certificate_generation
waffle switch flag to fix this and page will display normally. But, no certificate download link on this page when a learner has passed the exam.
I know there are some various bugs fixed and updates of Certificate on Maple version but since I’m new and have no more deep knowledge in this area.
I really appreciate if someone could assist me on this issue.
Thank you in advance.
[bayu]