Query Handlers Getting Lost After a While


Not sure if that is related to Axon Server (4.5.8) or Framework.

We’ve got a service that after a while loses the query handlers. Initially they are there, but once the service runs for several hours the query handlers “disappear”.

When I restart the service, everything runs normally again.

Any ideas?


1 Like

Hi Markus,

To dig into the problem at hand, the logs of your Axon Server instance might be helpful.

If you are not comfortable sharing them publicly, you can search for a set of specific log lines manually. In any case, you should enable debug logging for this class: io.axoniq.axonserver.grpc.QueryService.

You can either do this in your configuration file (requires restart) with logging.level.io.axoniq.axonserver.grpc.QueryService=DEBUG or without a restart using the REST API:

POST http://axonserver:port/actuator/loggers/io.axoniq.axonserver.grpc.QueryService

Content-Type: application/json


"configuredLevel": "DEBUG"


After the problem occurred again, check if you can find one of the following log lines:

  • Query Stream closed for client ...
  • Error on connection from subscriber...
  • Unsubscribe Query ... received ...

That way, we can narrow down the possible reasons for the observed behavior.

Kind regards,


The problem seemed to be related to some issue in the Docker network. It’s gone.

Thanks anyway!