【发布时间】:2020-09-22 03:35:08
【问题描述】:
我正在尝试设置 jupyterhub。 8000用于不同的程序,所以我必须使用不同的端口。
我更改文件 /etc/jupyterhub/jupyterhub_config.py add/uncmets:
c.JupyterHub.hub_port = 9003
c.JupyterHub.ip = '111.111.11.1'
c.JupyterHub.port = 9002
c.ConfigurableHTTPProxy.api_url = 'http://127.0.0.1:9000'
当我尝试运行 jupyterhub 时,出现错误:
[W 2020-06-03 14:48:48.930 JupyterHub proxy:554] 在 pid=47639 处停止代理
[W 2020-06-03 14:48:48.932 JupyterHub 代理:643] 在没有 SSL 的情况下运行 JupyterHub。
我希望在其他地方发生 SSL 终止...
[我 2020-06-03 14:48:48.932 JupyterHub proxy:646] 启动代理@http://111.111.11.1:9002/
14:48:49.301 [ConfigProxy] 信息:代理 http://111.111.11.1:9002 到(无默认值)
14:48:49.307 [ConfigProxy] 信息:代理 API 位于 http://127.0.0.1:9000/api/routes
14:48:49.315 [ConfigProxy] 错误:未捕获的异常
[E 2020-06-03 14:48:49.437 JupyterHub 应用程序:2718]
回溯(最近一次通话最后一次):
文件“/home/user/miniconda/2020.02/python/3.7/lib/python3.7/site-packages/jupyterhub/app.py”,第 2716 行,在 launch_instance_async
等待 self.start()
文件“/home/user/miniconda/2020.02/python/3.7/lib/python3.7/site-packages/jupyterhub/app.py”,第 2524 行,开始
等待 self.proxy.get_all_routes()
文件“/home/user/miniconda/2020.02/python/3.7/lib/python3.7/site-pack#c.JupyterHub.hub_ip = '127.0.0.1'
年龄/jupyterhub/proxy.py”,第 806 行,在 get_all_routes
resp = await self.api_request('', client=client)
文件“/home/user/miniconda/2020.02/python/3.7/lib/python3.7/site-packages/jupyterhub/proxy.py”,第 774 行,在 api_request
结果 = 等待 client.fetch(req)
tornado.httpclient.HTTPClientError: HTTP 403: Forbidden
在8000以外的端口上安装jupyterhub的正确方法是什么?
谢谢。
【问题讨论】:
标签: jupyter jupyterhub