Everything in my droplet uninstalled?

Posted April 24, 2020 530 views
Ubuntu 18.04

I ssh'ed into my droplet and everything was… green? the directories are usually blue and I have a ruby on rails API on there. When I try to run it, it says that rails isn’t installed…But I ran it yesterday… and the day before… When I ssh into my other droplet it doesn’t have this issue so… I don’t know what to do. This happened before so I just destroyed that droplet and got a new one but now it’s happening again and I dont’ want to keep getting new droplets so…I really don’t understand whats going on :(

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.

Submit an Answer
1 answer


This sounds like a command is being executed which causes the issue for you.
There are a few things that I would recommend checking:

  • Check the list of last logged in users. You can do that with this command:
  • last

The output will look like this:

root     pts/0        USER_IP     Fri Apr 24 15:11   still logged in
root     pts/0        USER_IP     Thu Apr 23 17:23 - 20:49  (03:26)
root     pts/0        USER_IP     Wed Apr 22 16:25 - 20:12  (03:47)
root     pts/0        USER_IP     Wed Apr 22 08:40 - 11:19  (02:39)

That way you will be able to tell if someone from anther IP address is accessing your Droplet.

  • Check the last commands that were executed on the Droplet:
  • history

That way you will be able to see which command caused the problem

  • Enable backups for your Droplet, that way you will be able to restore to a working backup rather than starting from scratch every time there is a problem

  • Configure your firewall so that you could restrict some of the access to your Droplet. You can take a look at this tutorial here on how to do that:

  • Use only SSH Key-based authentication rather than passwords

Let me know how it goes!

by Brian Boucheron
by Erika Heidi
UFW, or Uncomplicated Firewall, is an interface to iptables that is geared towards simplifying the process of configuring a firewall on Linux servers. In this guide, you'll learn how to set up a firewall with UFW on Ubuntu 18.04.
  • I thought it was that too! But I can’t think of any command that I ran that would keep running besides rails s. I checked the last and history and it’s just a bunch of “cd” and “rails s -b” I already have my ufw firewall set up too. I run my rails server on port 5000 but I checked and nothing is running on that. So I really have no idea what to do now