Unable to connect to JupyterHub

164 views
Skip to first unread message

Rafel Amer Ramon

unread,
Mar 29, 2020, 9:07:06 AM3/29/20
to Project Jupyter

Hi,

I have installed Jupyter and JupyterHub in Ubuntu and configured Apache
as a proxy. But when I try to connect to http://localhost, I get the following error
in the web browser:

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request

Reason: Error reading from remote server

I'm sure that JupyterHub is running. If I run it in degug mode

~# jupyterhub -f /etc/jupyterhub/jupyterhub_config.py --debug &>> jupyterhub.log
~# tail -f jupyter.log
tail -f jupyterhub.log
12:59:08.662 [ConfigProxy] info: 200 GET /api/routes
[I 2020-03-29 12:59:08.664 JupyterHub proxy:320] Checking routes
[I 2020-03-29 12:59:08.664 JupyterHub proxy:400] Adding default route for Hub: / => http://127.0.0.1:8081
[D 2020-03-29 12:59:08.665 JupyterHub proxy:766] Proxy: Fetching POST http://127.0.0.1:8001/api/routes/
12:59:08.666 [ConfigProxy] info: 200 GET /api/routes
12:59:08.667 [ConfigProxy] info: Adding route / -> http://127.0.0.1:8081
12:59:08.667 [ConfigProxy] info: Route added / -> http://127.0.0.1:8081
[I 2020-03-29 12:59:08.668 JupyterHub app:2631] JupyterHub is now running at http://127.0.0.1:8000
[D 2020-03-29 12:59:08.669 JupyterHub app:2233] It took 0.617 seconds for the Hub to start
12:59:08.669 [ConfigProxy] info: 201 POST /api/routes/

Then I try to connect to the server
ang get the same error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request

 Reason: Error reading from remote serve
r

and nothing is shown in the jupyterhub.log file. It seems that apache can't connect to jupyterhub.

Any help would be appreciated

Rafel Amer
Reply all
Reply to author
Forward
0 new messages