Forum error in maple

Hi,
I have installed tutor in its latest version 13.0.2 and when using forums it gives me this error

lms_1                        | 2022-01-03 23:23:16,239 ERROR 6 [root] [user None] [ip None] signals.py:22 - Uncaught exception from None
lms_1                        | Traceback (most recent call last):
lms_1                        |   File "/openedx/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
lms_1                        |     response = get_response(request)
lms_1                        |   File "/openedx/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response
lms_1                        |     response = wrapped_callback(request, *callback_args, **callback_kwargs)
lms_1                        |   File "/opt/pyenv/versions/3.8.12/lib/python3.8/contextlib.py", line 75, in inner
lms_1                        |     return func(*args, **kwds)
lms_1                        |   File "/openedx/venv/lib/python3.8/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
lms_1                        |     return view_func(request, *args, **kwargs)
lms_1                        |   File "/openedx/edx-platform/./lms/djangoapps/discussion/views.py", line 193, in wrapped_view
lms_1                        |     return view_func(request, course_key, *args, **kwargs)
lms_1                        |   File "/openedx/edx-platform/./lms/djangoapps/discussion/views.py", line 206, in inline_discussion
lms_1                        |     user_info = cc_user.to_dict()
lms_1                        |   File "/openedx/edx-platform/./openedx/core/djangoapps/django_comment_common/comment_client/models.py", line 62, in to_dict
lms_1                        |     self.retrieve()
lms_1                        |   File "/openedx/edx-platform/./openedx/core/djangoapps/django_comment_common/comment_client/models.py", line 67, in retrieve
lms_1                        |     self._retrieve(*args, **kwargs)
lms_1                        |   File "/openedx/edx-platform/./openedx/core/djangoapps/django_comment_common/comment_client/user.py", line 152, in _retrieve
lms_1                        |     response = utils.perform_request(
lms_1                        |   File "/openedx/edx-platform/./openedx/core/djangoapps/django_comment_common/comment_client/utils.py", line 65, in perform_request
lms_1                        |     response = requests.request(
lms_1                        |   File "/openedx/venv/lib/python3.8/site-packages/requests/api.py", line 61, in request
lms_1                        |     return session.request(method=method, url=url, **kwargs)
lms_1                        |   File "/openedx/venv/lib/python3.8/site-packages/requests/sessions.py", line 528, in request
lms_1                        |     prep = self.prepare_request(req)
lms_1                        |   File "/openedx/venv/lib/python3.8/site-packages/requests/sessions.py", line 456, in prepare_request
lms_1                        |     p.prepare(
lms_1                        |   File "/openedx/venv/lib/python3.8/site-packages/requests/models.py", line 316, in prepare
lms_1                        |     self.prepare_url(url, params)
lms_1                        |   File "/openedx/venv/lib/python3.8/site-packages/requests/models.py", line 390, in prepare_url
lms_1                        |     raise MissingSchema(error)
lms_1                        | requests.exceptions.MissingSchema: Invalid URL '/api/v1/users/5': No schema supplied. Perhaps you meant http:///api/v1/users/5?
lms_1                        | 2022-01-03 23:23:16,268 ERROR 6 [django.request] [user 5] [ip 172.16.10.1] log.py:224 - Internal Server Error: /courses/course-v1:edX+DemoX+Demo_Course/discussion/forum/a706403f2447ef8d11b712300514d8dfe4135007/inline
lms_1                        | Traceback (most recent call last):
lms_1                        |   File "/openedx/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
lms_1                        |     response = get_response(request)
lms_1                        |   File "/openedx/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response
lms_1                        |     response = wrapped_callback(request, *callback_args, **callback_kwargs)
lms_1                        |   File "/opt/pyenv/versions/3.8.12/lib/python3.8/contextlib.py", line 75, in inner
lms_1                        |     return func(*args, **kwds)
lms_1                        |   File "/openedx/venv/lib/python3.8/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
lms_1                        |     return view_func(request, *args, **kwargs)
lms_1                        |   File "/openedx/edx-platform/./lms/djangoapps/discussion/views.py", line 193, in wrapped_view
lms_1                        |     return view_func(request, course_key, *args, **kwargs)
lms_1                        |   File "/openedx/edx-platform/./lms/djangoapps/discussion/views.py", line 206, in inline_discussion
lms_1                        |     user_info = cc_user.to_dict()
lms_1                        |   File "/openedx/edx-platform/./openedx/core/djangoapps/django_comment_common/comment_client/models.py", line 62, in to_dict
lms_1                        |     self.retrieve()
lms_1                        |   File "/openedx/edx-platform/./openedx/core/djangoapps/django_comment_common/comment_client/models.py", line 67, in retrieve
lms_1                        |     self._retrieve(*args, **kwargs)
lms_1                        |   File "/openedx/edx-platform/./openedx/core/djangoapps/django_comment_common/comment_client/user.py", line 152, in _retrieve
lms_1                        |     response = utils.perform_request(
lms_1                        |   File "/openedx/edx-platform/./openedx/core/djangoapps/django_comment_common/comment_client/utils.py", line 65, in perform_request
lms_1                        |     response = requests.request(
lms_1                        |   File "/openedx/venv/lib/python3.8/site-packages/requests/api.py", line 61, in request
lms_1                        |     return session.request(method=method, url=url, **kwargs)
lms_1                        |   File "/openedx/venv/lib/python3.8/site-packages/requests/sessions.py", line 528, in request
lms_1                        |     prep = self.prepare_request(req)
lms_1                        |   File "/openedx/venv/lib/python3.8/site-packages/requests/sessions.py", line 456, in prepare_request
lms_1                        |     p.prepare(
lms_1                        |   File "/openedx/venv/lib/python3.8/site-packages/requests/models.py", line 316, in prepare
lms_1                        |     self.prepare_url(url, params)
lms_1                        |   File "/openedx/venv/lib/python3.8/site-packages/requests/models.py", line 390, in prepare_url
lms_1                        |     raise MissingSchema(error)
lms_1                        | requests.exceptions.MissingSchema: Invalid URL '/api/v1/users/5': No schema supplied. Perhaps you meant http:///api/v1/users/5?
lms_1                        | [pid: 6|app: 0|req: 63/121] 172.18.0.2 () {46 vars in 3421 bytes} [Mon Jan  3 23:23:16 2022] GET /courses/course-v1:edX+DemoX+Demo_Course/discussion/forum/a706403f2447ef8d11b712300514d8dfe4135007/inline?page=1&sort_key=activity&sort_order=desc&ajax=1 => generated 10311 bytes in 139 msecs (HTTP/1.1 500) 7 headers in 518 bytes (1 switches on core 0)

Any idea how to solve the problem?

Did you install and enable the tutor-forum plugin? GitHub - overhangio/tutor-forum

I am doubting you forgot to run data migration.
It will be tutor local init -l forum

Thanks, this worked

I thought that the forum was installed by default even as in the native installation

1 Like

Thanks for posting this. I also thought that having a working forum in Lilac should not break on upgrade to Maple (with it not being mentioned anywhere on the documentation that it would). Apparently not…

The forum is installed but it is not enabled by default. The changelog mentions the suppression of the tutor forums: tutor/CHANGELOG.md at master · overhangio/tutor · GitHub
I’m curious: should we make this document more prominent? Or should we print an explicit warning elsewhere?

Greetings,

An apology I had not seen the changelog, generally I always read the documentation and the change logs at least in the native open edx installation I did not look for them, I only read them when they were published in the forum or in slack

Maybe make it like many forums that use discuss and use a banner that says that a new version of the tutor has been released and attach the url of the changelog that would be easier for users to know that there are version changes, in fact I am seeing that there is a new one tutor version

In fact, I had not seen that there was an update on December 4, my installations are with version 13.0.2

I think if reading the changelog is a requirement of upgrading, then it should be linked to immediately before the upgrade command here: Installing Tutor — Tutor documentation

It’s OK, I think that the changelog is not visible enough. And the fact that tutor is being upgraded from one major version to the next is probably not completely clear for those people who do not attend weekly build/test/release meetups – and that is most people.

Both of your points are valid. A similar conversation is ongoing right here: Confusing instructions during upgrade

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.