Jupyterhub 503 Error: Missing Proxy Server

I managed to install Jupyterhub on my server and it worked fine. Since I tried to restart the Jupyterhub service, it no longer works, and when I try to start it, I see an error message:

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

In a web browser, I get

 Error 503: Proxy Target Missing. 

It could be related to the warning I see every time I run 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. 
+6
source share
2 answers
 sudo pkill node 

Kills the proxy service.

Restarting Jupyterhub will restart it.

For Ubuntu 14.04

 jupyterhub --no-ssl & 

no ssl if you do not have settings for ssl certificates & amp; or ampersand for the service to work when the tty or terminal session closes.

You can use sudo pkill jupyterhub to kill the process. (not always reliable, like creating an init service)

+8
source

You do not need to restart the entire computer by killing the configureurable-http-proxy process before restarting jupyterhub should be enough:

 [ 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 
+3
source

All Articles