Strapi aws ec2 deployment KnexTimeoutError

System Information
  • Strapi Version: 3.6.5
  • Operating System: ubuntu 18
  • Database: aws rds / postgres
  • Node Version: 14.17.2
  • NPM Version: 6.14.13
  • Yarn Version: none

I am following this guide to deploy strapi to aws ec2, but when I launch it in browser I get site cant be reached, so I typed “pm2 log” in ssh terminal and got this error:
[2021-07-11T14:32:29.034Z] debug :no_entry: Server wasn’t able to start properly.
0|strapiaws | [2021-07-11T14:32:29.037Z] error KnexTimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?

how to solve this?
Thanks

I get the exact same issue, i’m using latest pg pacakge and node 14.17.0

I get the exact same issue.