Jupyterhub无法启动服务器-500错误 [英] Jupyterhub cannot start server - 500 error
问题描述
我正在尝试为多用户模式运行jupyter hub.我从PIP安装了jupyterhub.
I am trying to run jupyter hub for multiuser mode. I installed jupyterhub from PIP.
[root @ ip-of-machine hadoop]#echo $ PATH
[root@ip-of-machine hadoop]# echo $PATH
/usr/local/bin/jupyterhub-singleuser:/usr/local/bin/jupyterhub:/sbin:/bin:/usr/sbin:/usr/bin:/opt/aws/bin
/usr/local/bin/jupyterhub-singleuser:/usr/local/bin/jupyterhub:/sbin:/bin:/usr/sbin:/usr/bin:/opt/aws/bin
当我调整jupyterhub时,我收到一条错误消息
When I tun jupyterhub I get an error saying
500:内部服务器错误
500 : Internal Server Error
无法启动服务器.请联系管理员.
Failed to start your server. Please contact admin.
我以
[root@ip-of-machine hadoop]# /usr/local/bin/jupyterhub -f ./jupyterhub/jupyterhub_config.py --no-ssl
日志包含
[I 2016-05-03 17:13:09.406 JupyterHub spawner:465] Spawning jupyterhub-singleuser --user=jupyter --port=40770 --cookie-name=jupyter-hub-token-jupyter --base-url=/user/jupyter --hub-host= --hub-prefix=/hub/ --hub-api-url=http://127.0.0.1:8081/hub/api --ip=127.0.0.1
[E 2016-05-03 17:13:09.433 JupyterHub user:237] Unhandled error starting jupyter's server: [Errno 2] No such file or directory: 'jupyterhub-singleuser'
但是路径中有单用户.我将其显式添加到path并导出.
But there is singleuser in path. I explicitly added it to path and exported.
有任何线索吗?谢谢.
推荐答案
PATH应该包含目录的列表,其中包含应该找到的可执行文件,而不是可执行文件本身.
PATH should contain a list of directories containing executables that should be found, not the executables themselves.
所以不是
/usr/local/bin/jupyterhub-singleuser:/usr/local/bin/jupyterhub:/sbin:/bin:/usr/sbin:/usr/bin:/opt/aws/bin
您的路径应为:
/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/aws/bin
应该同时找到jupyterhub
和jupyterhub-singleuser
.
这篇关于Jupyterhub无法启动服务器-500错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!