James Zhao created MESOS-198:
--------------------------------

             Summary: 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+meen4ndijz...@mail.gmail.com%3E

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to