Error Resume Course: Page Not Found

Hi!

After upgrading tutor to Lilac, Resume course returns Page Not Found in some courses, while it works perfectly well for other courses. I don’t understand what’s the issue here. (Please see this gif- For Grade 08 Math there isn’t any issue but for Grade 9 Math- Page Not Found error. Moreover, for the latter, it opens when we click on the course title where right side button is not Resume but Start Course- even though the student has started the course.)

My inbox is full with a lot of messages from students. Thanks for any help!

Relevant logs:

lms_1            | 2021-08-07 05:58:02,093 INFO 6 [tracking] [user 294] [ip 117.194.172.164] logger.py:41 - {"name": "/dashboard", "context": {"user_id": 294, "path": "/dashboard", "course_id": "", "org_id": ""}, "username": "sgstudent001", "session": "63c6c4b274c355e78d2ca3333def153a", "ip": "117.194.172.164", "agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36", "host": "lms.domain.com", "referer": "https://lms.domain.com/courses/course-v1:STEM-Genius+SGFM09+2021-1/courseware/f4c0563fb12c4695a87177df5ae0ef74/811baaecd59b4e498b0bcf037eeded0a/1?activate_block_id=block-v1%3ASTEM-Genius%2BSGFM09%2B2021-1%2Btype%40problem%2Bblock%40a48cddf94bb8431dba6d4dc00a1f94f8", "accept_language": "en-GB,en-US;q=0.9,en;q=0.8", "event": "{\"GET\": {}, \"POST\": {}}", "time": "2021-08-07T05:58:02.092954+00:00", "event_type": "/dashboard", "event_source": "server", "page": null}
lms_1            | [pid: 6|app: 0|req: 95464/245520] 172.18.0.14 () {52 vars in 2757 bytes} [Sat Aug  7 05:58:02 2021] GET /dashboard => generated 58268 bytes in 433 msecs (HTTP/1.0 200) 7 headers in 512 bytes (1 switches on core 0)
nginx_1          | 172.18.0.3 - - [07/Aug/2021:05:58:02 +0000] http://lms.domain.com "GET /dashboard HTTP/1.1" 200 58268 "https://lms.domain.com/courses/course-v1:STEM-Genius+SGFM09+2021-1/courseware/f4c0563fb12c4695a87177df5ae0ef74/811baaecd59b4e498b0bcf037eeded0a/1?activate_block_id=block-v1%3ASTEM-Genius%2BSGFM09%2B2021-1%2Btype%40problem%2Bblock%40a48cddf94bb8431dba6d4dc00a1f94f8" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36" "117.194.172.164"
lms_1            | 2021-08-07 05:58:04,011 INFO 114 [tracking] [user 294] [ip 117.194.172.164] logger.py:41 - {"name": "/courses/course-v1:STEM-Genius+SGFM09+2021-1/jump_to/block-v1:STEM-Genius+SGFM09+2021-1+type@problem+block@a48cddf94bb8431dba6d4dc00a1f94f8", "context": {"course_id": "course-v1:STEM-Genius+SGFM09+2021-1", "course_user_tags": {}, "user_id": 294, "path": "/courses/course-v1:STEM-Genius+SGFM09+2021-1/jump_to/block-v1:STEM-Genius+SGFM09+2021-1+type@problem+block@a48cddf94bb8431dba6d4dc00a1f94f8", "org_id": "STEM-Genius"}, "username": "sgstudent001", "session": "63c6c4b274c355e78d2ca3333def153a", "ip": "117.194.172.164", "agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36", "host": "lms.domain.com", "referer": "https://lms.domain.com/dashboard", "accept_language": "en-GB,en-US;q=0.9,en;q=0.8", "event": "{\"GET\": {}, \"POST\": {}}", "time": "2021-08-07T05:58:04.011410+00:00", "event_type": "/courses/course-v1:STEM-Genius+SGFM09+2021-1/jump_to/block-v1:STEM-Genius+SGFM09+2021-1+type@problem+block@a48cddf94bb8431dba6d4dc00a1f94f8", "event_source": "server", "page": null}
lms_1            | 2021-08-07 05:58:04,067 ERROR 114 [xmodule.modulestore.search] [user 294] [ip 117.194.172.164] search.py:184 - Bad position '' passed to navigation_index, will assume first position
lms_1            | Traceback (most recent call last):
lms_1            |   File "/openedx/edx-platform/common/lib/xmodule/xmodule/modulestore/search.py", line 182, in navigation_index
lms_1            |     navigation_position = int(position.split('_', 1)[0])
lms_1            | ValueError: invalid literal for int() with base 10: ''
lms_1            | [pid: 114|app: 0|req: 95637/245521] 172.18.0.14 () {54 vars in 2808 bytes} [Sat Aug  7 05:58:03 2021] GET /courses/course-v1:STEM-Genius+SGFM09+2021-1/jump_to/block-v1:STEM-Genius+SGFM09+2021-1+type@problem+block@a48cddf94bb8431dba6d4dc00a1f94f8 => generated 0 bytes in 81 msecs (HTTP/1.0 302) 9 headers in 1089 bytes (1 switches on core 0)
nginx_1          | 172.18.0.3 - - [07/Aug/2021:05:58:04 +0000] http://lms.domain.com "GET /courses/course-v1:STEM-Genius+SGFM09+2021-1/jump_to/block-v1:STEM-Genius+SGFM09+2021-1+type@problem+block@a48cddf94bb8431dba6d4dc00a1f94f8 HTTP/1.1" 302 0 "https://lms.domain.com/dashboard" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36" "117.194.172.164"
lms_1            | 2021-08-07 05:58:04,143 INFO 6 [tracking] [user 294] [ip 117.194.172.164] logger.py:41 - {"name": "/courses/course-v1:STEM-Genius+SGFM09+2021-1/courseware/f4c0563fb12c4695a87177df5ae0ef74/811baaecd59b4e498b0bcf037eeded0a/1", "context": {"course_id": "course-v1:STEM-Genius+SGFM09+2021-1", "course_user_tags": {}, "user_id": 294, "path": "/courses/course-v1:STEM-Genius+SGFM09+2021-1/courseware/f4c0563fb12c4695a87177df5ae0ef74/811baaecd59b4e498b0bcf037eeded0a/1", "org_id": "STEM-Genius"}, "username": "sgstudent001", "session": "63c6c4b274c355e78d2ca3333def153a", "ip": "117.194.172.164", "agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36", "host": "lms.domain.com", "referer": "https://lms.domain.com/dashboard", "accept_language": "en-GB,en-US;q=0.9,en;q=0.8", "event": "{\"GET\": {\"activate_block_id\": [\"block-v1:STEM-Genius+SGFM09+2021-1+type@problem+block@a48cddf94bb8431dba6d4dc00a1f94f8\"]}, \"POST\": {}}", "time": "2021-08-07T05:58:04.143192+00:00", "event_type": "/courses/course-v1:STEM-Genius+SGFM09+2021-1/courseware/f4c0563fb12c4695a87177df5ae0ef74/811baaecd59b4e498b0bcf037eeded0a/1", "event_source": "server", "page": null}
nginx_1          | 172.18.0.3 - - [07/Aug/2021:05:58:04 +0000] http://lms.domain.com "GET /courses/course-v1:STEM-Genius+SGFM09+2021-1/courseware/f4c0563fb12c4695a87177df5ae0ef74/811baaecd59b4e498b0bcf037eeded0a/1?activate_block_id=block-v1%3ASTEM-Genius%2BSGFM09%2B2021-1%2Btype%40problem%2Bblock%40a48cddf94bb8431dba6d4dc00a1f94f8 HTTP/1.1" 404 9412 "https://lms.domain.com/dashboard" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36" "117.194.172.164"
lms_1            | [pid: 6|app: 0|req: 95465/245522] 172.18.0.14 () {54 vars in 3013 bytes} [Sat Aug  7 05:58:04 2021] GET /courses/course-v1:STEM-Genius+SGFM09+2021-1/courseware/f4c0563fb12c4695a87177df5ae0ef74/811baaecd59b4e498b0bcf037eeded0a/1?activate_block_id=block-v1%3ASTEM-Genius%2BSGFM09%2B2021-1%2Btype%40problem%2Bblock%40a48cddf94bb8431dba6d4dc00a1f94f8 => generated 9412 bytes in 349 msecs (HTTP/1.0 404) 7 headers in 518 bytes (1 switches on core 0)

Hi @foeaglet ,
I’m not sure, but I think MongoDB/data issue between two versions after upgrading, maybe? If you open this course in Studio, and make some sembolic changes then save/publish it again, may solve that? (just guessing, not sure)

Hi @qali Thanks for the help. I tried changing the course but that didn’t work. I also noticed that it happens only for some students and not all-some 10% of the students. Though the Resume course button doesn’t work, It opens normally when they click on the subject title instead of the button. However, after clicking on the title, instead of Resume course, Start Course is seen on the button at the extreme right.
Even when the student attempts questions / completes certain blocks, the issue still remains for them for that specific course.

I hope you understand the issue. If you don’t I’ll record and post a video of it.
Thanks again for the help.

I think you are explained very clearly the issue. I searched it in edX site , but didn’t find any similar issue. You should share your logs here( little more) after the click events, maybe Regis or others can find som sloutions for that.

@foeaglet I did not manage to reproduce this issue with my local demo course. Could you share an export of your course? (send a private message if necessary)