AEM on jBoss doesnot start as MySQL is not yet running after restart | Community
Skip to main content
New Participant
June 6, 2022
Solved

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

  • June 6, 2022
  • 2 replies
  • 749 views

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

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Mayank_Gandhi

@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

2 replies

Mayank_Gandhi
Mayank_GandhiAccepted solution
Employee
June 7, 2022

@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

Pulkit_Jain_
Employee
June 7, 2022

@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.