JupyterHub [edit]

Trouble Shooting [edit]

Internal Server Error 500 [edit]

2023/12/27 docker.errors.DockerException: Error while fetching server API version: request() got an unexpected keyword argument 'chunked' [edit]

INSTALL [edit]

Rocky Linux 8 [edit]

pip [edit]

conda [edit]

for CentOS 8.5 with pip [edit]

# yum install python3
# pip3 install --upgrade pip
# yum install npm
# npm install -g configurable-http-proxy
# pip install setuptools_rust
# pip install jupyterhub
# pip install dockerspawner
# pip install --upgrade notebook
# pip install --upgrade jupyterlab
# jupyterhub --version
# jupyter --version
# jupyter notebook --version
# jupyter lab --version

2.0.0 with conda [edit]

Change Log [edit]
Install [edit]
(base) # conda install -c conda-forge conda==4.11.0 -y
(base) # conda activate jupyterhub
(jupyterhub) # conda update -c conda-forge jupyterhub -y
(jupyterhub) # jupyterhub --upgrade-db
(jupyterhub) # jupyterhub -f .....
podmanspawner.PodmanSpawner [edit]
websocket モジュールが無いとのことで起動しなくなった. [edit]
ModuleNotFoundError: No module named 'websocket'
# conda install -c conda-forge websocket-client
データベースのスキーマが合わないとのことで,起動しなくなった. [edit]

1.4.2 [edit]

conda を使用 [edit]
(base) # conda create -n jupyterhub python=3.8 -y 
(base) # conda activate jupyterhub
(jupyterhub) # conda install -c conda-forge notebook -y
(jupyterhub) # conda install -c conda-forge jupyterlab -y
(jupyterhub) # conda install -c conda-forge jupyterhub==1.4.2  -y
(jupyterhub) # conda install -c conda-forge voila -y
(jupyterhub) # conda install jupyter_client -y

(jupyterhub) # git clone https://github.com/jupyterhub/nativeauthenticator.git 
(jupyterhub) # pip install -e nativeauthenticator   (認証モジュール:オプション)
(jupyterhub) # pip install dockerspawner
npm install -g configurable-http-proxy
python3 -m pip install jupyterhub
python3 -m pip install dockerspawner
python3 -m pip install --upgrade notebook
python3 -m pip install --upgrade jupyterlab 

Notebook の Docker イメージ [edit]

# docker pull jupyter/datascience-notebook
# docker pull jupyter/tensorflow-notebook

Version Up 1.0.0 -> 1.4.1 [edit]

 # conda install -c conda-forge jupyterhub
 # conda install notebook
バージョンの確認 [edit]

LTI Authenticator [edit]

(jupyterhub)# pip install --upgrade jupyterhub-ltiauthenticator

設定 [edit]

Authenticator Class (authenticator_class) [edit]

auth.DummyAuthenticator [edit]
jupyterhub.auth.PAMAuthenticator (default) [edit]
nativeauthenticator.NativeAuthenticator [edit]
LDAP: ldapauthenticator.LDAPAuthenticator [edit]
LTI モジュール [edit]

Server Class [edit]

jupyterhub.spawner.LocalProcessSpawner (default) [edit]
jupyterhub.spawner.SimpleLocalProcessSpawner [edit]
dockerspawner.DockerSpawner [edit]
dockerspawner.SystemUserSpawner [edit]
dockerspawner.SwarmSpawner [edit]
niicloudoperation/jupyterhub-singleuser [edit]

jovyan って誰? [edit]

実行 [edit]

前準備 [edit]
# cd /etc/pki/tls
# openssl req -new -newkey rsa:2048 -days 3650 -nodes -keyout private/key.pem -out server.csr
# openssl x509 -in server.csr -days 3650 -req -signkey private/key.pem -out certs/server.pem
# vi  /usr/local/etc/jupyterhub/jupyterhub_config.py

# mkdir /var/lib/jupyterhub
実行 [edit]
(base) # conda activate jupyterhub
(jupyterhub) # jupyterhub -f /usr/local/etc/jupyterhub/jupyterhub_config.py

Log [edit]

LC_nblineage [edit]

LC_wrapper [edit]

情報ソース [edit]

Notebook [edit]

Docker Images [edit]
* niicloudoperation/notebook [edit]

Spawner [edit]

Docker [edit]
Podman [edit]
Kubernetes [edit]

DB [edit]

MySQL [edit]

NVIDIA [edit]

Driver [edit]

nouveau ドライバ(デフォルトのグラフィックドライバ)を止める [edit]
Driver [edit]
Docker [edit]

Tool Kit [edit]

Docker [edit]

Trouble Shooting [edit]

/var/lib/containers/storage/overlay-containers/volatile-containers.json [edit]

Request Failed(Internal Server Error): container create: creating container storage: the container name \".........\" is already in use by ........ You have to remove that container to be able to reuse that name: that name is already in use.

ltiauthenticator [edit]

Jupyterhub 4.0.0 [edit]

JupyterLab [edit]

JupyterHub をバージョンアップしたら Jupyter Labが起動しなくなった. [edit]

日本語のBUG [edit]

PAM [edit]

JupyterHub: PAM使用時に 再login するとPAMの認証エラーになる. [edit]
swarm モードだと v1.1.0 でPAM認証のエラーを起こす. [edit]

homeディレクトの名前を変えたら,ログインできなくなった [edit]

Programing [edit]

docker [edit]
podman [edit]

トップ   新規 ページ一覧 検索 最終更新   ヘルプ   最終更新のRSS