Python is updated to 3.10
jupyterhub-idle-culler-1.4.0
~]# jupyterhub &
~]# [I 2024-11-26 10:52:51.575 JupyterHub app:2859] Running JupyterHub version 4.0.2
[I 2024-11-26 10:52:51.575 JupyterHub app:2889] Using Authenticator: jupyterhub.auth.PAMAuthenticator-4.0.2
[I 2024-11-26 10:52:51.575 JupyterHub app:2889] Using Spawner: jupyterhub.spawner.LocalProcessSpawner-4.0.2
[I 2024-11-26 10:52:51.575 JupyterHub app:2889] Using Proxy: jupyterhub.proxy.ConfigurableHTTPProxy-4.0.2
[I 2024-11-26 10:52:51.650 JupyterHub proxy:556] Generating new CONFIGPROXY_AUTH_TOKEN
[I 2024-11-26 10:52:51.659 JupyterHub app:1984] Not using allowed_users. Any authenticated user will be allowed.
[I 2024-11-26 10:52:51.780 JupyterHub app:2928] Initialized 0 spawners in 0.001 seconds
[I 2024-11-26 10:52:51.784 JupyterHub metrics:278] Found 0 active users in the last ActiveUserPeriods.twenty_four_hours
[I 2024-11-26 10:52:51.785 JupyterHub metrics:278] Found 2 active users in the last ActiveUserPeriods.seven_days
[I 2024-11-26 10:52:51.785 JupyterHub metrics:278] Found 2 active users in the last ActiveUserPeriods.thirty_days
[W 2024-11-26 10:52:51.785 JupyterHub proxy:625] Found proxy pid file: /root/jupyterhub-proxy.pid
[W 2024-11-26 10:52:51.785 JupyterHub proxy:642] Proxy still running at pid=457731
[W 2024-11-26 10:52:52.787 JupyterHub proxy:662] Stopped proxy at pid=457731
[W 2024-11-26 10:52:52.787 JupyterHub proxy:746] Running JupyterHub without SSL. I hope there is SSL termination happening somewhere else…
[I 2024-11-26 10:52:52.787 JupyterHub proxy:750] Starting proxy @ http://:9443/
10:52:52.952 [ConfigProxy] info: Proxying http://*:9443 to (no default)
10:52:52.953 [ConfigProxy] info: Proxy API at http://127.0.0.1:8001/api/routes
[I 2024-11-26 10:52:52.979 JupyterHub app:3178] Hub API listening on http://127.0.0.1:8081/hub/
[I 2024-11-26 10:52:52.979 JupyterHub app:3189] Starting managed service jupyterhub-idle-culler-service
[I 2024-11-26 10:52:52.979 JupyterHub service:385] Starting service ‘jupyterhub-idle-culler-service’: [‘-m’, ‘jupyterhub_idle_culler’, ‘–timeout=3600’]
10:52:52.979 [ConfigProxy] info: 200 GET /api/routes
[I 2024-11-26 10:52:52.980 JupyterHub service:133] Spawning -m jupyterhub_idle_culler --timeout=3600
[C 2024-11-26 10:52:52.981 JupyterHub app:3193] Failed to start service jupyterhub-idle-culler-service
Traceback (most recent call last):
File “/opt/anaconda310/lib/python3.10/site-packages/jupyterhub/app.py”, line 3191, in start
await service.start()
File “/opt/anaconda310/lib/python3.10/site-packages/jupyterhub/services/service.py”, line 421, in start
self.spawner.start()
File “/opt/anaconda310/lib/python3.10/site-packages/jupyterhub/services/service.py”, line 135, in start
self.proc = Popen(
File “/opt/anaconda310/lib/python3.10/subprocess.py”, line 971, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File “/opt/anaconda310/lib/python3.10/subprocess.py”, line 1847, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: ‘-m’
jupyterhub_config.py
import sys
c.JupyterHub.load_roles = [
{
“name”: “jupyterhub-idle-culler-role”,
“scopes”: [
“list:users”,
“read:users:activity”,
“read:servers”,
“delete:servers”,
],
“services”: [“jupyterhub-idle-culler-service”],
}
]
c.JupyterHub.admin_access = True
c.JupyterHub.cookie_max_age_days = 1
c.JupyterHub.port = 9443
c.JupyterHub.services = [
{
“name”: “jupyterhub-idle-culler-service”,
“command”: [
“-m”, “jupyterhub_idle_culler”,
“–timeout=3600”,
],
}
]
c.Spawner.default_url = ‘/lab’
Let me know if you need additional details.