在Azure深度学习虚拟机上无法访问Jupyter Notebook [英] Can't reach Jupyter Notebooks on Azure Deep Learning Virtual Machine

查看:366
本文介绍了在Azure深度学习虚拟机上无法访问Jupyter Notebook的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循了此处.

我通过SSH在Ubuntu VM上. 我尝试访问IP:8000,但Chrome浏览器显示无法访问该网站.如文档中所述,默认情况下,端口8000确实是开放的.

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.

指令没有提及是否必须启动jupyterhub,所以我尝试了此操作并收到了此错误-

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 http://127.0.0.1:8081/hub/
[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

在文档中阅读有关jupyterhub的内容之前,我尝试启动jupyter notebook,这给了我这个错误.

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''

使用jupyter notebook --generate-config生成配置文件并对其进行编辑后,它似乎运行良好,但是尽管打开了所有端口,但我仍然无法通过Chrome访问它.

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.

更新
今天,我安装了X2Go客户端,并找到了桌面上的jupyter笔记本图标,但启动后抛出此错误- 无法运行Jupyter.desktop 无法解析桌面文件:密钥文件包含'/anaconda/pkgs/notebook-5.4.0-py27_0/info/icon.png'行,该行不是键值对,组或注释

UPDATE
Today I installed an X2Go client and found the jupyter notebook icon 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

看起来该文件调用了jupyter notebook,它引发了与以前相同的错误.

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

推荐答案

这是由一个漏洞引起的,此漏洞已在更高版本的深度学习VM中修复.

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

有关更多详细信息,请参见此Github问题.

See this Github issue for more details.

这篇关于在Azure深度学习虚拟机上无法访问Jupyter Notebook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