celery1124 commented on issue #5032:
URL: https://github.com/apache/openwhisk/issues/5032#issuecomment-812122179


   > I am getting this same error, and it seems to be a problem of kafka not 
being able to keep a stable connection to zookeeper. Using Ubuntu 16.01
   > 
   > Relevant kafka log section:
   > 
   > ```
   > [2021-04-01 17:54:53,847] INFO Initiating client connection, 
connectString=172.17.0.1:2181 sessionTimeout=6000 
watcher=kafka.zookeeper.ZooKeeperClient$ZooKeeperClientWatcher$@7e0b85f9 
(org.apache.zookeeper.ZooKeeper)
   > [2021-04-01 17:54:53,892] INFO [ZooKeeperClient Kafka server] Waiting 
until connected. (kafka.zookeeper.ZooKeeperClient)
   > [2021-04-01 17:54:53,898] 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)
   > [2021-04-01 17:54:59,896] INFO [ZooKeeperClient Kafka server] Closing. 
(kafka.zookeeper.ZooKeeperClient)
   > [2021-04-01 17:54:59,902] WARN Client session timed out, have not heard 
from server in 6012ms for sessionid 0x0 (org.apache.zookeeper.ClientCnxn)
   > [2021-04-01 17:55:00,009] INFO Session: 0x0 closed 
(org.apache.zookeeper.ZooKeeper)
   > [2021-04-01 17:55:00,012] INFO EventThread shut down for session: 0x0 
(org.apache.zookeeper.ClientCnxn)
   > [2021-04-01 17:55:00,014] INFO [ZooKeeperClient Kafka server] Closed. 
(kafka.zookeeper.ZooKeeperClient)
   > [2021-04-01 17:55:00,019] ERROR Fatal error during KafkaServer startup. 
Prepare to shutdown (kafka.server.KafkaServer)
   > kafka.zookeeper.ZooKeeperClientTimeoutException: Timed out waiting for 
connection while in state: CONNECTING
   >    at 
kafka.zookeeper.ZooKeeperClient.$anonfun$waitUntilConnected$3(ZooKeeperClient.scala:258)
   >    at 
scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
   >    at kafka.utils.CoreUtils$.inLock(CoreUtils.scala:253)
   >    at 
kafka.zookeeper.ZooKeeperClient.waitUntilConnected(ZooKeeperClient.scala:254)
   >    at kafka.zookeeper.ZooKeeperClient.<init>(ZooKeeperClient.scala:112)
   >    at kafka.zk.KafkaZkClient$.apply(KafkaZkClient.scala:1826)
   >    at kafka.server.KafkaServer.createZkClient$1(KafkaServer.scala:364)
   >    at kafka.server.KafkaServer.initZkClient(KafkaServer.scala:387)
   >    at kafka.server.KafkaServer.startup(KafkaServer.scala:207)
   >    at 
kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:38)
   >    at kafka.Kafka$.main(Kafka.scala:84)
   >    at kafka.Kafka.main(Kafka.scala)
   > [2021-04-01 17:55:00,022] INFO shutting down (kafka.server.KafkaServer)
   > [2021-04-01 17:55:00,032] INFO shut down completed 
(kafka.server.KafkaServer)
   > [2021-04-01 17:55:00,034] ERROR Exiting Kafka. 
(kafka.server.KafkaServerStartable)
   > [2021-04-01 17:55:00,039] INFO shutting down (kafka.server.KafkaServer)
   > ```
   
   I didn't dig much into this case since I found no issues on Ubuntu 18.04 
(with the same scripts). Maybe you can try with a more up to date OS.
   
   Mian


-- 
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]


Reply via email to