Can't reach Jupyter Notebooks on Azure Deep Learning Virtual Machine


I followed the instructions <a href="https://docs.microsoft.com/en-us/azure/machine-learning/data-science-virtual-machine/linux-dsvm-intro#jupyter-notebook" rel="nofollow">here</a>.

I am on the Ubuntu VM via SSH. I tried to access IP:8000 but Chrome says the Site can't be reached. Port 8000 is indeed open by default as mentioned in the docs.

Instructions don't mention if I have to start jupyterhub so I tried that and got this error -

username@fastai:~ $ jupyterhub [I 2018-04-02 00:25:41.018 JupyterHub app:871] Writing cookie_secret to /home/username/jupyterhub_cookie_secret [I 2018-04-02 00:25:41.036 alembic.runtime.migration migration:117] Context impl SQLiteImpl. [I 2018-04-02 00:25:41.037 alembic.runtime.migration migration:122] Will assume non-transactional DDL. [I 2018-04-02 00:25:41.067 alembic.runtime.migration migration:327] Running stamp_revision -> 3ec6993fe20c [W 2018-04-02 00:25:41.388 JupyterHub app:955] No admin users, admin interface will be unavailable. [W 2018-04-02 00:25:41.389 JupyterHub app:956] Add any administrative users to `c.Authenticator.admin_users` in config. [I 2018-04-02 00:25:41.389 JupyterHub app:983] Not using whitelist. Any authenticated user will be allowed. [E 2018-04-02 00:25:41.414 JupyterHub app:1525] Failed to bind hub to [E 2018-04-02 00:25:41.414 JupyterHub app:1623] Traceback (most recent call last): File "/anaconda/envs/py35/lib/python3.5/site-packages/jupyterhub/app.py", line 1621, in launch_instance_async yield self.start() File "/anaconda/envs/py35/lib/python3.5/site-packages/jupyterhub/app.py", line 1523, in start self.http_server.listen(self.hub_port, address=self.hub_ip) File "/anaconda/envs/py35/lib/python3.5/site-packages/tornado/tcpserver.py", line 142, in listen sockets = bind_sockets(port, address=address) File "/anaconda/envs/py35/lib/python3.5/site-packages/tornado/netutil.py", line 197, in bind_sockets sock.bind(sockaddr) OSError: [Errno 98] Address already in use

Before I read about jupyterhub in the docs, I tried starting jupyter notebook which gave me this error.

[C 04:00:12.963 NotebookApp] Bad config encountered during initialization: [C 04:00:12.963 NotebookApp] No such notebook dir: ''/dsvm/Notebooks''

It seemed to run fine after generating a config file using jupyter notebook --generate-config and editing it but I still couldn't reach it via Chrome despite opening up all ports.

<strong>UPDATE</strong><br /> Today I installed an X2Go client and found the <a href="https://docs.microsoft.com/en-us/azure/machine-learning/data-science-virtual-machine/dsvm-ubuntu-intro#jupyter-notebook" rel="nofollow">jupyter notebook icon</a> on the desktop but starting that threw this error - Failed to run Jupyter.desktop Failed to parse the desktop file: Key file contains line '/anaconda/pkgs/notebook-5.4.0-py27_0/info/icon.png' which is not a key-value pair, group, or comment

Looks like that file calls jupyter notebook which throws the same error as before.


JupyterHub should be running on port 8000 at startup. Can you double-check its status with <em>systemctl status jupyterhub</em>? And have you double-checked in the portal that port 8000 is open?

If JupyterHub reports that it's running and listening on port 8000, there may be a firewall blocking the connection. Some users have had success with forwarding port 8000 over SSH in this case, then connecting to localhost:8000.


This was caused by a bug which has since been fixed on the later versions of the Deep learning VM.

See <a href="https://github.com/MicrosoftDocs/azure-docs/issues/6811" rel="nofollow">this Github issue</a> for more details.


  • Jquery DataTables - Table width is shorter than dataTable_wrapper width
  • PHP - Could automatically processing every $_POST variable be a security issue?
  • Using google maps api behind firewall
  • Trouble connecting to Docker registry stored on Nexus 3 Preview on Azure VM
  • How to get executing server name or address with Selenium Server 2.20
  • Why tel:* links don't work on ios?
  • Skipping certain files/classes when using asdoc
  • How to get a list of songs, artists, albums on WP7 devices?
  • Julia: Can you set a time limit on eval
  • Implementation of monitors with semaphores
  • checkbox for Drupal CCK
  • Making a panel persist despite click on page opened in browser
  • How to enforce custom MySQL column format
  • Test-Path / System.IO.Directory::Exists not working as expected
  • Handle Authentication and Authorization in jax-rs webservice with cxf
  • What is the JSF behaviour, if you bind the same backing bean property to two input fields in the sam
  • Flink: How to write DataSet to a variable instead of to a file
  • iPhone - UIWebView multiple locks
  • How can I filter REST calls results based on Roles and current user context in Loopback (server side
  • Is there a limit on how long a cfquery with cfqueryparam can get?
  • How to authenticate user name and password against Active Directory Federation Services (ADFS)?
  • Read a file in “chunks” using PHP
  • Zend framework 2 : Add different authentication adapter for two different modules
  • Leaflet z-index
  • Spring security - same page to deliver different content based on user role
  • auth.provider is not set to 'password' when user signs-in with email and password
  • How can I extend PHP DOMElement?
  • Unable to install Git-core+svn by MacPorts
  • VSO Build — Response status code does not indicate success: 404 (Not Found)
  • ilmerge with a PFX file
  • jQuery show() function is not executed in Safari if submit handler returns true
  • Circular dependency while pushing http interceptor
  • InvalidAuthenticityToken between subdomains when logging in with Rails app
  • How to get Windows thread pool to call class member function?
  • Authorize attributes not working in MVC 4
  • Is there any way to bind data to data.frame by some index?
  • Busy indicator not showing up in wpf window [duplicate]
  • UserPrincipal.Current returns apppool on IIS
  • Python/Django TangoWithDjango Models and Databases
  • Net Present Value in Excel for Grouped Recurring CF