Are you running the master with the --ip option? If so, this looks like a legitimate bug. :(
On Wed, Apr 18, 2012 at 8:31 PM, 王晓磊 <[email protected]> wrote: > Hi Ben, > > Thanks for your help, I add LIBS=' -lsnappy' append configure parameters > ./configure --enable-webui LIBS=' -lsnappy' > and finally it works, make sucessed. > > But I still can not make it work properly after run mesos-master, the webui > throw an unhandled exception > > > IOError('socket error', error(111, 'Connection refused')) > > Traceback: > > > Traceback (most recent call last): > File > "/home/wanglei/codes/c/mesos/build/../src/webui/bottle-0.8.3/bottle.py", > line 499, in handle > return handler(**args) > File "/home/wanglei/codes/c/mesos/build/../src/webui/master/webui.py", > line 51, in index > return template("index", master_port = master_port, log_dir = log_dir) > File > "/home/wanglei/codes/c/mesos/build/../src/webui/bottle-0.8.3/bottle.py", > line 1796, in template > return TEMPLATES[tpl].render(**kwargs) > File > "/home/wanglei/codes/c/mesos/build/../src/webui/bottle-0.8.3/bottle.py", > line 1775, in render > self.execute(stdout, **args) > File > "/home/wanglei/codes/c/mesos/build/../src/webui/bottle-0.8.3/bottle.py", > line 1763, in execute > eval(self.co, env) > File "/home/wanglei/codes/c/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 > > Because of python2.7 ? > > On Thu, Apr 19, 2012 at 7:19 AM, Benjamin Hindman <[email protected] > >wrote: > > > Hi Wang, > > > > The default build of leveldb will include snappy, but unfortunately when > we > > try and build our binaries (e.g.,, mesos-local, mesos-master, etc) we > don't > > add -lsnappy if necessary. You'll either need to disable snappy in the > > leveldb Makefile or you'll need to add -lsnappy for building each of the > > binaries (in src/Makefile.am). > > > > Ben. > > > > On Sun, Apr 15, 2012 at 10:19 PM, 王晓磊 <[email protected]> wrote: > > > > > Make output: > > > libtool: link: g++ -g2 -O2 -o .libs/mesos-local > local/mesos_local-main.o > > > ./.libs/libmesos.so > > > -L/etc/java-config-2/current-system-vm/jre/lib/i386/server -lz > -lpthread > > > -lrt -pthread > > > ./.libs/libmesos.so: undefined reference to `snappy::RawUncompress(char > > > const*, unsigned int, char*)' > > > ./.libs/libmesos.so: undefined reference to `snappy::RawCompress(char > > > const*, unsigned int, char*, unsigned int*)' > > > ./.libs/libmesos.so: undefined reference to > > > `snappy::GetUncompressedLength(char const*, unsigned int, unsigned > int*)' > > > ./.libs/libmesos.so: undefined reference to > > > `snappy::MaxCompressedLength(unsigned int)' > > > collect2: ld returned 1 exit status > > > make[2]: *** [mesos-local] Error 1 > > > make[2]: Leaving directory `/home/wanglei/codes/c/mesos/src' > > > make[1]: *** [all] Error 2 > > > make[1]: Leaving directory `/home/wanglei/codes/c/mesos/src' > > > make: *** [all-recursive] Error 1 > > > > > > I have libsnappy in my computer, so how to fix it? > > > > > > -- > > > Best Wishes > > > > > > > > > Wang Lei > > > > > > > > > -- > Best Wishes > > > Wang Lei >
