You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by "Benjamin Mahler (JIRA)" <ji...@apache.org> on 2012/09/28 01:23:07 UTC
[jira] [Commented] (MESOS-198) WebUI fails when the master is set
to any ip other than localhost
[ https://issues.apache.org/jira/browse/MESOS-198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13465212#comment-13465212 ]
Benjamin Mahler commented on MESOS-198:
---------------------------------------
The old (python bottle) webui is being deprecated and eventually removed in favor of the new webui (that runs on port 5050). So this will become a non-issue.
> WebUI fails when the master is set to any ip other than localhost
> -----------------------------------------------------------------
>
> Key: MESOS-198
> URL: https://issues.apache.org/jira/browse/MESOS-198
> Project: Mesos
> Issue Type: Bug
> Components: webui
> Affects Versions: 0.9.0
> Environment: Ubuntu 12.04, Python 2.7.3
> Reporter: James Zhao
>
> When bin/mesos-master.sh is run, everything works fine
> When bin/mesos-master.sh --ip=[ip] is run, WebUI fails with IOError('socket error', error(111, 'Connection refused'))
> Traceback (most recent call last):
> File "/home/jzhao/mesos/src/webui/bottle-0.8.3/bottle.py", line 499, in handle
> return handler(**args)
> File "/home/jzhao/mesos/src/webui/master/webui.py", line 51, in index
> return template("index", master_port = master_port, log_dir = log_dir)
> File "/home/jzhao/mesos/src/webui/bottle-0.8.3/bottle.py", line 1796, in template
> return TEMPLATES[tpl].render(**kwargs)
> File "/home/jzhao/mesos/src/webui/bottle-0.8.3/bottle.py", line 1775, in render
> self.execute(stdout, **args)
> File "/home/jzhao/mesos/src/webui/bottle-0.8.3/bottle.py", line 1763, in execute
> eval(self.co, env)
> File "/home/jzhao/mesos/src/webui/master/index.tpl", line 10, in <module>
> % data = urllib.urlopen(url).read()
> File "/usr/lib/python2.7/urllib.py", line 86, in urlopen
> return opener.open(url)
> File "/usr/lib/python2.7/urllib.py", line 207, in open
> return getattr(self, name)(url)
> File "/usr/lib/python2.7/urllib.py", line 344, in open_http
> h.endheaders(data)
> File "/usr/lib/python2.7/httplib.py", line 954, in endheaders
> self._send_output(message_body)
> IOError: [Errno socket error] [Errno 111] Connection refused
> With further testing, --ip=127.0.0.1 and --ip=0.0.0.0 both work fine, but --ip=127.0.1.1 and --ip=0.0.0.1 result in failure.
> Someone else seems to have had this issue too:
> http://mail-archives.apache.org/mod_mbox/incubator-mesos-dev/201204.mbox/%3CCAN29XDAticKq3DmU3o+UGMCWsMLViowu2OGA+MeEn4NdiJzqsA@mail.gmail.com%3E
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira