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!
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:
- 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.
- 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
Let me know how it goes! Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.