Question

Hello script running with no pm2 scripts enabled

My droplet was working fine, but my payment was overdue so it got suspended. I payed everything off and server is running again. My data got preserved and nothing has changed.

But this time it is stuck on initial hello script saying “Sammy welcomes you to your Droplet!” There is no pm2 scripts running, the hello script is deleted. My nuxt application is showing: Error: Address `0.0.0.0:3000` is already in use. so there is something running. I tried killing pm2, restarting everything from droplet to pm2 and I spent multiple hours trying get this to work.

When I run pm2 list - it’s empty. When I run pm2 start npm -- start it says online but it keeps restarting every few seconds. When I run pm2 show hello it says: [PM2][WARN] hello doesn't exist

I tried reinstalling pm2, killing it, cleaning cache, restarting nginx, droplet and more…

How can I get rid of this hello script and free my 3000 port so I can run my app? Thanks.


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

Fixed by deleting .pm2 folder from my droplet.

Having the same issue. What I did:

  1. unistalled pm2
  2. removed .pm2 folder
  3. killed NodeJS process on port 3000
  4. restarted nginx
  5. reload browser page — the page is not responding (expected)
  6. install pm2 globally
  7. without any further console commands I reload browser page and the ‘hello’ script is working. How? Why?

Why I can’t control it? How to make the behavior predictable? Please, help.

I had a similar problem, though the hello.js script still existed as a file on the server. The hello script was submitted by the nodejs-user, so to make any pm2 commands I had to write sudo -u nodejs list, sudo -u nodejs restart hello and so on.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel