Hi,
tutor version 20.0.0
When new users register, the platform doesn’t send the activation email. When I check the logs, I see the following error:
2025-07-30 19:47:11,636 INFO 14 [openedx_events.tooling] [user 780] [ip ] tooling.py:179 - Responses of the Open edX Event <org.openedx.learning.student.registration.completed.v1>:
lms-1 | []
lms-1 | 2025-07-30 19:47:11,639 ERROR 14 [edx.discussion] [user 780] [ip ] user.py:1226 - Could not create comments service user with id 780
lms-1 | Traceback (most recent call last):
lms-1 | File "/openedx/venv/lib/python3.11/site-packages/opaque_keys/__init__.py", line 189, in from_string
lms-1 | namespace, rest = cls._separate_namespace(serialized)
lms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lms-1 | File "/openedx/venv/lib/python3.11/site-packages/opaque_keys/__init__.py", line 220, in _separate_namespace
lms-1 | raise InvalidKeyError(cls, serialized)
lms-1 | opaque_keys.InvalidKeyError: <class 'opaque_keys.edx.keys.CourseKey'>: None
lms-1 |
lms-1 | During handling of the above exception, another exception occurred:
lms-1 |
lms-1 | Traceback (most recent call last):
lms-1 | File "/openedx/edx-platform/common/djangoapps/student/models/user.py", line 1223, in create_comments_service_user
lms-1 | cc_user.save()
lms-1 | File "/openedx/edx-platform/openedx/core/djangoapps/django_comment_common/comment_client/models.py", line 170, in save
lms-1 | response = self.handle_update(params)
lms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
lms-1 | File "/openedx/edx-platform/openedx/core/djangoapps/django_comment_common/comment_client/models.py", line 235, in handle_update
lms-1 | response = self.handle_update_user(request_params, str(course_key))
lms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lms-1 | File "/openedx/edx-platform/openedx/core/djangoapps/django_comment_common/comment_client/models.py", line 248, in handle_update_user
lms-1 | response = forum_api.update_user(
lms-1 | ^^^^^^^^^^^^^^^^^^^^^^
lms-1 | File "/openedx/venv/lib/python3.11/site-packages/forum/api/users.py", line 58, in update_user
lms-1 | backend = get_backend(course_id)()
lms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^
lms-1 | File "/openedx/venv/lib/python3.11/site-packages/forum/backend.py", line 35, in _get_backend
lms-1 | if is_mysql_backend_enabled(course_id):
lms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lms-1 | File "/openedx/venv/lib/python3.11/site-packages/forum/backend.py", line 24, in is_mysql_backend_enabled
lms-1 | course_key = CourseKey.from_string(course_id)
lms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lms-1 | File "/openedx/venv/lib/python3.11/site-packages/opaque_keys/__init__.py", line 198, in from_string
lms-1 | return cls.deprecated_fallback._from_deprecated_string(serialized) # type: ignore
lms-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lms-1 | File "/openedx/venv/lib/python3.11/site-packages/opaque_keys/edx/locator.py", line 403, in _from_deprecated_string
lms-1 | raise InvalidKeyError(cls, serialized)
lms-1 | opaque_keys.InvalidKeyError: <class 'opaque_keys.edx.locator.CourseLocator'>: None
I have activated the forum plugin.
Has anyone else had the same thing happen to them and how did you resolve it?