Droplet Out of Disk Space

I have a website hosted on a basic droplet. It has 25GB on memory. This is plenty of space to run a basic nodejs backend as the code repo is pretty small.

The droplet has 12GB of free memory but this keeps filling up with log files. The droplet came with some ‘hello’ example and I found the pm2 logs related to this.

In the pm2 error log it says “cannot find module /var/www/html/hello.js…”…

I have gone and deleted the code and nginx config for this application. It looks like pm2 is tryin to run it and failing. I can’t find where pm2 is trying to run this. This application doesn’t show when I do pm2 list so i can’t stop it. It only shows my nodejs backend, and I also installed pm2-lograte to manage the log files. I looked in the pm2 startup scripts thinking that it came back after a restart but I don’t see it listed there…

So my question is, how do i find and stop the hello application?

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

I just discoverd, that there were 2 instances of the pm2 God daemon running. So when I ran the pm2 list, it wouldn’t recognize the hello application because it was under a different user.

I uninstalled pm2, deleted the folders that were not needed for the second pm2 install. Installed pm2 again. And started my application.

I think this solved it. Now I only see one instances of pm2 running and it’s the one on the root folder

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