无法连接到JupyterHub(使用Python 3)Errormessage:[Errno 8]提供了nodename或servname,或者未知

2024-10-03 21:24:56 发布

您现在位置:Python中文网/ 问答频道 /正文

安装后无法连接到JupyterHub

我刚刚在pip3上安装了JupyterHub和一个新安装。我的操作系统是MacOS Sierra。它试图连接到Malins Macbook Air似乎有点奇怪。当我在终端中输入$HOSTNAME时,我会得到一个空字符串,而当我输入HOSTNAME时,它给我的是Malins Macbook-本地航空公司. 在

尝试连接到jupyterHub时,出现以下错误:

⋊> ~/S/I/inf5860_oblig1 on master ⨯ jupyterhub                                                                                                                     17:44:39
[I 2018-02-01 17:44:42.484 JupyterHub app:834] Loading cookie_secret from /Users/malinaandahl/Skole/INF5860/inf5860_oblig1/jupyterhub_cookie_secret
[W 2018-02-01 17:44:42.518 JupyterHub app:955] No admin users, admin interface will be unavailable.
[W 2018-02-01 17:44:42.519 JupyterHub app:956] Add any administrative users to `c.Authenticator.admin_users` in config.
[I 2018-02-01 17:44:42.519 JupyterHub app:983] Not using whitelist. Any authenticated user will be allowed.
[I 2018-02-01 17:44:42.566 JupyterHub app:1528] Hub API listening on http://127.0.0.1:8081/hub/
[W 2018-02-01 17:44:42.568 JupyterHub proxy:415]
    Generating CONFIGPROXY_AUTH_TOKEN. Restarting the Hub will require restarting the proxy.
    Set CONFIGPROXY_AUTH_TOKEN env or JupyterHub.proxy_auth_token config to avoid this message.

[W 2018-02-01 17:44:42.569 JupyterHub proxy:456] Running JupyterHub without SSL.  I hope there is SSL termination happening somewhere else...
[I 2018-02-01 17:44:42.569 JupyterHub proxy:458] Starting proxy @ http://*:8000/
17:44:42.771 - info: [ConfigProxy] Proxying http://*:8000 to (no default)
17:44:42.779 - info: [ConfigProxy] Proxy API at http://127.0.0.1:8001/api/routes
[E 2018-02-01 17:44:47.582 JupyterHub utils:47] Unexpected error connecting to Malins-MacBook-Air.local:8000 [Errno 8] nodename nor servname provided, or not known
[E 2018-02-01 17:44:52.590 JupyterHub utils:47] Unexpected error connecting to Malins-MacBook-Air.local:8000 [Errno 8] nodename nor servname provided, or not known
[E 2018-02-01 17:44:57.597 JupyterHub utils:47] Unexpected error connecting to Malins-MacBook-Air.local:8000 [Errno 8] nodename nor servname provided, or not known
[E 2018-02-01 17:45:02.605 JupyterHub utils:47] Unexpected error connecting to Malins-MacBook-Air.local:8000 [Errno 8] nodename nor servname provided, or not known
[E 2018-02-01 17:45:07.619 JupyterHub utils:47] Unexpected error connecting to Malins-MacBook-Air.local:8000 [Errno 8] nodename nor servname provided, or not known
[E 2018-02-01 17:45:12.634 JupyterHub utils:47] Unexpected error connecting to Malins-MacBook-Air.local:8000 [Errno 8] nodename nor servname provided, or not known
[E 2018-02-01 17:45:17.644 JupyterHub utils:47] Unexpected error connecting to Malins-MacBook-Air.local:8000 [Errno 8] nodename nor servname provided, or not known
[E 2018-02-01 17:45:22.652 JupyterHub utils:47] Unexpected error connecting to Malins-MacBook-Air.local:8000 [Errno 8] nodename nor servname provided, or not known
[E 2018-02-01 17:45:27.659 JupyterHub utils:47] Unexpected error connecting to Malins-MacBook-Air.local:8000 [Errno 8] nodename nor servname provided, or not known
[E 2018-02-01 17:45:32.668 JupyterHub utils:47] Unexpected error connecting to Malins-MacBook-Air.local:8000 [Errno 8] nodename nor servname provided, or not known
[E 2018-02-01 17:45:37.676 JupyterHub utils:47] Unexpected error connecting to Malins-MacBook-Air.local:8000 [Errno 8] nodename nor servname provided, or not known
[C 2018-02-01 17:45:37.677 JupyterHub app:1535] Failed to start proxy
    Traceback (most recent call last):
      File "/usr/local/lib/python3.6/site-packages/jupyterhub/app.py", line 1533, in start
        yield self.proxy.start()
      File "/usr/local/lib/python3.6/site-packages/jupyterhub/proxy.py", line 489, in start
        yield server.wait_up(1)
      File "/usr/local/lib/python3.6/site-packages/jupyterhub/utils.py", line 146, in wait_for_server
        timeout=timeout
      File "/usr/local/lib/python3.6/site-packages/jupyterhub/utils.py", line 135, in exponential_backoff
        raise TimeoutError(fail_message)
    TimeoutError: Server at Malins-MacBook-Air.local:8000 didn't respond in 1 seconds

我尝试运行sudo jupyterhub,它给了我同样的错误消息。jupyter疑难解答的输出:

^{pr2}$

Tags: ortolocalutilserrorairmacbookjupyterhub