Bamboo had a job that was stuck in the "Queued" state, but did not show up in the list of Builds. So we restarted Bamboo. Upon restart, the catalina log file was stuck on a line that said "Initializing C3P0 pool". After a while, an exception was thrown that said "The database is in use by another process". There were no processes running on the machine owned by me, other than my login and tomcat. Could the default database be corrupted or locked?
I found an article that said to delete the KahaDB and caches directories from the bamboo home directory to solve this problem
I tried renaming them to caches_old and KahaDB_old and restarting the tomcat server
The same thing happened again with the hang on Initializing C3P0 and subsequent crash