Report this

What is the reason for this report?

Everything in my droplet uninstalled?

Posted on April 24, 2020

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 :(



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!

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.

Hello,

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:
  1. 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:
  1. 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:

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-18-04

  • Use only SSH Key-based authentication rather than passwords

Let me know how it goes! Regards, Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.