Strapi doesn't listen

System Information
  • Strapi Version: 3.4.5
  • Operating System: Ubuntu LTS
  • Database: Postgres on RDS
  • Node Version: 12.20.1
  • NPM Version:
  • Yarn Version:

Hi everyone!

I am trying to deploy a strapi backend on AWS. I followed the guide exactly, but for some reason strapi doesn’t listen.

Running pm2 list shows that the strapi process is running, however, sudo lsof -i -P -n | grep LISTEN says that the server is not listening on port 443, 80 or 1337.

Anyone got an idea for me? Has this problem happened to other people?

Have you tried to run it without pm2? Just with yarn start?

What port it shows in the log when starting it?

Hey everyone, I figured it out. I had not correctly set up my database security configuration, so it was rejecting the connection, upon which strapi crashed, and pm2 tried to start the process again. I set it up correctly now.

1 Like