ipython / ipython/ipyparallel

"Controller appears to be listening on localhost, but not on this machine" warning on debian/ubuntu

オープン
#316 コメント 4 件 リアクション 2 件 担当者 0 名 GitHub で見る
主要言語
Jupyter Notebook
スター
2.6k
フォーク
1k
PR マージ指標
30日以内にマージされた PR はありません

説明

Yeah, it's just a warning, low priority. But also an easy fix, maybe? The reason is because the ip_for_host call returns 127.0.1.1 instead of 127.0.0.1

Quoting from the debian reference manual:

> For example, "/etc/hosts" looks like the following.
>
> 127.0.0.1 localhost
> 127.0.1.1
>
> The following lines are desirable for IPv6 capable hosts
>
> ::1 ip6-localhost ip6-loopback
> fe00::0 ip6-localnet
> ff00::0 ip6-mcastprefix
> ff02::1 ip6-allnodes
> ff02::2 ip6-allrouters
> ff02::3 ip6-allhosts
>
> Each line starts with a IP address and it is followed by the associated hostname.
>
> The IP address 127.0.1.1 in the second line of this example may not be found on some other Unix-like systems. The Debian Installer creates this entry for a system without a permanent IP address as a workaround for some software (e.g., GNOME) as documented in the bug #719621.

Not sure if needed but there is ipython info:

```
{'commit_hash': u'b467d487e',
'commit_source': 'installation',
'default_encoding': 'UTF-8',
'ipython_path': '/home/xxxx/miniconda2/lib/python2.7/site-packages/IPython',
'ipython_version': '5.5.0',
'os_name': 'posix',
'platform': 'Linux-4.4.0-112-generic-x86_64-with-debian-stretch-sid',
'sys_executable': '/home/xxxx/miniconda2/bin/python',
'sys_platform': 'linux2',
'sys_version': '2.7.13 |Continuum Analytics, Inc.| (default, Dec 20 2016, 23:09:15) \n[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]'}
```

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start by tracing the ip_for_host call mentioned in the report and reproduce the controller warning on Debian or Ubuntu with a 127.0.1.1 hosts entry. Done means the warning no longer incorrectly reports that the controller is not listening on the machine; the issue does not name a file or test to run.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
distributed-systems, networking
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。