Search code examples
node.jspm2

Getting error when trying to launch node.js app with PM2 Cluster


in an Ubuntu Server, I am unable to run the node.js app in cluster mode using PM2.

The command I use is :

PM2 start server.js --name Server -i max

When I list the PM2 processes, I can see the Server has Error status. I have tried looking into the log file generated by PM2 but it's empty.

I am however able to run the same server.js without the cluster mode using :

PM2 start server.js --name Server


Solution

  • doing PM2 Kill and starting all the services again was the solution to above issue.