Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker for mac error when following readme #47

Closed
melchoir55 opened this issue Jun 26, 2019 · 1 comment
Closed

docker for mac error when following readme #47

melchoir55 opened this issue Jun 26, 2019 · 1 comment

Comments

@melchoir55
Copy link

I get the following error when following the readme and running the docker image:

[2019-06-26 22:23:52.492]  - 6  WARN [main-SendThread(localhost:2181)] --- ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
	at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141)

Full log:

➜  Kafdrop git:(master) docker run -p 9000:9000 -e ZOOKEEPER_CONNECT=localhost:2181,localhost:2181 kafdrop
[2019-06-26 22:23:43.305]  - 6  INFO [main] --- KafDrop: Starting KafDrop on 8a20e8425578 with PID 6 (/kafdrop-2.0.6/kafdrop-2.0.6.jar started by root in /)
[2019-06-26 22:23:43.311]  - 6  INFO [main] --- KafDrop: No active profile set, falling back to default profiles: default
[2019-06-26 22:23:43.426]  - 6  INFO [main] --- AnnotationConfigEmbeddedWebApplicationContext: Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@574caa3f: startup date [Wed Jun 26 22:23:43 UTC 2019]; root of context hierarchy
[2019-06-26 22:23:47.170]  - 6  INFO [main] --- TomcatEmbeddedServletContainer: Tomcat initialized with port(s): 9000 (http)
[2019-06-26 22:23:47.204]  - 6  INFO [main] --- StandardService: Starting service Tomcat
[2019-06-26 22:23:47.206]  - 6  INFO [main] --- StandardEngine: Starting Servlet Engine: Apache Tomcat/8.0.36
[2019-06-26 22:23:47.397]  - 6  INFO [localhost-startStop-1] --- [/]: Initializing Spring embedded WebApplicationContext
[2019-06-26 22:23:47.398]  - 6  INFO [localhost-startStop-1] --- ContextLoader: Root WebApplicationContext: initialization completed in 3977 ms
[2019-06-26 22:23:48.089]  - 6  INFO [localhost-startStop-1] --- ServletRegistrationBean: Mapping servlet: 'dispatcherServlet' to [/]
[2019-06-26 22:23:48.100]  - 6  INFO [localhost-startStop-1] --- FilterRegistrationBean: Mapping filter: 'characterEncodingFilter' to: [/*]
[2019-06-26 22:23:48.100]  - 6  INFO [localhost-startStop-1] --- FilterRegistrationBean: Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
[2019-06-26 22:23:48.101]  - 6  INFO [localhost-startStop-1] --- FilterRegistrationBean: Mapping filter: 'httpPutFormContentFilter' to: [/*]
[2019-06-26 22:23:48.101]  - 6  INFO [localhost-startStop-1] --- FilterRegistrationBean: Mapping filter: 'requestContextFilter' to: [/*]
[2019-06-26 22:23:48.101]  - 6  INFO [localhost-startStop-1] --- FilterRegistrationBean: Mapping filter: 'webRequestLoggingFilter' to: [/*]
[2019-06-26 22:23:48.101]  - 6  INFO [localhost-startStop-1] --- FilterRegistrationBean: Mapping filter: 'corsFilter' to: [/*]
[2019-06-26 22:23:48.102]  - 6  INFO [localhost-startStop-1] --- FilterRegistrationBean: Mapping filter: 'applicationContextIdFilter' to: [/*]
[2019-06-26 22:23:48.466]  - 6  WARN [main] --- CuratorZookeeperClient: session timeout [5000] is less than connection timeout [15000]
[2019-06-26 22:23:48.547]  - 6  INFO [main] --- CuratorFrameworkImpl: Starting
[2019-06-26 22:23:48.570]  - 6  INFO [main] --- ZooKeeper: Client environment:zookeeper.version=3.4.8--1, built on 02/06/2016 03:18 GMT
[2019-06-26 22:23:48.571]  - 6  INFO [main] --- ZooKeeper: Client environment:host.name=8a20e8425578
[2019-06-26 22:23:48.571]  - 6  INFO [main] --- ZooKeeper: Client environment:java.version=1.8.0_111
[2019-06-26 22:23:48.571]  - 6  INFO [main] --- ZooKeeper: Client environment:java.vendor=Oracle Corporation
[2019-06-26 22:23:48.571]  - 6  INFO [main] --- ZooKeeper: Client environment:java.home=/usr/lib/jvm/java-8-openjdk-amd64/jre
[2019-06-26 22:23:48.571]  - 6  INFO [main] --- ZooKeeper: Client environment:java.class.path=/kafdrop-2.0.6/kafdrop-2.0.6.jar
[2019-06-26 22:23:48.571]  - 6  INFO [main] --- ZooKeeper: Client environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
[2019-06-26 22:23:48.571]  - 6  INFO [main] --- ZooKeeper: Client environment:java.io.tmpdir=/tmp
[2019-06-26 22:23:48.572]  - 6  INFO [main] --- ZooKeeper: Client environment:java.compiler=<NA>
[2019-06-26 22:23:48.572]  - 6  INFO [main] --- ZooKeeper: Client environment:os.name=Linux
[2019-06-26 22:23:48.572]  - 6  INFO [main] --- ZooKeeper: Client environment:os.arch=amd64
[2019-06-26 22:23:48.572]  - 6  INFO [main] --- ZooKeeper: Client environment:os.version=4.9.125-linuxkit
[2019-06-26 22:23:48.573]  - 6  INFO [main] --- ZooKeeper: Client environment:user.name=root
[2019-06-26 22:23:48.573]  - 6  INFO [main] --- ZooKeeper: Client environment:user.home=/root
[2019-06-26 22:23:48.573]  - 6  INFO [main] --- ZooKeeper: Client environment:user.dir=/
[2019-06-26 22:23:48.575]  - 6  INFO [main] --- ZooKeeper: Initiating client connection, connectString=localhost:2181,localhost:2181 sessionTimeout=5000 watcher=org.apache.curator.ConnectionState@175c2241
[2019-06-26 22:23:48.628]  - 6  INFO [main-SendThread(localhost:2181)] --- ClientCnxn: Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
[2019-06-26 22:23:48.868]  - 6  WARN [main-SendThread(localhost:2181)] --- ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
	at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141)
@melchoir55
Copy link
Author

solved by using the following run command instead of what is in readme:

docker run -p 9000:9000 -e ZOOKEEPER_CONNECT=docker.for.mac.localhost:2181 kafdrop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant