Hi there!
I basically asked the same question already on
serverfault.com, but that was, unfortunately, not successful yet.
The problem is the following:
One of our customers has scheduled restarts and updates for their servers. This includes their SQL server and our server hosting WildFly (currently: 29.0.0.Final).
When these restarts happen, our server is faster to reboot than the SQL server is leading to a deployment error for our software:
2024-03-26 01:51:00,009 INFO [org.jboss.as.server] (ServerService Thread Pool -- 46) WFLYSRV0010: Deployed "no.war" (runtime-name : "no.war")
2024-03-26 01:51:00,013 INFO [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
WFLYCTL0186: Services which failed to start: service jboss.persistenceunit."no.war#xxxPU": jakarta.persistence.PersistenceException: [PersistenceUnit: xxxPU] Unable to build Hibernate SessionFactory
WFLYCTL0448: 170 additional services are down due to their dependencies being missing or failed
However, the server doesn't recover from this state until I manually redeploy or restart WildFly. Is there any way to avoid this outcome to have the server itself retrying the deployment?
I might be just searching with the wrong keywords or maybe even at the wrong place. Any help would be much appreciated!
- Mario