Hi there,
We just tried to upgrade to 2023.3 and the database connection dropped. In ArcGIS Monitor db admin we had this:

clicking on the configure just returned a 500 error (db connection error in the json), so I had to clear the db settings in the .env file to get the software to allow a db connection to be registered.
On trying to reregister the db we had the same error described here:
https://community.esri.com/t5/arcgis-monitor-questions/error-connecting-to-monitor-database/td-p/1257740
with the Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call? error.
This looks to be something in node.js so I tried updating to 2023.3.1 to see if that cleared it. I now get a timeout trying to reregister the db
E_SERVER_TIMEOUT: Request timed out after 60000 ms
and then this if I reattempt
RuntimeException: Migrations are locked. Make sure you are not multiple migration scripts or delete `agm_schema_lock` table manually
Dropping the table and rerunning the db register just returns to
E_SERVER_TIMEOUT: Request timed out after 60000 ms
The connection to the db is fine as I've tested via pgadminb / heidi etc.
Restarting services does not help.
Is there a way to clear this and reregister the db?
Many thanks
Fraser