On a number of occasions one or other of the following exceptions occurred during the restart of a Lucee instance. As a result the instance fails to start. After one or more restart attempts the instance eventually starts. It then works normally throughout the day.
“ERROR”,“Thread-116”,“01/08/2023”,“02:54:37”,“session storage”,"Unable to install, thread interrupted.
lucee.runtime.exp.NativeException: Unable to install, thread interrupted.
…
“ERROR”,“Thread-6864”,“01/04/2023”,“09:25:58”,“client storage”,"Unable to acquire the global lock to install the bundle.
lucee.runtime.exp.NativeException: Unable to acquire the global lock to install the bundle.
…
“ERROR”,“Thread-6864”,“01/04/2023”,“09:25:58”,“scope-context”,"Unable to acquire the global lock to install the bundle.
lucee.runtime.exp.NativeException: Unable to acquire the global lock to install the bundle.
…
See attached scope.log
I am posting here because I wonder whether there is a bug. The reasons:
Not just one particular instance is involved. This has occurred randomly on different instances.
Each time, the stacktrace mentions the same datasource-related driver.
The variations on the first line are around one and the same theme: scope.
reckon that’s the background controller thread (runs every minute) overlapping with the restart, so it’s trying to clear database sessions while restarting.
are you doing a cold restart or just restarting the context?
I’ve seen similar problems happen with complex/heavy applications which take a long time to startup
Without any traffic, restarting usually takes a minute.
Sorry, I don’t quite understand the proposed solution in [LDEV-3368] - Lucee . How do I configure a one-minute delay for the controller thread during restart?