Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?


#1

Hello all,

I am getting this error in the logs whenever a new query is asked to a bot which makes the bo unresponsive for a while. I tried restarting the server but the error is still the same.

Below attached is the screenshot of the error from logs.

Could you guys please suggest some possible fixes for this problem?

Thank you !


#2

Could you try cleaning up logs (DELETE FROM logs;)? I had a case when table had too many records which made some of the connections stuck.