sanjay
February 16, 2022, 12:52pm
1
I deployed jupyter on k8s. All running fine. Not seeing any error on any pod logs.
But when I try to login through browser it throughs 500 internal server error.
only error I see on the hub log is below ------
File “/usr/local/lib/python3.6/dist-packages/traitlets/traitlets.py”, line 2054, in validate
self.error(obj, value)
File “/usr/local/lib/python3.6/dist-packages/traitlets/traitlets.py”, line 625, in error
raise TraitError(e)
traitlets.traitlets.TraitError: The ‘pvc_name_template’ trait of a KubeSpawner instance must be a unicode string, but a value of None <class ‘NoneType’> was specified.
please help.
manics
February 16, 2022, 8:03pm
2
Hi! Welcome to the forum
Please could you tell us:
Your Z2JH version
How you setup your K8S cluster
How you deployed Z2JH
Your Z2JH config with secrets redacted
If you haven’t already read this you might find it useful when posting in future:
Eventually you will get stuck when trying to do something. This post is about how to get help with getting unstuck.
People love helping others. Below some tips on how to, in my experience, improve your chances of getting a good answer. The answers you get will depend very much on the way you ask your question. Most people like hard problems and thought-provoking questions. So give them an interesting question to chew on, and they will love it.
What are the hurdles to getting a good answer? Peo…
Thanks!
sanjay
February 17, 2022, 12:28pm
3
Hello Manics,
Thank you for your quick response. Below are the details …
jupyter --version
jupyter core : 4.6.3
jupyter-notebook : 6.0.3
qtconsole : 4.7.3
ipython : 7.18.1
ipykernel : 5.3.4
jupyter client : 6.1.7
jupyter lab : 2.1.2
nbconvert : 6.0.7
ipywidgets : 7.5.1
nbformat : 5.0.8
traitlets : 4.3.3
===========
Its a multimaster / multinode k8s cluster ( v1.19.0 ) on Ubuntu 20.04.1 LTS.
through helm chart
helm repo add jupyterhub See installation instructions for: | JupyterHub’s Helm chart repository
helm repo update
helm upgrade --install $RELEASE jupyterhub/jupyterhub --namespace $NAMESPACE --version=0.8.2 --values <xyz.yaml>
below is the yaml -----------------
proxy:
secretToken: xxx
service:
type: NodePort
nodePorts:
http: 30018
chp:
resources:
requests:
memory: 0
cpu: 0
services:
test:
admin: true
apiToken: xxxxxxx
extraConfig:
jupyterlab: |
c.Spawner.debug = True
c.Spawner.default_url = ‘/lab’
myConfig.py: |
c.JupyterHub.db_url = ‘xxxxx’
from oauthenticator.gitlab import LocalGitLabOAuthenticator
c.JupyterHub.authenticator_class = LocalGitLabOAuthenticator
c.LocalGitLabOAuthenticator.oauth_callback_url = 'xxxx
c.LocalGitLabOAuthenticator.client_id = xxxxx
c.LocalGitLabOAuthenticator.client_secret = xxxxx
c.LocalGitLabOAuthenticator.auto_login = True
c.LocalAuthenticator.create_system_users = True
c.LocalAuthenticator.add_user_cmd = [‘adduser’, ‘-q’, ‘–gecos’, ‘""’, ‘–disabled-password’, ‘–force-badname’]
c.JupyterHub.admin_access = True
c.Authenticator.admin_users = {xxxx}
singleuser:
image:
name: xxxxx
tag: xxxxxx
imagePullSecrets:
name: xxxxxxxxx
extraEnv:
SPARKMAGIC_CONF_DIR: “/etc/.sparkmagic”
SPARKMAGIC_CONF_FILE: “config.json”
HIVE_KERNEL_CONF_FILE: “/etc/hiveql/hiveql_kernel.json”
GRANT_SUDO: “yes”
uid: 0
cmd: null
storage:
capacity: 2Gi
dynamic:
storageClass: xxxxxxxx
type: none
memory:
limit: 3G
guarantee: 2G
defaultUrl: “/lab”
manics
February 20, 2022, 1:47pm
4
Hi! You’re using a very old version of Z2JH. Please could you try the latest release?
If you still have problems could you: