【问题标题】:Jupyterhub Error 503: Proxy Target MissingJupyterhub 错误 503:缺少代理目标
【发布时间】:2016-05-13 01:12:16
【问题描述】:

我设法在我的服务器上建立了Jupyterhub,它运行良好。由于我尝试重新启动 Jupyterhub 服务,它不再工作,当我尝试运行它时,我看到了错误消息:

Proxy appears to be running at http://*:8000/, but I can't access it (HTTP 403: Forbidden)
Did CONFIGPROXY_AUTH_TOKEN change?

在网络浏览器中我得到了

Error 503: Proxy Target Missing. 

可能与我每次运行Jupyterhub时看到的警告有关:

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.

【问题讨论】:

    标签: python proxy jupyterhub


    【解决方案1】:
    sudo pkill node
    

    将终止代理服务。

    重启 Jupyterhub 会重启它。

    适用于 Ubuntu 14.04

    jupyterhub --no-ssl &
    

    如果您没有设置 ssl 证书,则没有 ssl & 或 & 以在您的 tty 或终端会话关闭时保持服务运行

    您可以使用 sudo pkill jupyterhub 来终止该进程。 (并不总是像创建初始化服务那样可靠)

    【讨论】:

      【解决方案2】:

      不用重启整个机器,在重启jupyterhub之前杀掉configurable-http-proxy进程应该就够了:

      [root@box jupyterhub]# ps aux | grep proxy 
      jupyrhub 42079 0.0  0.1 741424 20248 ?        Sl   15:10   0:00 node /usr/bin/configurable-http-proxy --ip  --port 9876 --api-ip 127.0.0.1
      --api-port 9877 --default-target http://127.0.0.1:8081 --ssl-key /etc/pki/tls/private/server_AZL-BUEdge-01.key --ssl-cert
      /etc/pki/tls/private/server_AZL-BUEdge-01_fullchain.pem root     42683
      0.0  0.0 103308   864 pts/10   S+   15:20   0:00 grep proxy 
      [root@box]# kill -9 42079
      

      【讨论】:

        猜你喜欢
        • 2011-06-04
        • 1970-01-01
        • 1970-01-01
        • 2021-12-31
        • 2021-11-11
        • 2015-11-07
        • 1970-01-01
        • 2010-10-15
        • 2015-12-26
        相关资源
        最近更新 更多