Uploaded image for project: 'Red Hat OpenShift Data Science'
  1. Red Hat OpenShift Data Science
  2. RHODS-1959

JH Spawner UI: Unable to load notebook server configuration options

XMLWordPrintable

    • 2
    • False
    • False
    • No
    • 1.1.1-57
    • No
    • Add a fix to check if the user has been initialized from an existing token or cookie before attempting to set them as JH admin
    • No
    • Yes
    • None
    • MODH Sprint 31, MODH Sprint 32

      Description of problem:

      When logging in to JH to spawn a notebook pod users are presented with the error "Unable to load notebook server configuration options".

      The JupyterHub server reports an error when the api fails to initialize an authenticated "user" from a cookie or token

        File "/opt/app-root/lib64/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request
          return self.view_functions[rule.endpoint](**req.view_args)
        File "/opt/app-root/lib64/python3.8/site-packages/connexion/decorators/decorator.py", line 68, in wrapper
          response = function(request)
        File "/opt/app-root/lib64/python3.8/site-packages/connexion/decorators/uri_parsing.py", line 149, in wrapper
          response = function(request)
        File "/opt/app-root/lib64/python3.8/site-packages/connexion/decorators/parameter.py", line 115, in wrapper
          return function(**kwargs)
        File "/opt/app-root/lib64/python3.8/site-packages/jupyterhub_singleuser_profiles/api/api.py", line 50, in decorated
          if for_user and user.get('admin'):
      AttributeError: 'NoneType' object has no attribute 'get'
      

      Prerequisites (if any, like setup, operators/versions):

      Steps to Reproduce

      No known reproducer steps currently

      Actual results:

      Upon JH login user is presented with an error in the JH Spawner UI "Unable to load notebook server configuration options"

      Expected results:

      Non-admin user can login to JupyterHub and access the spawner UI

      Reproducibility (Always/Intermittent/Only Once):

      N/A

      Build Details:

      RHODS v1.1.1-34

      Additional info:

      During this error JH admin users can login successfully. The current workaround is to restart all of the Traefik & JupyterHub server pods. The workaround may required deletion and recreation of the JH DeploymentConfig

              llasmith@redhat.com Landon LaSmith
              llasmith@redhat.com Landon LaSmith
              Landon LaSmith
              Luca Giorgi Luca Giorgi
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: