i am getting error 500 on the course on openedx, but the course is live and other course are working properly, I am able to open the course content in my laptop but the learners are not able to open it.
can anyone help to resolve this issue.
@Diksha Welcome to the community!
It’s difficult to understand the issue without an error trace or a screenshot.
Could you please share the error logs or screenshots, so community assist you more effectively?
Kiran
These are the errors I am getting. I am the admin of the course, so I am able to open it. The course is live, and all settings are done like other courses, but whenever my learners open the course, they get this error.
Looking for the solution.
Thanks,
Diksha Goel
Are there any errors in the LMS log?
I meant the logs on the server:
tutor local logs --tail=100 -f lms
is this a newly imported course? if yes, then this is realted to the missing about content. you need to add anything inside and just save it.
No, the course is live and already has content.I resolved that issue. However, I am encountering a new issue with a 500 error in another course. In Studio, I am unable to view the uploaded content as it displays an error 500 but the course is lice so can see the content in LMS.
Looking for the reason and solution for that.
i am getting error 500, on the course that is not resloved, its working on front end but on studio its not working
what is the root cause of getting this error? how to reslove it?
Here is the logs:
tutor_local-cms-1 | [pid: 16|app: 0|req: 1043/2379] 172.18.0.2 () {62 vars in 4055 bytes} [Thu Jan 30 07:19:47 2025] GET /api/courses/v1/validation/course-v1:Decimal+VCD-Vahana-Cloud-1.x+2024_M10/?graded_only=true&validate_oras=true&all=true => generated 562 bytes in 178 msecs (HTTP/1.1 200) 9 headers in 469 bytes (1 switches on core 0)
tutor_local-cms-1 | 2025-01-30 07:19:47,966 ERROR 1 [root] [user None] [ip None] signals.py:22 - Uncaught exception from None
tutor_local-cms-1 | Traceback (most recent call last):
tutor_local-cms-1 | File “/openedx/venv/lib/python3.11/site-packages/django/core/handlers/exception.py”, line 55, in inner
tutor_local-cms-1 | response = get_response(request)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/venv/lib/python3.11/site-packages/django/core/handlers/base.py”, line 197, in _get_response
tutor_local-cms-1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/opt/pyenv/versions/3.11.8/lib/python3.11/contextlib.py”, line 81, in inner
tutor_local-cms-1 | return func(*args, **kwds)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/venv/lib/python3.11/site-packages/django/views/decorators/csrf.py”, line 56, in wrapper_view
tutor_local-cms-1 | return view_func(*args, **kwargs)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/venv/lib/python3.11/site-packages/django/views/generic/base.py”, line 104, in view
tutor_local-cms-1 | return self.dispatch(request, *args, **kwargs)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/venv/lib/python3.11/site-packages/rest_framework/views.py”, line 509, in dispatch
tutor_local-cms-1 | response = self.handle_exception(exc)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/venv/lib/python3.11/site-packages/rest_framework/views.py”, line 506, in dispatch
tutor_local-cms-1 | response = handler(request, *args, **kwargs)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/edx-platform/openedx/core/lib/api/view_utils.py”, line 439, in wrapped_function
tutor_local-cms-1 | return view_func(self, request, **kwargs)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/edx-platform/cms/djangoapps/contentstore/rest_api/v1/views/course_index.py”, line 92, in get
tutor_local-cms-1 | course_index_context = get_course_index_context(request, course_key)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/edx-platform/cms/djangoapps/contentstore/utils.py”, line 1836, in get_course_index_context
tutor_local-cms-1 | return _get_course_index_context(request, course_key, course_block)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/edx-platform/cms/djangoapps/contentstore/utils.py”, line 1859, in _get_course_index_context
tutor_local-cms-1 | course_structure = _course_outline_json(request, course_block)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/edx-platform/cms/djangoapps/contentstore/views/course.py”, line 372, in _course_outline_json
tutor_local-cms-1 | return create_xblock_info(
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/venv/lib/python3.11/site-packages/edx_django_utils/plugins/pluggable_override.py”, line 77, in wrapper
tutor_local-cms-1 | return prev_fn(*args, **kwargs)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/edx-platform/cms/djangoapps/contentstore/xblock_storage_handlers/view_handlers.py”, line 969, in create_xblock_info
tutor_local-cms-1 | child_info = _create_xblock_child_info(
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/edx-platform/cms/djangoapps/contentstore/xblock_storage_handlers/view_handlers.py”, line 1507, in _create_xblock_child_info
tutor_local-cms-1 | child_info[“children”] = [
tutor_local-cms-1 | ^
tutor_local-cms-1 | File “/openedx/edx-platform/cms/djangoapps/contentstore/xblock_storage_handlers/view_handlers.py”, line 1508, in
tutor_local-cms-1 | create_xblock_info(
tutor_local-cms-1 | File “/openedx/venv/lib/python3.11/site-packages/edx_django_utils/plugins/pluggable_override.py”, line 77, in wrapper
tutor_local-cms-1 | return prev_fn(*args, **kwargs)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/edx-platform/cms/djangoapps/contentstore/xblock_storage_handlers/view_handlers.py”, line 969, in create_xblock_info
tutor_local-cms-1 | child_info = _create_xblock_child_info(
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/edx-platform/cms/djangoapps/contentstore/xblock_storage_handlers/view_handlers.py”, line 1507, in _create_xblock_child_info
tutor_local-cms-1 | child_info[“children”] = [
tutor_local-cms-1 | ^
tutor_local-cms-1 | File “/openedx/edx-platform/cms/djangoapps/contentstore/xblock_storage_handlers/view_handlers.py”, line 1508, in
tutor_local-cms-1 | create_xblock_info(
tutor_local-cms-1 | File “/openedx/venv/lib/python3.11/site-packages/edx_django_utils/plugins/pluggable_override.py”, line 77, in wrapper
tutor_local-cms-1 | return prev_fn(*args, **kwargs)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/edx-platform/cms/djangoapps/contentstore/xblock_storage_handlers/view_handlers.py”, line 969, in create_xblock_info
tutor_local-cms-1 | child_info = _create_xblock_child_info(
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/edx-platform/cms/djangoapps/contentstore/xblock_storage_handlers/view_handlers.py”, line 1507, in _create_xblock_child_info
tutor_local-cms-1 | child_info[“children”] = [
tutor_local-cms-1 | ^
tutor_local-cms-1 | File “/openedx/edx-platform/cms/djangoapps/contentstore/xblock_storage_handlers/view_handlers.py”, line 1508, in
tutor_local-cms-1 | create_xblock_info(
tutor_local-cms-1 | File “/openedx/venv/lib/python3.11/site-packages/edx_django_utils/plugins/pluggable_override.py”, line 77, in wrapper
tutor_local-cms-1 | return prev_fn(*args, **kwargs)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/edx-platform/cms/djangoapps/contentstore/xblock_storage_handlers/view_handlers.py”, line 982, in create_xblock_info
tutor_local-cms-1 | release_date = _get_release_date(xblock, user)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/edx-platform/cms/djangoapps/contentstore/xblock_storage_handlers/view_handlers.py”, line 1532, in _get_release_date
tutor_local-cms-1 | reset_to_default = xblock.start.year < 1900
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | AttributeError: ‘NoneType’ object has no attribute ‘year’
tutor_local-cms-1 | 2025-01-30 07:19:47,994 ERROR 1 [django.request] [user 566] [ip 14.98.68.106] log.py:241 - Internal Server Error: /api/contentstore/v1/course_index/course-v1:Decimal+VCD-Vahana-Cloud-1.x+2024_M10
tutor_local-cms-1 | Traceback (most recent call last):
tutor_local-cms-1 | File “/openedx/venv/lib/python3.11/site-packages/django/core/handlers/exception.py”, line 55, in inner
tutor_local-cms-1 | response = get_response(request)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/venv/lib/python3.11/site-packages/django/core/handlers/base.py”, line 197, in _get_response
tutor_local-cms-1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/opt/pyenv/versions/3.11.8/lib/python3.11/contextlib.py”, line 81, in inner
tutor_local-cms-1 | return func(*args, **kwds)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/venv/lib/python3.11/site-packages/django/views/decorators/csrf.py”, line 56, in wrapper_view
tutor_local-cms-1 | return view_func(*args, **kwargs)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/venv/lib/python3.11/site-packages/django/views/generic/base.py”, line 104, in view
tutor_local-cms-1 | return self.dispatch(request, *args, **kwargs)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/venv/lib/python3.11/site-packages/rest_framework/views.py”, line 509, in dispatch
tutor_local-cms-1 | response = self.handle_exception(exc)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/venv/lib/python3.11/site-packages/rest_framework/views.py”, line 506, in dispatch
tutor_local-cms-1 | response = handler(request, *args, **kwargs)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/edx-platform/openedx/core/lib/api/view_utils.py”, line 439, in wrapped_function
tutor_local-cms-1 | return view_func(self, request, **kwargs)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/edx-platform/cms/djangoapps/contentstore/rest_api/v1/views/course_index.py”, line 92, in get
tutor_local-cms-1 | course_index_context = get_course_index_context(request, course_key)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/edx-platform/cms/djangoapps/contentstore/utils.py”, line 1836, in get_course_index_context
tutor_local-cms-1 | return _get_course_index_context(request, course_key, course_block)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/edx-platform/cms/djangoapps/contentstore/utils.py”, line 1859, in _get_course_index_context
tutor_local-cms-1 | course_structure = _course_outline_json(request, course_block)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/edx-platform/cms/djangoapps/contentstore/views/course.py”, line 372, in _course_outline_json
tutor_local-cms-1 | return create_xblock_info(
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/venv/lib/python3.11/site-packages/edx_django_utils/plugins/pluggable_override.py”, line 77, in wrapper
tutor_local-cms-1 | return prev_fn(*args, **kwargs)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/edx-platform/cms/djangoapps/contentstore/xblock_storage_handlers/view_handlers.py”, line 969, in create_xblock_info
tutor_local-cms-1 | child_info = _create_xblock_child_info(
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/edx-platform/cms/djangoapps/contentstore/xblock_storage_handlers/view_handlers.py”, line 1507, in _create_xblock_child_info
tutor_local-cms-1 | child_info[“children”] = [
tutor_local-cms-1 | ^
tutor_local-cms-1 | File “/openedx/edx-platform/cms/djangoapps/contentstore/xblock_storage_handlers/view_handlers.py”, line 1508, in
tutor_local-cms-1 | create_xblock_info(
tutor_local-cms-1 | File “/openedx/venv/lib/python3.11/site-packages/edx_django_utils/plugins/pluggable_override.py”, line 77, in wrapper
tutor_local-cms-1 | return prev_fn(*args, **kwargs)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/edx-platform/cms/djangoapps/contentstore/xblock_storage_handlers/view_handlers.py”, line 969, in create_xblock_info
tutor_local-cms-1 | child_info = _create_xblock_child_info(
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/edx-platform/cms/djangoapps/contentstore/xblock_storage_handlers/view_handlers.py”, line 1507, in _create_xblock_child_info
tutor_local-cms-1 | child_info[“children”] = [
tutor_local-cms-1 | ^
tutor_local-cms-1 | File “/openedx/edx-platform/cms/djangoapps/contentstore/xblock_storage_handlers/view_handlers.py”, line 1508, in
tutor_local-cms-1 | create_xblock_info(
tutor_local-cms-1 | File “/openedx/venv/lib/python3.11/site-packages/edx_django_utils/plugins/pluggable_override.py”, line 77, in wrapper
tutor_local-cms-1 | return prev_fn(*args, **kwargs)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/edx-platform/cms/djangoapps/contentstore/xblock_storage_handlers/view_handlers.py”, line 969, in create_xblock_info
tutor_local-cms-1 | child_info = _create_xblock_child_info(
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/edx-platform/cms/djangoapps/contentstore/xblock_storage_handlers/view_handlers.py”, line 1507, in _create_xblock_child_info
tutor_local-cms-1 | child_info[“children”] = [
tutor_local-cms-1 | ^
tutor_local-cms-1 | File “/openedx/edx-platform/cms/djangoapps/contentstore/xblock_storage_handlers/view_handlers.py”, line 1508, in
tutor_local-cms-1 | create_xblock_info(
tutor_local-cms-1 | File “/openedx/venv/lib/python3.11/site-packages/edx_django_utils/plugins/pluggable_override.py”, line 77, in wrapper
tutor_local-cms-1 | return prev_fn(*args, **kwargs)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/edx-platform/cms/djangoapps/contentstore/xblock_storage_handlers/view_handlers.py”, line 982, in create_xblock_info
tutor_local-cms-1 | release_date = _get_release_date(xblock, user)
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | File “/openedx/edx-platform/cms/djangoapps/contentstore/xblock_storage_handlers/view_handlers.py”, line 1532, in _get_release_date
tutor_local-cms-1 | reset_to_default = xblock.start.year < 1900
tutor_local-cms-1 | ^^^^^^^^^^^^^^^^^
tutor_local-cms-1 | AttributeError: ‘NoneType’ object has no attribute ‘year’
tutor_local-cms-1 | [pid: 1|app: 0|req: 1087/2380] 172.18.0.2 () {62 vars in 3978 bytes} [Thu Jan 30 07:19:47 2025] GET /api/contentstore/v1/course_index/course-v1:Decimal+VCD-Vahana-Cloud-1.x+2024_M10 => generated 8933 bytes in 1141 msecs (HTTP/1.1 500) 9 headers in 606 bytes (1 switches on core 0)
tutor_local-cms-1 | 2025-01-30 07:19:48,627 INFO 16 [eventtracking.backends.async_routing] [user 566] [ip 14.98.68.106] async_routing.py:41 - [EventEmissionExit] skipping event /api/content_tagging/v1/object_tag_counts/course-v1:Decimal+VCD-Vahana-Cloud-1.x+2024_M10/
tutor_local-cms-1 | 2025-01-30 07:19:48,628 INFO 1 [eventtracking.backends.async_routing] [user 566] [ip 14.98.68.106] async_routing.py:41 - [EventEmissionExit] skipping event /api/contentstore/v1/help_urls
tutor_local-cms-1 | 2025-01-30 07:19:48,628 INFO 16 [tracking] [user 566] [ip 14.98.68.106] logger.py:41 - {“name”: “/api/content_tagging/v1/object_tag_counts/course-v1:Decimal+VCD-Vahana-Cloud-1.x+2024_M10/”, “context”: {“user_id”: 566, “path”: “/api/content_tagging/v1/object_tag_counts/course-v1:Decimal+VCD-Vahana-Cloud-1.x+2024_M10/”, “course_id”: “”, “org_id”: “”, “enterprise_uuid”: “”}, “username”: “Diksha.Goel”, “session”: “647d39f58576b1e4ca91cbe9ef23e65d”, “ip”: “14.98.68.106”, “agent”: “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36”, “host”: “studio.learning.vahanacloud.com”, “referer”: “https://apps.learning.vahanacloud.com/”, “accept_language”: “en-US,en;q=0.9”, “event”: “{"GET": {"count_implicit": [""]}, "POST": {}}”, “time”: “2025-01-30T07:19:48.627502+00:00”, “event_type”: “/api/content_tagging/v1/object_tag_counts/course-v1:Decimal+VCD-Vahana-Cloud-1.x+2024_M10/”, “event_source”: “server”, “page”: null}
tutor_local-cms-1 | 2025-01-30 07:19:48,629 INFO 1 [tracking] [user 566] [ip 14.98.68.106] logger.py:41 - {“name”: “/api/contentstore/v1/help_urls”, “context”: {“user_id”: 566, “path”: “/api/contentstore/v1/help_urls”, “course_id”: “”, “org_id”: “”, “enterprise_uuid”: “”}, “username”: “Diksha.Goel”, “session”: “647d39f58576b1e4ca91cbe9ef23e65d”, “ip”: “14.98.68.106”, “agent”: “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36”, “host”: “studio.learning.vahanacloud.com”, “referer”: “https://apps.learning.vahanacloud.com/”, “accept_language”: “en-US,en;q=0.9”, “event”: “{"GET": {}, "POST": {}}”, “time”: “2025-01-30T07:19:48.628189+00:00”, “event_type”: “/api/contentstore/v1/help_urls”, “event_source”: “server”, “page”: null}
tutor_local-cms-1 | [pid: 1|app: 0|req: 1088/2381] 172.18.0.2 () {62 vars in 3876 bytes} [Thu Jan 30 07:19:48 2025] GET /api/contentstore/v1/help_urls => generated 5558 bytes in 59 msecs (HTTP/1.1 200) 9 headers in 470 bytes (1 switches on core 0)
tutor_local-cms-1 | [pid: 16|app: 0|req: 1044/2382] 172.18.0.2 () {62 vars in 4025 bytes} [Thu Jan 30 07:19:48 2025] GET /api/content_tagging/v1/object_tag_counts/course-v1:Decimal+VCD-Vahana-Cloud-1.x+2024_M10/?count_implicit => generated 8761 bytes in 80 msecs (HTTP/1.1 404) 9 headers in 594 bytes (1 switches on core 0)
tutor_local-cms-1 | 2025-01-30 07:19:48,755 INFO 1 [eventtracking.backends.async_routing] [user 566] [ip 14.98.68.106] async_routing.py:41 - [EventEmissionExit] skipping event /api/contentstore/v1/help_urls
This means xblock.start
is None
, and the code tries to access .year
on a NoneType
object, which isn’t possible.
Missing a starting date on your course perhaps? that’s the only thing that stands out in that log for me, unless someone else might see something i missed
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.