Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to start proxy #69

Closed
mattwg opened this issue Oct 19, 2014 · 6 comments
Closed

Failed to start proxy #69

mattwg opened this issue Oct 19, 2014 · 6 comments

Comments

@mattwg
Copy link

mattwg commented Oct 19, 2014

sudo jupyterhub give me:

[I 13:37:56.187 JupyterHubApp] Not using whitelist. Any authenticated user will be allowed.
[I 13:37:56.199 JupyterHubApp] Starting proxy: [u'configurable-http-proxy', '--ip', u'', '--port', '8000', '--api-ip', u'localhost', '--api-port', '8001', '--default-target', 'http://localhost:8081']
[C 13:37:56.206 JupyterHubApp] Failed to start proxy
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/jupyterhub/app.py", line 704, in start
IOLoop().run_sync(self.start_proxy)
File "/usr/local/lib/python2.7/dist-packages/tornado/ioloop.py", line 418, in run_sync
return future_cell[0].result()
File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line 109, in result
raise_exc_info(self._exc_info)
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 175, in wrapper
yielded = next(result)
File "/usr/local/lib/python2.7/dist-packages/jupyterhub/app.py", line 524, in start_proxy
self.proxy_process = Popen(cmd, env=env)
File "/usr/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

Any ideas? What info can I share to help narrow this down?

Thanks,
Matt

@minrk
Copy link
Member

minrk commented Oct 19, 2014

Looks like you don't have configurable-http-proxy How did you install it? What do you get from which -a configurable-http-proxy?

@mattwg
Copy link
Author

mattwg commented Oct 20, 2014

Got the server to launch now - I was missing configurable-http-proxy there was an error at top of npm output that I missed.

Now I get to login screen and get an error:

Traceback (most recent call last):
File "/usr/local/bin/jupyterhub-singleuser", line 3, in
from jupyterhub.singleuserapp import main
File "/usr/local/lib/python2.7/dist-packages/jupyterhub/singleuserapp.py", line 16, in
from IPython.html.notebookapp import NotebookApp
File "/usr/local/lib/python2.7/dist-packages/IPython/html/notebookapp.py", line 40, in
check_for_zmq('2.1.11', 'IPython.html')
File "/usr/local/lib/python2.7/dist-packages/IPython/utils/zmqrelated.py", line 37, in check_for_zmq
raise ImportError("%s requires pyzmq >= %s"%(required_by, minimum_version))
ImportError: IPython.html requires pyzmq >= 2.1.11

@dsblank
Copy link
Contributor

dsblank commented Oct 20, 2014

Did you install ipython with "pip install . -U"? I would have thought that
would have installed all dependencies, including pyzmq, and the lower libs.

In any event, "sudo pip install pyzmq" should install it.

On Mon, Oct 20, 2014 at 2:50 PM, mattwg notifications@github.com wrote:

Got the server to launch now - I was missing configurable-http-proxy there
was an error at top of npm output that I missed.

Now I get to login screen and get an error:

Traceback (most recent call last):
File "/usr/local/bin/jupyterhub-singleuser", line 3, in
from jupyterhub.singleuserapp import main
File "/usr/local/lib/python2.7/dist-packages/jupyterhub/singleuserapp.py",
line 16, in
from IPython.html.notebookapp import NotebookApp
File "/usr/local/lib/python2.7/dist-packages/IPython/html/notebookapp.py",
line 40, in
check_for_zmq('2.1.11', 'IPython.html')
File "/usr/local/lib/python2.7/dist-packages/IPython/utils/zmqrelated.py",
line 37, in check_for_zmq
raise ImportError("%s requires pyzmq >= %s"%(required_by, minimum_version))
ImportError: IPython.html requires pyzmq >= 2.1.11


Reply to this email directly or view it on GitHub
#69 (comment).

@mattwg
Copy link
Author

mattwg commented Oct 20, 2014

Let me start with a fresh instance - and run from top taking notes! I did not install with pip install . -U. I presume you mean when I install jupyterhub? Or do I have to also install ipython?

@dsblank
Copy link
Contributor

dsblank commented Oct 20, 2014

Yes, you need ipython too.

On Mon, Oct 20, 2014 at 3:05 PM, mattwg notifications@github.com wrote:

Let me start with a fresh instance - and run from top taking notes! I did
not install with pip install . -U. I presume you mean when I install
jupyterhub? Or do I have to also install ipython?


Reply to this email directly or view it on GitHub
#69 (comment).

@mattwg
Copy link
Author

mattwg commented Oct 21, 2014

Thanks @dsblank - here is the process I followed to successfully launch jupyterhub on a clean Ubunto 14.04 server:

sudo apt-get install git
sudo apt-get install npm
sudo apt-get install python-pip
sudo apt-get install python-dev
git clone https://github.com/jupyter/configurable-http-proxy.git
cd configurable-http-proxy
sudo npm install -g
sudo npm install -g bower less
sudo apt-get install nodejs-legacy
easy_install ipython[zmq,test]
git clone https://github.com/jupyter/jupyterhub.git
cd jupyterhub
sudo pip install .

I can then start jupyterhub and login to the server.
Thanks for your help!
Matt

@mattwg mattwg closed this as completed Oct 21, 2014
consideRatio pushed a commit to consideRatio/jupyterhub that referenced this issue Feb 19, 2018
Edit cost document and reflow text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants