Trying to get zipkin running locally for test - web not connecting to query?

397 views
Skip to first unread message

Ryan Gardner

unread,
Dec 5, 2012, 3:35:33 PM12/5/12
to zipki...@googlegroups.com
I'm trying to run zipkin locally. I've built the latest master and run bin/collector bin/query and bin/web - when I go to http://localhost:8080/ I get the following in my web logs:

FAT [20121205-15:32:40.164] ZipkinWeb: A server service ZipkinQuery threw an exception
FAT [20121205-15:32:40.164] ZipkinWeb: com.twitter.finagle.WriteException: java.net.ConnectException: Connection refused
FAT [20121205-15:32:40.164] ZipkinWeb:     at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
FAT [20121205-15:32:40.164] ZipkinWeb:     at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:692)
FAT [20121205-15:32:40.164] ZipkinWeb:     at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.connect(NioClientSocketPipelineSink.java:404)
FAT [20121205-15:32:40.164] ZipkinWeb:     at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.processSelectedKeys(NioClientSocketPipelineSink.java:366)
FAT [20121205-15:32:40.164] ZipkinWeb:     at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.run(NioClientSocketPipelineSink.java:282)
FAT [20121205-15:32:40.164] ZipkinWeb:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
FAT [20121205-15:32:40.164] ZipkinWeb:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
FAT [20121205-15:32:40.164] ZipkinWeb:     at java.lang.Thread.run(Thread.java:722)
FAT [20121205-15:32:40.164] ZipkinWeb: Caused by java.net.ConnectException: Connection refused
FAT [20121205-15:32:40.164] ZipkinWeb:     at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
FAT [20121205-15:32:40.164] ZipkinWeb:     at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:692)
FAT [20121205-15:32:40.164] ZipkinWeb:     at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.connect(NioClientSocketPipelineSink.java:404)
FAT [20121205-15:32:40.164] ZipkinWeb:     at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.processSelectedKeys(NioClientSocketPipelineSink.java:366)
FAT [20121205-15:32:40.164] ZipkinWeb:     at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.run(NioClientSocketPipelineSink.java:282)
FAT [20121205-15:32:40.164] ZipkinWeb:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
FAT [20121205-15:32:40.164] ZipkinWeb:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
FAT [20121205-15:32:40.164] ZipkinWeb:     at java.lang.Thread.run(Thread.java:722)

or on a second request...
INF [20121205-15:35:02.545] twitter: DefaultHttpRequest(chunked: false)
INF [20121205-15:35:02.545] twitter: GET / HTTP/1.1
INF [20121205-15:35:02.545] twitter: Host: localhost:8080
INF [20121205-15:35:02.545] twitter: Connection: keep-alive
INF [20121205-15:35:02.545] twitter: Cache-Control: max-age=0
INF [20121205-15:35:02.545] twitter: User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11
INF [20121205-15:35:02.545] twitter: Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
INF [20121205-15:35:02.545] twitter: Accept-Encoding: gzip,deflate,sdch
INF [20121205-15:35:02.545] twitter: Accept-Language: en-US,en;q=0.8
INF [20121205-15:35:02.545] twitter: Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
INF [20121205-15:35:02.546] twitter: Promise@1209663210(ivar=Ivar@581884321(state=Waiting(List(),List())), cancelled=Ivar@89254609(state=Waiting(List(<function1>),List())))
FAT [20121205-15:35:02.547] ZipkinWeb: A server service ZipkinQuery threw an exception
FAT [20121205-15:35:02.547] ZipkinWeb: com.twitter.finagle.FailedFastException
FAT [20121205-15:35:02.547] ZipkinWeb:     at com.twitter.finagle.NoStacktrace(Unknown Source)

Franklin Hu

unread,
Dec 5, 2012, 5:43:29 PM12/5/12
to zipki...@googlegroups.com
Do you see any exceptions in the query service logs? I assume you're running Cassandra or Redis as a backing store?
> --
>
>
>

Ryan Gardner

unread,
Dec 6, 2012, 10:49:46 AM12/6/12
to zipki...@googlegroups.com


On Wednesday, December 5, 2012 5:43:29 PM UTC-5, Franklin Hu wrote:
Do you see any exceptions in the query service logs? I assume you're running Cassandra or Redis as a backing store?

In case anyone in the future runs into this... I got it working with a simple config change. 

Looking through the config files, it seems that the way the query and the collector are binding to my local ip address and my hostname but the web config was explicitly hitting "localhost" - the query and collector were binding to one of my actual IP's and not to 127.0.0.1 - so that might have been it. 

I modified the zipkin-web/config/web-dev.scala to point to my IP instead of localhost and restarted it and now it seems to work. 
Reply all
Reply to author
Forward
0 new messages