gpt4 book ai didi

linux - 服务器上的其他用户无法打开 JupyterHub

转载 作者:行者123 更新时间:2023-12-04 19:36:16 28 4
gpt4 key购买 nike

我花了很多时间尝试我在网上找到的几个解决方案来解决这个问题。没有任何效果。

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.

任何帮助将不胜感激。

最佳答案

尝试这个:

创建组:

$ 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

关于linux - 服务器上的其他用户无法打开 JupyterHub,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59870206/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com