Expand my Community achievements bar.

SOLVED

AEM on jBoss doesnot start as MySQL is not yet running after restart

Avatar

Level 2

Hello
We have simple installation of AEM on jBoss on windows with MySQL. After restart the jBoss server tries to start, but there is significant delay of MySgl service and the jBoss fails to start. Is there a way to force the Jboss service wait for MySQL?

Many thanks for some help

Best regards Jiri

 

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

@JiriLio This should not happen ideally unless there is something at infra blocking mysql service to start. You can manually start MySQL first and then start the JBoss that is certainly possible and ok. 

 

You can also create a custom bat file(for windows) which should do 3 things.

  1. execute MySQL start command
  2. wait for few mins
  3. call JBoss start command

 

https://www.wikihow.com/Delay-a-Batch-File

https://www.robvanderwoude.com/wait.php

View solution in original post

2 Replies

Avatar

Employee Advisor

@JiriLio 

OOTB turnkey set-ups have MySQL configured as the dependent service for JBoss service i.e JBoss will wait for MySQL to come up before starting the server.

I didn't get the question actually- do you want to decouple the dependency or couple the two?

Go to JBoss service properties in the services.msc and then dependencies, you will be able to couple/decouple the MySQL service.

Avatar

Correct answer by
Employee Advisor

@JiriLio This should not happen ideally unless there is something at infra blocking mysql service to start. You can manually start MySQL first and then start the JBoss that is certainly possible and ok. 

 

You can also create a custom bat file(for windows) which should do 3 things.

  1. execute MySQL start command
  2. wait for few mins
  3. call JBoss start command

 

https://www.wikihow.com/Delay-a-Batch-File

https://www.robvanderwoude.com/wait.php