Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Logger log1-Slf4jLogger did not respond within Timeout(5000 milliseconds) to InitializeLogger(bus)

Tags:

I am running an Akka application under Akka Kernel and the program works fine in other systems.

akka {
    loggers = ["akka.event.slf4j.Slf4jLogger"]
    loglevel = INFO
}

Which is the correct slf4jLogger configuration. However when I run my application it gives the following stack trace and fails to start.

[WARN] [01/12/2015 15:35:01.953] [main] [EventStream(akka://ARCWorker)] Logger log1-Slf4jLogger did not respond within Timeout(5000 milliseconds) to InitializeLogger(bus) error while starting up loggers akka.ConfigurationException: Logger specified in config can't be loaded [akka.event.slf4j.Slf4jLogger] due to [akka.event.Logging$LoggerInitializationException: Logger log1-Slf4jLogger did not respond with LoggerInitialized, sent instead [TIMEOUT]] at akka.event.LoggingBus$$anonfun$4$$anonfun$apply$1.applyOrElse(Logging.scala:116)

There is more to the stack trace which I can paste on demand.

Has anyone seen this error and how to get rid of this?

Thanks Manas

like image 574
Manas Avatar asked Jan 12 '15 20:01

Manas


1 Answers

You have to increase the timeout timer in your application.conf

akka.logger-startup-timeout = 30s

this solved the problem for me.

like image 88
Mohammad Qandeel Avatar answered Sep 24 '22 16:09

Mohammad Qandeel