-
Notifications
You must be signed in to change notification settings - Fork 128
Kafka: Consumer interrupted with WakeupException after timeout. #4
Comments
Hi @lmlynik that warn appears when Kafka server can't be reached. There's two scenarios there: Kafka takes time to start (the message you posted appears few times and then disappears) or some issue prevents Kafka from starting at all (the message you pasted continues appearing until an error is displayed in the logs). The former can be addressed with a more powerful machine but, while it's inconvenient, it is not really an issue. The later is something we would like to investigate further. In the meantime we've posted a workaround and added a trace when the embedded Kafka fails to start: All the info you can provide wrt your platform will be helpful when trying to get this issue solved or minimised. |
@lmlynik Lagom's development environment runs its own Kafka + ZooKeeper services by default, you don't need to run it separately in Docker or otherwise. The internal ones are probably hitting port conflicts on startup so they aren't being used on your machine. Could you let us know if you still have problems if you stop your Docker container(s)? |
I have this problem without Docker. All I did was clone this repo (a few minute ago), did a
Looks like the Kafka server crashes almost immediately. |
I did a clean, compile then runAll, and everything worked fine, even after stopping and doing a second runAll. Still probably worth nothing if this is something that tends to happen to people the first time out. |
If anyone else runs into this problem, it would be helpful if you can provide the Kafka log. You can find it at |
I have the same problem, running online-auction-java. Here is the link to gist: https://gist.github.com/marykomar/b88c1f01c4a2646be7f711b65f1414c7 |
Thanks @marykomar. @neverfox, @marykomar, @lmlynik the Kafka server used in Development mode is actually a separate process started from From @marykomar's gist:
it looks like Zookeeper didn't restart cleanly. We'll need to see why and try to avoid it. Thanks for all the info. |
I've run into the same problem while using some Activator template - now all my Lagom projects fail to launch (including online-auction-scala). I've tried sbt clean, restarting my machine and creating new project, nothing helped. I've posted more info here: http://stackoverflow.com/questions/42675442/lagoms-embedded-kafka-fails-to-start-after-killing-lagom-process-once. You can see Kafka logs from two launches here: https://gist.github.com/szymonbaranczyk/a93273537b42aafa45bf67446dd41adb Is it possible that some corrupted Embedded Kafka's data is stored globally on my pc and causes this? |
Is there an easy way to clean just this folder with sbt? This happens to me every time I restart |
Any update on this issue? It seems if the target Kafka folder gets deleted, it will work fine but it doesn't happen automatically. |
I'm trying to run the example locally but I'm receiving lots of warns
This usually indicates kafka client to server mismatch, but can't find the exact version of kafka used here.
I'm using 0.10.1.0-1 from https://hub.docker.com/r/wurstmeister/kafka/tags/ but can switch quickly to different version, but can't pinpoint the version used by this example.
Thank you for your help
The text was updated successfully, but these errors were encountered: