RuntimeError: Proxy failed to start with exit code 8

573 views
Skip to first unread message

nipun.s...@jsm.email

unread,
Mar 21, 2016, 8:59:53 AM3/21/16
to Project Jupyter
I referred further Documentation

I generated configuration file and tried to following command for my desired ip address (i am using Google cloud server)
and i used port=400

jupyterhub --ip=192.168.1.2 --port=443

But after executing 

sudo jupyterhub --ip=myipaddress --port=4000 --no-ssl

its raising error as :

12:47:57.114 - info: [ConfigProxy] Proxy API at http://127.0.0.1:8001/api/routes

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: listen EADDRNOTAVAIL
    at errnoException (net.js:901:11)
    at Server._listen2 (net.js:1020:19)
    at listen (net.js:1061:10)
    at net.js:1143:9
    at dns.js:72:18
    at process._tickCallback (node.js:415:13)
    at Function.Module.runMain (module.js:499:11)
    at startup (node.js:119:16)
    at node.js:902:3


RuntimeError: Proxy failed to start with exit code 8

Please give me any inputs to resolve the error.


P.S.- Video tutorial or step by step installation guide would be helpful.

MinRK

unread,
Mar 21, 2016, 9:34:20 AM3/21/16
to jup...@googlegroups.com
EADDRNOTAVAIL may mean that it is not able to bind to the specified IP address. Make sure that the IP address can be bound locally. That is, make sure it is the actual local IP address of the machine, not an external proxied IP address. Are you specifying the IP address because you don't want JupyterHub to be publicly available? The default is to listen on all interfaces, which would mean that you do not have to specify the IP at all.

-MinRK

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/2e9441c6-eca6-484c-a48b-6371ca2c439e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted

nipun.s...@jsm.email

unread,
Mar 21, 2016, 10:38:54 AM3/21/16
to Project Jupyter
Actually i dont want publicly available jupyter.
Just for testing purpose i was doing that which rasied error.
Could you tell me resource or procedure to follow to make Private (secured with authentication) jupyterhub installation procedure?

that would be very helpful

MinRK

unread,
Mar 21, 2016, 10:43:02 AM3/21/16
to jup...@googlegroups.com
Specifying an IP address like you are doing makes sense, then. My guess is that the IP address you are specifying is not actually available on the machine. You can check by looking at the output of `ifconfig`.

-MinRK

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.

nipun.s...@jsm.email

unread,
Mar 21, 2016, 10:46:24 AM3/21/16
to Project Jupyter
I did!
here is the output where local ip is 127.0.0.1
 
docker0   Link encap:Ethernet  HWaddr 02:42:80:93:80:86  
          inet addr:172.17.0.1  Bcast:0.0.0.0  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:25867 errors:0 dropped:0 overruns:0 frame:0
          TX packets:37989 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:51604589 (51.6 MB)  TX bytes:271829908 (271.8 MB)

eth0      Link encap:Ethernet  HWaddr 42:01:0a:f0:00:04  
          inet addr:10.240.0.4  Bcast:10.240.0.4  Mask:255.255.255.255
          UP BROADCAST RUNNING MULTICAST  MTU:1460  Metric:1
          RX packets:217974 errors:0 dropped:0 overruns:0 frame:0
          TX packets:191846 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:990555265 (990.5 MB)  TX bytes:79771521 (79.7 MB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:36956 errors:0 dropped:0 overruns:0 frame:0
          TX packets:36956 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:56331840 (56.3 MB)  TX bytes:56331840 (56.3 MB)

MinRK

unread,
Mar 21, 2016, 10:51:57 AM3/21/16
to jup...@googlegroups.com
And what is the exact command you used to launch jupyterhub, and can you share your configuration?

-MinRK

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.

nipun.s...@jsm.email

unread,
Mar 21, 2016, 11:00:49 AM3/21/16
to Project Jupyter
These are steps i followed:
1) ssh into my desired ip address .
2)su for sudo access
3) I already have python2.7 but as because of dependecy of python3.3 for jupyterhub i install python 3.3 above using "sudo apt-get install python3-pip"
4)install jupyter 
pip3 install jupyter
5) Installation of nodejs/npm
sudo apt-get install npm nodejs-legacy
6) install JavaScript dependencies:
 sudo npm install -g configurable-http-proxy

