Другие пользователи на сервере не могут открыть JupyterHub - PullRequest
0 голосов
/ 23 января 2020

Я потратил много времени, пытаясь найти несколько решений, которые я нашел в Интернете, чтобы решить эту проблему. Ничего не получалось.

Install Location:
  anaconda : /opt/anaconda

Run JupyterHub
  $ cd /opt/anaconda/  <--  I have my jupyter_config.py here
  $ jupyterhub --Spawner.cmd="/opt/anaconda/bin/jupyterhub_singleuser"

Сначала я получил это -

[W JupyterHub auth:956] Failed to open PAM session for user1: [PAM Error 14] Cannot make/remove an entry for the specified session
[W JupyterHub auth:957] Disabling PAM sessions from now on.
[I JupyterHub spawner:1417] Spawning /opt/anaconda/bin/jupyterhub_singleuser --port=27699
Failed to set groups [Errno 1] Operation not permitted
[E JupyterHub user:640] Unhandled error starting user1's server: Exception occurred in preexec_fn.

Итак, я обновил свой конфиг с этим -

c.PAMAuthenticator.open_sessions = False

Первая ошибка исчезла, но я все еще получаю это -

Spawning /opt/anaconda/bin/jupyterhub_singleuser --port=62001
Failed to set groups [Errno 1] Operation not permitted
[E JupyterHub user:640] Unhandled error starting user1's server: Exception occurred in preexec_fn.
[W JupyterHub web:1782] 500 GET /hub/spawn (::ffff:10.2.139.158): Error in Authenticator.pre_spawn_start: SubprocessError Exception occurred in preexec_fn.

Любая помощь будет оценена.

1 Ответ

1 голос
/ 24 января 2020

Попробуйте:

Создать группу:

$ sudo groupadd <groupname>

Добавить пользователя в группу:

$ sudo adduser <username> <groupname>

Проверить членов группы:

$ sudo apt install members -y
$ members <groupname>

[jupyterhub_config.py]

c.LocalAuthenticator.group_whitelist = ['<groupname>']

Я оставляю вам свой GitHub с учебником: Gitub / Jupyter

...