I followed this guide for deploying my strapi backend on an AWS instance and when trying to run get this error:
Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
I’ve tried all the tweaks I found online from changing the db inbound rules to allowing all traffic from my IP to adding different pool configurations to my database.js file. Nothing works.
If these fail, try using a larger value for pool.max.
Observe the processor and RAM usage while you start Strapi. See if either of these max outs. You might want to consider using a larger database instance.
Try to see the database log.
I had the same Knex problem, but the real problem was that my IP adress was not allowed in Postgres service on Microsoft azure.
So try to watch the database log while try to start Strapi service.
I hope this solution help you all.