You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are reporting an issue with JupyterHub, please use the GitHub issue search feature to check if your issue has been asked already. If it has, please add your comments to the existing issue.
Describe the bug
A clear and concise description of what the bug is.
import os
## Generic
c.JupyterHub.admin_access = True
c.Spawner.default_url = '/lab'
## Authenticator
from jhub_cas_authenticator.cas_auth import CASAuthenticator
c.JupyterHub.authenticator_class = CASAuthenticator
# The CAS URLs to redirect (un)authenticated users to.
c.CASAuthenticator.cas_login_url = 'https://ironman/login'
c.CASLocalAuthenticator.cas_logout_url = 'https://ironman/logout'
# The CAS endpoint for validating service tickets.
c.CASAuthenticator.cas_service_validate_url = 'https://ironman/serviceValidate'
# The service URL the CAS server will redirect the browser back to on successful authentication.
c.CASAuthenticator.cas_service_url = 'https://%s/hub/login' % os.environ['HOST']
c.Authenticator.admin_users = { 'lucadefe' }
## Docker spawner
c.JupyterHub.spawner_class = 'dockerspawner.DockerSpawner'
c.DockerSpawner.image = os.environ['DOCKER_JUPYTER_CONTAINER']
c.DockerSpawner.network_name = os.environ['DOCKER_NETWORK_NAME']
# See https://github.com/jupyterhub/dockerspawner/blob/master/examples/oauth/jupyterhub_config.py
#c.JupyterHub.hub_ip = os.environ['HUB_IP']
c.JupyterHub.hub_ip = os.environ['HUB_IP']
# user data persistence
# see https://github.com/jupyterhub/dockerspawner#data-persistence-and-dockerspawner
notebook_dir = os.environ.get('DOCKER_NOTEBOOK_DIR') or '/home/jovyan'
c.DockerSpawner.notebook_dir = notebook_dir
c.DockerSpawner.volumes = { 'jupyterhub-user-{username}': notebook_dir }
# Other stuff
c.Spawner.cpu_limit = 1
c.Spawner.mem_limit = '10G'
# Services
c.JupyterHub.services = [
{
'name': 'cull-idle',
'admin': True,
'command': [sys.executable, 'cull_idle_servers.py', '--timeout=3600'],
}
]
Expected behavior
jupyterhub | [I 2019-08-30 08:33:35.857 JupyterHub app:1667] Using Authenticator: jhub_cas_authenticator.cas_auth.CASAuthenticator
jupyterhub | [I 2019-08-30 08:33:35.857 JupyterHub app:1667] Using Spawner: dockerspawner.dockerspawner.DockerSpawner-0.10.0
jupyterhub | [I 2019-08-30 08:33:35.860 JupyterHub app:1014] Loading cookie_secret from /srv/jupyterhub/jupyterhub_cookie_secret
jupyterhub | Found database schema version 4dc2d5a8c53c != 896818069c98. Backup your database and run `jupyterhub upgrade-db` to upgrade to the latest schema.
jupyterhub exited with code 1
Desktop (please complete the following information):
OS: linux mint
The text was updated successfully, but these errors were encountered:
This method dose not work in jupyterhub 3.0.0 (in z2jh 2.0.0).
When I upgrade kubespawner pip package, the error cames up.
After modify start up command to jupyterhub upgrade-db && jupyterhub --config /usr/local/etc/jupyterhub/jupyterhub_config.py
it became:
[I 2023-04-23 13:14:15.615 alembic.runtime.migration migration:204] Context impl SQLiteImpl.
[I 2023-04-23 13:14:15.615 alembic.runtime.migration migration:207] Will assume non-transactional DDL.
[I 2023-04-23 13:14:15.621 alembic.runtime.migration migration:618] Running stamp_revision -> 651f5419b74d
Loading /usr/local/etc/jupyterhub/secret/values.yaml
No config at /usr/local/etc/jupyterhub/existing-secret/values.yaml
[I 2023-04-23 13:14:16.546 JupyterHub app:2775] Running JupyterHub version 3.0.0
[I 2023-04-23 13:14:16.546 JupyterHub app:2805] Using Authenticator: jupyterhub.auth.DummyAuthenticator-3.0.0
[I 2023-04-23 13:14:16.546 JupyterHub app:2805] Using Spawner: kubespawner.spawner.KubeSpawner-4.3.0
[I 2023-04-23 13:14:16.546 JupyterHub app:2805] Using Proxy: myproxy.KubeIngressProxy
Found database schema version 0eee8c825d24 != 651f5419b74d. Backup your database and run `jupyterhub upgrade-db` to upgrade to the latest schema.
I must update alembic_version set version_num manully to fix it.
Hi! Thanks for using JupyterHub.
If you are reporting an issue with JupyterHub, please use the GitHub issue search feature to check if your issue has been asked already. If it has, please add your comments to the existing issue.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: