Issue while creating an account

I am facing an issue while creating an account. the screen gets stuck and gets nowhere.


Here are the logs.

lms_1            |     return super().dispatch(request, *args, **kwargs)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/rest_framew                                                                                                             ork/views.py", line 509, in dispatch
lms_1            |     response = self.handle_exception(exc)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/rest_framew                                                                                                             ork/views.py", line 469, in handle_exception
lms_1            |     self.raise_uncaught_exception(exc)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/rest_framew                                                                                                             ork/views.py", line 480, in raise_uncaught_exception
lms_1            |     raise exc
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/rest_framew                                                                                                             ork/views.py", line 506, in dispatch
lms_1            |     response = handler(request, *args, **kwargs)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/django/util                                                                                                             s/decorators.py", line 45, in _wrapper
lms_1            |     return bound_method(*args, **kwargs)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/django/view                                                                                                             s/decorators/csrf.py", line 54, in wrapped_view
lms_1            |     return view_func(*args, **kwargs)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/django/util                                                                                                             s/decorators.py", line 45, in _wrapper
lms_1            |     return bound_method(*args, **kwargs)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/ratelimit/d                                                                                                             ecorators.py", line 24, in _wrapped
lms_1            |     return fn(request, *args, **kw)
lms_1            |   File "./openedx/core/djangoapps/user_authn/views/register.p                                                                                                             y", line 529, in post
lms_1            |     response, user = self._create_account(request, data)
lms_1            |   File "./openedx/core/djangoapps/user_authn/views/register.p                                                                                                             y", line 572, in _create_account
lms_1            |     user = create_account_with_params(request, data)
lms_1            |   File "./openedx/core/djangoapps/user_authn/views/register.p                                                                                                             y", line 236, in create_account_with_params
lms_1            |     compose_and_send_activation_email(user, profile, registra                                                                                                             tion)
lms_1            |   File "/openedx/edx-platform/common/djangoapps/student/views                                                                                                             /management.py", line 214, in compose_and_send_activation_email
lms_1            |     send_activation_email.delay(str(msg))
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/edx_ace/ser                                                                                                             ialization.py", line 29, in __str__
lms_1            |     return json.dumps(self, cls=MessageEncoder)
lms_1            |   File "/opt/pyenv/versions/3.8.6/lib/python3.8/json/__init__                                                                                                             .py", line 234, in dumps
lms_1            |     return cls(
lms_1            |   File "/opt/pyenv/versions/3.8.6/lib/python3.8/json/encoder.                                                                                                             py", line 199, in encode
lms_1            |     chunks = self.iterencode(o, _one_shot=True)
lms_1            |   File "/opt/pyenv/versions/3.8.6/lib/python3.8/json/encoder.                                                                                                             py", line 257, in iterencode
lms_1            |     return _iterencode(o, 0)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/edx_ace/ser                                                                                                             ialization.py", line 119, in default
lms_1            |     return super().default(o)   # pragma: no cover
lms_1            |   File "/opt/pyenv/versions/3.8.6/lib/python3.8/json/encoder.                                                                                                             py", line 179, in default
lms_1            |     raise TypeError(f'Object of type {o.__class__.__name__} '
lms_1            | TypeError: Object of type LazyStaticAbsoluteUrl is not JSON s                                                                                                             erializable
lms_1            | 2021-09-28 11:53:31,607 ERROR 7 [django.request] [user 7] [ip                                                                                                              117.20.18.127] log.py:222 - Internal Server Error: /api/user/v2/account/registr                                                                                                             ation/
lms_1            | Traceback (most recent call last):
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/django/core                                                                                                             /handlers/exception.py", line 34, in inner
lms_1            |     response = get_response(request)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/django/core                                                                                                             /handlers/base.py", line 115, in _get_response
lms_1            |     response = self.process_exception_by_middleware(e, reques                                                                                                             t)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/django/core                                                                                                             /handlers/base.py", line 113, in _get_response
lms_1            |     response = wrapped_callback(request, *callback_args, **ca                                                                                                             llback_kwargs)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/django/view                                                                                                             s/decorators/csrf.py", line 54, in wrapped_view
lms_1            |     return view_func(*args, **kwargs)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/django/view                                                                                                             s/generic/base.py", line 71, in view
lms_1            |     return self.dispatch(request, *args, **kwargs)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/django/util                                                                                                             s/decorators.py", line 45, in _wrapper
lms_1            |     return bound_method(*args, **kwargs)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/django/util                                                                                                             s/decorators.py", line 45, in _wrapper
lms_1            |     return bound_method(*args, **kwargs)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/django/view                                                                                                             s/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
lms_1            |     return view(request, *args, **kwargs)
lms_1            |   File "./openedx/core/djangoapps/user_authn/views/register.p                                                                                                             y", line 485, in dispatch
lms_1            |     return super().dispatch(request, *args, **kwargs)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/rest_framew                                                                                                             ork/views.py", line 509, in dispatch
lms_1            |     response = self.handle_exception(exc)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/rest_framew                                                                                                             ork/views.py", line 469, in handle_exception
lms_1            |     self.raise_uncaught_exception(exc)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/rest_framew                                                                                                             ork/views.py", line 480, in raise_uncaught_exception
lms_1            |     raise exc
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/rest_framew                                                                                                             ork/views.py", line 506, in dispatch
lms_1            |     response = handler(request, *args, **kwargs)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/django/util                                                                                                             s/decorators.py", line 45, in _wrapper
lms_1            |     return bound_method(*args, **kwargs)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/django/view                                                                                                             s/decorators/csrf.py", line 54, in wrapped_view
lms_1            |     return view_func(*args, **kwargs)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/django/util                                                                                                             s/decorators.py", line 45, in _wrapper
lms_1            |     return bound_method(*args, **kwargs)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/ratelimit/d                                                                                                             ecorators.py", line 24, in _wrapped
lms_1            |     return fn(request, *args, **kw)
lms_1            |   File "./openedx/core/djangoapps/user_authn/views/register.p                                                                                                             y", line 529, in post
lms_1            |     response, user = self._create_account(request, data)
lms_1            |   File "./openedx/core/djangoapps/user_authn/views/register.p                                                                                                             y", line 572, in _create_account
lms_1            |     user = create_account_with_params(request, data)
lms_1            |   File "./openedx/core/djangoapps/user_authn/views/register.p                                                                                                             y", line 236, in create_account_with_params
lms_1            |     compose_and_send_activation_email(user, profile, registra                                                                                                             tion)
lms_1            |   File "/openedx/edx-platform/common/djangoapps/student/views                                                                                                             /management.py", line 214, in compose_and_send_activation_email
lms_1            |     send_activation_email.delay(str(msg))
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/edx_ace/ser                                                                                                             ialization.py", line 29, in __str__
lms_1            |     return json.dumps(self, cls=MessageEncoder)
lms_1            |   File "/opt/pyenv/versions/3.8.6/lib/python3.8/json/__init__                                                                                                             .py", line 234, in dumps
lms_1            |     return cls(
lms_1            |   File "/opt/pyenv/versions/3.8.6/lib/python3.8/json/encoder.                                                                                                             py", line 199, in encode
lms_1            |     chunks = self.iterencode(o, _one_shot=True)
lms_1            |   File "/opt/pyenv/versions/3.8.6/lib/python3.8/json/encoder.                                                                                                             py", line 257, in iterencode
lms_1            |     return _iterencode(o, 0)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/edx_ace/ser                                                                                                             ialization.py", line 119, in default
lms_1            |     return super().default(o)   # pragma: no cover
lms_1            |   File "/opt/pyenv/versions/3.8.6/lib/python3.8/json/encoder.                                                                                                             py", line 179, in default
lms_1            |     raise TypeError(f'Object of type {o.__class__.__name__} '
lms_1            | TypeError: Object of type LazyStaticAbsoluteUrl is not JSON s                                                                                                             erializable
lms_1            | [pid: 7|app: 0|req: 10/21] 172.18.0.12 () {54 vars in 1329 by                                                                                                             tes} [Tue Sep 28 11:53:31 2021] POST /api/user/v2/account/registration/ => gener                                                                                                             ated 9925 bytes in 543 msecs (HTTP/1.0 500) 8 headers in 547 bytes (1 switches o                                                                                                             n core 0)
nginx_1          | 172.18.0.5 - - [28/Sep/2021:11:53:31 +0000] http://lms.analyt                                                                                                             ics.com.pk "POST /api/user/v2/account/registration/ HTTP/1.1" 500 9925 "http://l                                                                                                             ms.analytics.com.pk/register?next=%2F" "Mozilla/5.0 (Windows NT 10.0; Win64; x64                                                                                                             ) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36 Edg/9                                                                                                             4.0.992.31" "117.20.18.127"
redis_1          | 1:M 28 Sep 2021 11:54:37.058 * 10 changes in 300 seconds. Saving...
redis_1          | 1:M 28 Sep 2021 11:54:37.058 * Background saving started by pid 21
redis_1          | 21:C 28 Sep 2021 11:54:37.064 * DB saved on disk
redis_1          | 21:C 28 Sep 2021 11:54:37.065 * RDB: 0 MB of memory used by copy-on-write
redis_1          | 1:M 28 Sep 2021 11:54:37.159 * Background saving terminated with success

This issue was also reported here and resolved a few minutes ago in tutor v12.1.3.

@regis I upgraded to 12.1.3 still error LazyStaticAbsoluteUrl.

lms_1            | Traceback (most recent call last):
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 34, in inner
lms_1            |     response = get_response(request)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 115, in _get_response
lms_1            |     response = self.process_exception_by_middleware(e, request)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 113, in _get_response
lms_1            |     response = wrapped_callback(request, *callback_args, **callback_kwargs)
lms_1            |   File "/opt/pyenv/versions/3.8.6/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/views/decorators/csrf.py", line 54, in wrapped_view
lms_1            |     return view_func(*args, **kwargs)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 71, in view
lms_1            |     return self.dispatch(request, *args, **kwargs)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 45, in _wrapper
lms_1            |     return bound_method(*args, **kwargs)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
lms_1            |     return view(request, *args, **kwargs)
lms_1            |   File "./openedx/core/djangoapps/user_authn/views/login.py", line 617, in dispatch
lms_1            |     return super().dispatch(request, *args, **kwargs)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/rest_framework/views.py", line 509, in dispatch
lms_1            |     response = self.handle_exception(exc)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/rest_framework/views.py", line 469, in handle_exception
lms_1            |     self.raise_uncaught_exception(exc)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
lms_1            |     raise exc
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/rest_framework/views.py", line 506, in dispatch
lms_1            |     response = handler(request, *args, **kwargs)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 45, in _wrapper
lms_1            |     return bound_method(*args, **kwargs)
lms_1            |   File "./openedx/core/lib/api/view_utils.py", line 393, in _wrapped
lms_1            |     return func(request)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 45, in _wrapper
lms_1            |     return bound_method(*args, **kwargs)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 142, in _wrapped_view
lms_1            |     response = view_func(request, *args, **kwargs)
lms_1            |   File "./openedx/core/djangoapps/user_authn/views/login.py", line 613, in post
lms_1            |     return login_user(request)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 142, in _wrapped_view
lms_1            |     response = view_func(request, *args, **kwargs)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/django/views/decorators/http.py", line 40, in inner
lms_1            |     return func(request, *args, **kwargs)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/ratelimit/decorators.py", line 24, in _wrapped
lms_1            |     return fn(request, *args, **kw)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/ratelimit/decorators.py", line 24, in _wrapped
lms_1            |     return fn(request, *args, **kw)
lms_1            |   File "./openedx/core/djangoapps/user_authn/views/login.py", line 510, in login_user
lms_1            |     _handle_failed_authentication(user, possibly_authenticated_user)
lms_1            |   File "./openedx/core/djangoapps/user_authn/views/login.py", line 216, in _handle_failed_authentication
lms_1            |     _log_and_raise_inactive_user_auth_error(user)
lms_1            |   File "./openedx/core/djangoapps/user_authn/views/login.py", line 170, in _log_and_raise_inactive_user_auth_error
lms_1            |     compose_and_send_activation_email(unauthenticated_user, profile)
lms_1            |   File "/openedx/edx-platform/common/djangoapps/student/views/management.py", line 214, in compose_and_send_activation_email
lms_1            |     send_activation_email.delay(str(msg))
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/edx_ace/serialization.py", line 29, in __str__
nginx_1          | 172.18.0.6 - - [29/Sep/2021:06:37:49 +0000] http://lms.analytics.com.pk "POST /api/user/v1/account/login_session/ HTTP/1.1" 500 8772 "http://lms.analytics.com.pk/login?next=%2F" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36 Edg/94.0.992.31" "117.20.18.127"
lms_1            |     return json.dumps(self, cls=MessageEncoder)
lms_1            |   File "/opt/pyenv/versions/3.8.6/lib/python3.8/json/__init__.py", line 234, in dumps
lms_1            |     return cls(
lms_1            |   File "/opt/pyenv/versions/3.8.6/lib/python3.8/json/encoder.py", line 199, in encode
lms_1            |     chunks = self.iterencode(o, _one_shot=True)
lms_1            |   File "/opt/pyenv/versions/3.8.6/lib/python3.8/json/encoder.py", line 257, in iterencode
lms_1            |     return _iterencode(o, 0)
lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/edx_ace/serialization.py", line 119, in default
lms_1            |     return super().default(o)   # pragma: no cover
lms_1            |   File "/opt/pyenv/versions/3.8.6/lib/python3.8/json/encoder.py", line 179, in default
lms_1            |     raise TypeError(f'Object of type {o.__class__.__name__} '
lms_1            | TypeError: Object of type LazyStaticAbsoluteUrl is not JSON serializable
lms_1            | [pid: 115|app: 0|req: 10/19] 172.18.0.12 () {54 vars in 1327 bytes} [Wed Sep 29 06:37:49 2021] POST /api/user/v1/account/login_session/ => generated 8772 bytes in 276 msecs (HTTP/1.0 500) 7 headers in 398 bytes (1 switches on core 0)