Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logger Timeout #2404

Closed
codeling opened this issue Dec 3, 2019 · 2 comments
Closed

Logger Timeout #2404

codeling opened this issue Dec 3, 2019 · 2 comments
Labels

Comments

@codeling
Copy link

codeling commented Dec 3, 2019

Impacted version: 4.32.0

Deployment mode: gitbucket.war deployed on Tomcat 9.0.29, running under Windows Server 2008 R2 (Virtual Machine, 1GB RAM), behind apache2 proxy

Problem description:
When starting up Tomcat, most of the time, gitbucket doesn't start, but instead reports this:

03-Dec-2019 13:24:20.347 SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Error configuring application listener of class [gitbucket.core.servlet.InitializeListener]
	akka.ConfigurationException: Could not start logger due to [akka.ConfigurationException: Logger specified in config can't be loaded [akka.event.Logging$DefaultLogger] due to [akka.event.Logging$LoggerInitializationException: Logger log1-Logging$DefaultLogger did not respond with LoggerInitialized, sent instead [TIMEOUT]]]
		at akka.event.LoggingBus.startDefaultLoggers(Logging.scala:162)
		at akka.event.LoggingBus.startDefaultLoggers$(Logging.scala:105)
		at akka.event.EventStream.startDefaultLoggers(EventStream.scala:25)
		at akka.actor.LocalActorRefProvider.init(ActorRefProvider.scala:678)
		at akka.actor.ActorSystemImpl.liftedTree2$1(ActorSystem.scala:912)
		at akka.actor.ActorSystemImpl._start$lzycompute(ActorSystem.scala:908)
		at akka.actor.ActorSystemImpl._start(ActorSystem.scala:908)
		at akka.actor.ActorSystemImpl.start(ActorSystem.scala:930)
		at akka.actor.ActorSystem$.apply(ActorSystem.scala:258)
		at akka.actor.ActorSystem$.apply(ActorSystem.scala:302)
		at akka.actor.ActorSystem$.apply(ActorSystem.scala:276)
		at gitbucket.core.servlet.InitializeListener.<init>(InitializeListener.scala:41)

The main problem is probably the feeble system performance, but I unfortunately can't change this; the problem happens much more since the upgrade to Tomcat 9.0.29, but occasionally this happened with older versions too.
I have found other reports of such behavior, e.g. https://stackoverflow.com/questions/16176654/akka-timeouts-starting-event-handlers or yahoo/CMAK#428, and they mention setting akka.logger-startup-timeout to some higher value in some config file, but I can't figure out where i should put this - is there a config file in gitbucket where I can put this setting?

@takezoe
Copy link
Member

takezoe commented Dec 10, 2019

Currently, Akka configuration is hardcoded here:

private val system = ActorSystem(
"job",
ConfigFactory.parseString("""
|akka {
| daemonic = on
| coordinated-shutdown.run-by-jvm-shutdown-hook = off
| quartz {
| schedules {
| Daily {
| expression = "0 0 0 * * ?"
| }
| }
| }
|}
""".stripMargin)
)

You might have to add configuration here or create src/main/resources/application.conf, and build GitBucket from source code.

@takezoe
Copy link
Member

takezoe commented Apr 17, 2022

Closing old questions.

@takezoe takezoe closed this as completed Apr 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants