axiqia commented on issue #4303: Unable to connect to controller0 while running openwhisk.yml (local deployment), Connection refused! URL: https://github.com/apache/incubator-openwhisk/issues/4303#issuecomment-498696014 Thanks for your insight. @dgrove-oss. There are some problems with kafka and zookeeper. **kafka logs** ``` [2019-06-04 13:15:38,788] INFO Client environment:user.dir=/ (org.apache.zookeeper.ZooKeeper) [2019-06-04 13:15:38,789] INFO Initiating client connection, connectString=172.17.0.1:2181 sessionTimeout=6000 watcher=org.I0Itec.zkclient.ZkClient@6ac13091 (org.apache.zookeeper.ZooKeeper) [2019-06-04 13:15:38,799] INFO Waiting for keeper state SyncConnected (org.I0Itec.zkclient.ZkClient) [2019-06-04 13:15:38,802] INFO Opening socket connection to server 172.17.0.1/172.17.0.1:2181. Will not attempt to authenticate using SASL (unknown error) (org.apache.zookeeper.ClientCnxn) [2019-06-04 13:15:38,809] INFO Socket connection established to 172.17.0.1/172.17.0.1:2181, initiating session (org.apache.zookeeper.ClientCnxn) [2019-06-04 13:15:38,863] INFO Session establishment complete on server 172.17.0.1/172.17.0.1:2181, sessionid = 0x1008af844210000, negotiated timeout = 6000 (org.apache.zookeeper.ClientCnxn) [2019-06-04 13:15:38,865] INFO zookeeper state changed (SyncConnected) (org.I0Itec.zkclient.ZkClient) [2019-06-04 13:15:39,102] WARN Session 0x1008af844210000 for server 172.17.0.1/172.17.0.1:2181, unexpected error, closing socket connection and attempting reconnect (org.apache.zookeeper.ClientCnxn) java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcherImpl.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) at sun.nio.ch.IOUtil.read(IOUtil.java:192) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380) at org.apache.zookeeper.ClientCnxnSocketNIO.doIO(ClientCnxnSocketNIO.java:68) at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:366) at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141) [2019-06-04 13:15:39,207] INFO zookeeper state changed (Disconnected) (org.I0Itec.zkclient.ZkClient) [2019-06-04 13:15:39,211] INFO Waiting for keeper state SyncConnected (org.I0Itec.zkclient.ZkClient) ``` **zookeeper logs** ``` 2019-06-04 13:15:02,976 [myid:] - INFO [main:QuorumPeerConfig@136] - Reading configuration from: /conf/zoo.cfg 2019-06-04 13:15:02,995 [myid:] - INFO [main:QuorumPeer$QuorumServer@185] - Resolved hostname: 0.0.0.0 to address: /0.0.0.0 2019-06-04 13:15:02,995 [myid:] - ERROR [main:QuorumPeerConfig@347] - Invalid configuration, only one server specified (ignoring) 2019-06-04 13:15:02,998 [myid:] - INFO [main:DatadirCleanupManager@78] - autopurge.snapRetainCount set to 3 2019-06-04 13:15:02,998 [myid:] - INFO [main:DatadirCleanupManager@79] - autopurge.purgeInterval set to 0 2019-06-04 13:15:02,998 [myid:] - INFO [main:DatadirCleanupManager@101] - Purge task is not scheduled. 2019-06-04 13:15:02,998 [myid:] - WARN [main:QuorumPeerMain@116] - Either no config or no quorum defined in config, running in standalone mode 2019-06-04 13:15:03,013 [myid:] - INFO [main:QuorumPeerConfig@136] - Reading configuration from: /conf/zoo.cfg 2019-06-04 13:15:03,013 [myid:] - INFO [main:QuorumPeer$QuorumServer@185] - Resolved hostname: 0.0.0.0 to address: /0.0.0.0 2019-06-04 13:15:03,014 [myid:] - ERROR [main:QuorumPeerConfig@347] - Invalid configuration, only one server specified (ignoring) 2019-06-04 13:15:03,014 [myid:] - INFO [main:ZooKeeperServerMain@98] - Starting server 2019-06-04 13:15:03,022 [myid:] - INFO [main:Environment@100] - Server environment:zookeeper.version=3.4.14-4c25d480e66aadd371de8bd2fd8da255ac140bcf, built on 03/06/2019 16:18 GMT 2019-06-04 13:15:03,022 [myid:] - INFO [main:Environment@100] - Server environment:host.name=71affe7844d3 2019-06-04 13:15:03,022 [myid:] - INFO [main:Environment@100] - Server environment:java.version=1.8.0_212 2019-06-04 13:15:03,022 [myid:] - INFO [main:Environment@100] - Server environment:java.vendor=Oracle Corporation 2019-06-04 13:15:03,022 [myid:] - INFO [main:Environment@100] - Server environment:java.home=/usr/local/openjdk-8 2019-06-04 13:15:03,024 [myid:] - INFO [main:Environment@100] - Server environment:java.class.path=/zookeeper-3.4.14/bin/../zookeeper-server/target/classes:/zookeeper-3.4.14/bin/../build/classes:/zookeeper-3.4.14/bin/../zookeeper-server/target/lib/*.jar:/zookeeper-3.4.14/bin/../build/lib/*.jar:/zookeeper-3.4.14/bin/../lib/slf4j-log4j12-1.7.25.jar:/zookeeper-3.4.14/bin/../lib/slf4j-api-1.7.25.jar:/zookeeper-3.4.14/bin/../lib/netty-3.10.6.Final.jar:/zookeeper-3.4.14/bin/../lib/log4j-1.2.17.jar:/zookeeper-3.4.14/bin/../lib/jline-0.9.94.jar:/zookeeper-3.4.14/bin/../lib/audience-annotations-0.5.0.jar:/zookeeper-3.4.14/bin/../zookeeper-3.4.14.jar:/zookeeper-3.4.14/bin/../zookeeper-server/src/main/resources/lib/*.jar:/conf: 2019-06-04 13:15:03,024 [myid:] - INFO [main:Environment@100] - Server environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib 2019-06-04 13:15:03,025 [myid:] - INFO [main:Environment@100] - Server environment:java.io.tmpdir=/tmp 2019-06-04 13:15:03,025 [myid:] - INFO [main:Environment@100] - Server environment:java.compiler=<NA> 2019-06-04 13:15:03,025 [myid:] - INFO [main:Environment@100] - Server environment:os.name=Linux 2019-06-04 13:15:03,025 [myid:] - INFO [main:Environment@100] - Server environment:os.arch=amd64 2019-06-04 13:15:03,025 [myid:] - INFO [main:Environment@100] - Server environment:os.version=4.15.0-47-generic 2019-06-04 13:15:03,025 [myid:] - INFO [main:Environment@100] - Server environment:user.name=zookeeper 2019-06-04 13:15:03,025 [myid:] - INFO [main:Environment@100] - Server environment:user.home=/home/zookeeper 2019-06-04 13:15:03,026 [myid:] - INFO [main:Environment@100] - Server environment:user.dir=/zookeeper-3.4.14 2019-06-04 13:15:03,037 [myid:] - INFO [main:ZooKeeperServer@836] - tickTime set to 2000 2019-06-04 13:15:03,037 [myid:] - INFO [main:ZooKeeperServer@845] - minSessionTimeout set to -1 2019-06-04 13:15:03,037 [myid:] - INFO [main:ZooKeeperServer@854] - maxSessionTimeout set to -1 2019-06-04 13:15:03,045 [myid:] - INFO [main:ServerCnxnFactory@117] - Using org.apache.zookeeper.server.NIOServerCnxnFactory as server connection factory 2019-06-04 13:15:03,048 [myid:] - INFO [main:NIOServerCnxnFactory@89] - binding to port 0.0.0.0/0.0.0.0:2181 2019-06-04 13:15:09,398 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@222] - Accepted socket connection from /172.17.0.1:42872 2019-06-04 13:15:09,406 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ServerCnxn@324] - The list of known four letter word commands is : [{1936881266=srvr, 1937006964=stat, 2003003491=wchc, 1685417328=dump, 1668445044=crst, 1936880500=srst, 1701738089=envi, 1668247142=conf, 2003003507=wchs, 2003003504=wchp, 1668247155=cons, 1835955314=mntr, 1769173615=isro, 1920298859=ruok, 1735683435=gtmk, 1937010027=stmk}] 2019-06-04 13:15:09,407 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ServerCnxn@325] - The list of enabled four letter word commands is : [[wchs, stat, stmk, conf, ruok, mntr, srvr, envi, srst, isro, dump, gtmk, crst, cons]] 2019-06-04 13:15:09,407 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@908] - Processing ruok command from /172.17.0.1:42872 2019-06-04 13:15:09,410 [myid:] - INFO [Thread-1:NIOServerCnxn@1056] - Closed socket connection for client /172.17.0.1:42872 (no session established for client) 2019-06-04 13:15:38,390 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@222] - Accepted socket connection from /172.17.0.1:43938 2019-06-04 13:15:38,391 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@908] - Processing dump command from /172.17.0.1:43938 2019-06-04 13:15:38,393 [myid:] - INFO [Thread-2:NIOServerCnxn@1056] - Closed socket connection for client /172.17.0.1:43938 (no session established for client) 2019-06-04 13:15:38,809 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@222] - Accepted socket connection from /172.17.0.1:34426 2019-06-04 13:15:38,816 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@949] - Client attempting to establish new session at /172.17.0.1:34426 2019-06-04 13:15:38,820 [myid:] - INFO [SyncThread:0:FileTxnLog@216] - Creating new log file: log.1 2019-06-04 13:15:38,860 [myid:] - INFO [SyncThread:0:ZooKeeperServer@694] - Established session 0x1008af844210000 with negotiated timeout 6000 for client /172.17.0.1:34426 2019-06-04 13:15:38,909 [myid:] - WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@376] - Unable to read additional data from client sessionid 0x1008af844210000, likely client has closed socket 2019-06-04 13:15:38,910 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1056] - Closed socket connection for client /172.17.0.1:34426 which had sessionid 0x1008af844210000 ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
