Studio login error?

Running tutor, version 13.1.5.
Maple.2.

I first thought it was a problem with our fork and migrating our data to Tutor, but I encountered the same problem with a fresh installation without our fork when trying to authenticate to Studio.

Not a big problem because I can still access Studio’s content if I click on the Studio logo on the top left corner after authenticating to Studio or accessing a course through “View course in: Studio” when I am a staff member or part of the course team.

It would definitely be a major annoyance if we had to explain the workaround to all our course developers.

Here is the error message taken from the cms logs.

2022-02-27 04:50:37,438 ERROR 17 [root] [user None] [ip None] signals.py:22 - Uncaught exception from None
Traceback (most recent call last):
  File "/openedx/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/openedx/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/opt/pyenv/versions/3.8.12/lib/python3.8/contextlib.py", line 75, in inner
    return func(*args, **kwds)
  File "/openedx/venv/lib/python3.8/site-packages/django/views/decorators/cache.py", line 44, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/openedx/venv/lib/python3.8/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
    return view_func(*args, **kwargs)
  File "/openedx/venv/lib/python3.8/site-packages/social_django/utils.py", line 46, in wrapper
    return func(request, backend, *args, **kwargs)
  File "/openedx/venv/lib/python3.8/site-packages/social_django/views.py", line 31, in complete
    return do_complete(request.backend, _do_login, user=request.user,
  File "/openedx/venv/lib/python3.8/site-packages/social_core/actions.py", line 45, in do_complete
    user = backend.complete(user=user, *args, **kwargs)
  File "/openedx/venv/lib/python3.8/site-packages/social_core/backends/base.py", line 40, in complete
    return self.auth_complete(*args, **kwargs)
  File "/openedx/venv/lib/python3.8/site-packages/auth_backends/backends.py", line 98, in auth_complete
    user = super().auth_complete(*args, **kwargs)
  File "/openedx/venv/lib/python3.8/site-packages/social_core/utils.py", line 248, in wrapper
    return func(*args, **kwargs)
  File "/openedx/venv/lib/python3.8/site-packages/social_core/backends/oauth.py", line 375, in auth_complete
    state = self.validate_state()
  File "/openedx/venv/lib/python3.8/site-packages/social_core/backends/oauth.py", line 87, in validate_state
    raise AuthStateMissing(self, 'state')
social_core.exceptions.AuthStateMissing: Session value state missing.
2022-02-27 04:50:37,443 ERROR 17 [django.request] [user None] [ip 64.229.109.112] log.py:224 - Internal Server Error: /complete/edx-oauth2/

I saw some posts talking about an issue with the preview host, but I thought it was fixed.

Does anybody have the same error when trying to authenticate to Studio?

Hey Pierre,
I also observed this issue and reported it here: First authentication in Studio raises a 500 error: `social_core.exceptions.AuthStateMissing: Session value state missing.` · Issue #114 · openedx/build-test-release-wg · GitHub This seems to be caused by the fact that cookies are dropped “samesite: lax”, but I have no idea why…

1 Like

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