[IPython-dev] Error running JupyterHub

Doug Blank doug.blank at gmail.com
Fri Oct 24 08:58:56 EDT 2014


On Fri, Oct 24, 2014 at 8:49 AM, Clare Sloggett <claresloggett at gmail.com>
wrote:

> Hi all,
>
> I'm getting an error running JupyterHub. Right now all I'm doing is
> attempting to run it as root with no command-line options.
>
> A couple of weeks ago I was trying to set it up and while I was running
> into issues, I wasn't getting this particular problem - I was able to at
> least run the command. I'm not sure if something has changed in Jupyter.
> Entirely possible that I made a mistake in my setup this time!
>
> Any advice would be appreciated in interpreting the below errors.
>
> Thanks,
> Clare
>
> Below is the output of `jupyterhub --debug`:
>
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/logging/__init__.py", line 846, in emit
>     msg = self.format(record)
>   File "/usr/lib/python2.7/logging/__init__.py", line 723, in format
>     return fmt.format(record)
>   File
> "/usr/local/lib/python2.7/dist-packages/IPython/config/application.py",
> line 121, in format
>     return super(LevelFormatter, self).format(record)
>   File "/usr/lib/python2.7/logging/__init__.py", line 467, in format
>     s = self._fmt % record.__dict__
> KeyError: u'color'
> Logged from file application.py, line 247
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/logging/__init__.py", line 846, in emit
>     msg = self.format(record)
>   File "/usr/lib/python2.7/logging/__init__.py", line 723, in format
>     return fmt.format(record)
>   File
> "/usr/local/lib/python2.7/dist-packages/IPython/config/application.py",
> line 121, in format
>     return super(LevelFormatter, self).format(record)
>   File "/usr/lib/python2.7/logging/__init__.py", line 467, in format
>     s = self._fmt % record.__dict__
> KeyError: u'color'
> Logged from file application.py, line 248
> [D 23:39:03.030 JupyterHubApp] Connecting to db:
> sqlite:///jupyterhub.sqlite
> [I 23:39:03.062 JupyterHubApp] Not using whitelist. Any authenticated user
> will be allowed.
> [D 23:39:03.064 JupyterHubApp] Loaded users:
>       ubuntu admin
> [I 23:39:03.072 JupyterHubApp] Starting proxy:
> [u'configurable-http-proxy', '--ip', u'', '--port', '8000', '--api-ip',
> u'localhost', '--api-port', '8001', '--default-target', '
> http://localhost:8081']
> 23:39:03.178 - info: [ConfigProxy] Proxying http://*:8000 to
> http://localhost:8081
> 23:39:03.180 - info: [ConfigProxy] Proxy API at
> http://localhost:8001/api/routes
>
> events.js:72
>         throw er; // Unhandled 'error' event
>

I think that I have had that issue when configurable-http-proxy isn't
running, or maybe it is already running and you are trying to start it
again.

Some things that I do when updating jupyterhub:

1. Updating ipython: make sure you run "python setup.py submodule" in
ipython-master to get any new dependencies. Then "git pull" and "sudo pip
install . -U"

2. Updating jupyterhub: do the steps in the jupyterhub/README.md again...
some dependencies may have changed. Then "sudo pip install . -U"

3. Make sure all jupyterhub-singleuser processes and
configurable-http-proxy processes are killed. This is still hard to do
sometimes.

4. Are you running with a sudo environment? There is an additional line in
the sudoers file that is now needed to kill processes.

I think that is most of what I need to do.

-Doug


>               ^
> Error: listen EADDRINUSE
>     at errnoException (net.js:904:11)
>     at Server._listen2 (net.js:1042:14)
>     at listen (net.js:1064:10)
>     at net.js:1146:9
>     at dns.js:72:18
>     at process._tickCallback (node.js:419:13)
>     at Function.Module.runMain (module.js:499:11)
>     at startup (node.js:119:16)
>     at node.js:906:3
> [C 23:39:04.087 JupyterHubApp] Failed to start proxy
>     Traceback (most recent call last):
>       File "/usr/local/lib/python2.7/dist-packages/jupyterhub/app.py",
> line 727, in start
>         IOLoop().run_sync(self.start_proxy)
>       File "/usr/local/lib/python2.7/dist-packages/tornado/ioloop.py",
> line 389, in run_sync
>         return future_cell[0].result()
>       File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py",
> line 129, in result
>         raise_exc_info(self.__exc_info)
>       File
> "/usr/local/lib/python2.7/dist-packages/tornado/stack_context.py", line
> 302, in wrapped
>         ret = fn(*args, **kwargs)
>       File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line
> 574, in inner
>         self.set_result(key, result)
>       File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line
> 500, in set_result
>         self.run()
>       File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line
> 529, in run
>         yielded = self.gen.throw(*exc_info)
>       File "/usr/local/lib/python2.7/dist-packages/jupyterhub/app.py",
> line 556, in start_proxy
>         _check()
>       File "/usr/local/lib/python2.7/dist-packages/jupyterhub/app.py",
> line 552, in _check
>         raise e
>     RuntimeError: Proxy failed to start with exit code 8
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20141024/476ebc20/attachment.html>


More information about the IPython-dev mailing list