Real-time collaboration for jupyterhub:

Getting Error: 403 GET /hub/api/users?state=ready (127.0.0.1): Action is not authorized with current scopes; requires any of [list:users]

Using below Yaml

hub:
activeServerLimit: null
allowNamedServers: false
annotations: {}
args:
authenticatePrometheus: null
baseUrl: /
command:
concurrentSpawnLimit: 64
config:
JupyterHub:
default_url: /hub/home
load_groups:
collaboration:
- collab
- user1
- user2
load_roles:
- name: collab-access
description: Access each others servers
scopes:
- access:servers!user=collab
- admin:servers!user=collab
- admin-ui
- list:users!user=collab
groups:
- collaboration
DummyAuthenticator:
allowed_users:
- collab
- user1
- user2
admin_access: true
authenticator_class: dummy

Where i am doing wrong. I tried with python also. Bet getting same error. Please help.

1 Like

chitranjan@chitranjan:~/jupyter$ kubectl -n jupyter logs -f hub-fcd674c47-qs4q9
Loading /usr/local/etc/jupyterhub/secret/values.yaml
No config at /usr/local/etc/jupyterhub/existing-secret/values.yaml
[I 2024-04-10 11:05:17.929 JupyterHub app:2859] Running JupyterHub version 4.0.2
[I 2024-04-10 11:05:17.929 JupyterHub app:2889] Using Authenticator: jupyterhub.auth.DummyAuthenticator-4.0.2
[I 2024-04-10 11:05:17.929 JupyterHub app:2889] Using Spawner: kubespawner.spawner.KubeSpawner-6.2.0
[I 2024-04-10 11:05:17.929 JupyterHub app:2889] Using Proxy: jupyterhub.proxy.ConfigurableHTTPProxy-4.0.2
[I 2024-04-10 11:05:17.956 alembic.runtime.migration migration:213] Context impl SQLiteImpl.
[I 2024-04-10 11:05:17.956 alembic.runtime.migration migration:216] Will assume non-transactional DDL.
[I 2024-04-10 11:05:17.966 alembic.runtime.migration migration:619] Running stamp_revision → 0eee8c825d24
[I 2024-04-10 11:05:17.975 alembic.runtime.migration migration:213] Context impl SQLiteImpl.
[I 2024-04-10 11:05:17.975 alembic.runtime.migration migration:216] Will assume non-transactional DDL.
[I 2024-04-10 11:05:18.127 JupyterHub roles:172] Role collab-access added to database
[W 2024-04-10 11:05:18.138 JupyterHub configurable:214] Config option admin_access not recognized by DummyAuthenticator. Did you mean admin_users?
[W 2024-04-10 11:05:18.138 JupyterHub configurable:214] Config option authenticator_class not recognized by DummyAuthenticator.
[I 2024-04-10 11:05:18.158 JupyterHub app:2071] Creating group collaboration
[W 2024-04-10 11:05:18.158 JupyterHub app:2075] group config 'groupname': [usernames] config format is deprecated in JupyterHub 3.2, use 'groupname': {'users': [usernames], ...}
[I 2024-04-10 11:05:18.221 JupyterHub roles:238] Adding role user for User: collab
[I 2024-04-10 11:05:18.227 JupyterHub roles:238] Adding role user for User: user1
[I 2024-04-10 11:05:18.232 JupyterHub roles:238] Adding role user for User: user2
[I 2024-04-10 11:05:18.245 JupyterHub app:2928] Initialized 0 spawners in 0.002 seconds
[I 2024-04-10 11:05:18.249 JupyterHub metrics:278] Found 0 active users in the last ActiveUserPeriods.twenty_four_hours
[I 2024-04-10 11:05:18.249 JupyterHub metrics:278] Found 0 active users in the last ActiveUserPeriods.seven_days
[I 2024-04-10 11:05:18.250 JupyterHub metrics:278] Found 0 active users in the last ActiveUserPeriods.thirty_days
[I 2024-04-10 11:05:18.250 JupyterHub app:3142] Not starting proxy
[W 2024-04-10 11:05:18.252 JupyterHub proxy:899] api_request to the proxy failed with status code 599, retrying…
[W 2024-04-10 11:05:18.381 JupyterHub proxy:899] api_request to the proxy failed with status code 599, retrying…
[W 2024-04-10 11:05:18.769 JupyterHub proxy:899] api_request to the proxy failed with status code 599, retrying…
[W 2024-04-10 11:05:18.943 JupyterHub proxy:899] api_request to the proxy failed with status code 599, retrying…
[I 2024-04-10 11:05:20.465 JupyterHub app:3178] Hub API listening on http://:8081/hub/
[I 2024-04-10 11:05:20.466 JupyterHub app:3180] Private Hub API connect url url

This Error Log is problematic. Are you runnning the Proxy separatly? your jupyterhub service can´t find your Proxy service.