Afterall these steps above,
*I executed jupyterhub only but i dont see on my web browser any page even with following commands also which I tried
 jupyterhub --no-ssl
 jupyterhub --ip myipaddress --port 443 --no-ssl

After this in my web-browser i am using "http://myipaddress:port" (to see any results)

what are next steps to be followed?

Sorry if I am asking dump questions or followed procedure wrong. I am Newbie to do these configurations.

MinRK

unread,
Mar 21, 2016, 11:19:21 AM3/21/16
to jup...@googlegroups.com
On Mon, Mar 21, 2016 at 4:00 PM, <nipun.s...@jsm.email> wrote:
These are steps i followed:
1) ssh into my desired ip address .
2)su for sudo access
3) I already have python2.7 but as because of dependecy of python3.3 for jupyterhub i install python 3.3 above using "sudo apt-get install python3-pip"
4)install jupyter 
pip3 install jupyter
5) Installation of nodejs/npm
sudo apt-get install npm nodejs-legacy
6) install JavaScript dependencies:
 sudo npm install -g configurable-http-proxy

Afterall these steps above,
*I executed jupyterhub only but i dont see on my web browser any page even with following commands also which I tried
 jupyterhub --no-ssl
 jupyterhub --ip myipaddress --port 443 --no-ssl

Port 443 is reserved for HTTPS, so you probably don't want to run unencrypted http on the https port, but this shouldn't be a problem. I would recommend leaving it to port 80 for standard http, or any other high port (8000, etc.).

JupyterHub won't open your webbrowser because it is meant to be a server-side service, not something you treat like a desktop application like the single-user notebook.
 

After this in my web-browser i am using "http://myipaddress:port" (to see any results)

You should only ever visit the port you specify with `--port`. The other ports (such as "Hub listening on...") should **never** be connected to directly. Those are private ports that should only be used internally by the JupyterHub srevices.
 

what are next steps to be followed?

I'm a bit confused by the earlier statement that you were running on a Google cloud server and you don't want the server to be on the public internet, but you are opening a webbrowser pointing to it. Are you running the webbrowser and the JupyterHub server on the same computer? If not, over what network? If your server is across the internet from you and you want to access it, you likely don't need to specify the ip argument at all, because it will already be configured correctly to listen on all interfaces by default. Then you can point your browser to the public IP and port of the machine.

-MiNRK
 

Sorry if I am asking dump questions or followed procedure wrong. I am Newbie to do these configurations.

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.

nipun.s...@jsm.email

unread,
Mar 21, 2016, 11:43:24 AM3/21/16
to Project Jupyter
All i want to do is to create multiuser server with authentication where i and my collegues who are working with me can access these jupyter notebooks through login.
and I am executing my programs on remote server (Google cloud server) through jupyter notebooks. on these notebooks i want to deploy jupyterhu for multiuser access.

MinRK

unread,
Mar 21, 2016, 12:31:02 PM3/21/16
to jup...@googlegroups.com

On Mon, Mar 21, 2016 at 4:43 PM, <nipun.s...@jsm.email> wrote:

All i want to do is to create multiuser server with authentication where i and my collegues who are working with me can access these jupyter notebooks through login.
and I am executing my programs on remote server (Google cloud server) through jupyter notebooks. on these notebooks i want to deploy jupyterhu for multiuser access.

Okay. Then it sounds like you don’t need to set the IP address at all, since the defaults should be correct for you. If you are running on a cloud server, I would highly recommend setting up SSL, either self-signed or via letsencrypt, so that you aren’t sending login information over the internet unencrypted.

-MinRK

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages