What are your folder permissions? Especially of the folder you found all the files in. Did you check the auth.log (usually inside /var/log/) if someone got access to your server except you? Since you already mentioned that you "logged in via ssh", I'd assume that's the only way to get access to your server?
Help for Hack? on Forge/Digital Ocean
Hey there,
trying to checkout my website after the weekend I landed onto the 500 error page. Quickly looking at Forge's dashboard I realised that an error was appearing: No more space on device...
I thought that was strange as I didn't have an influx of users/data over the weekend. I checked on Digital Ocean the app's usage and yes, the disk usage had been slowly but consistently increasing since the 4th of April. Nice linear slope, until it reached 100% on the 9th. Strange again.
I logged in via ssh, df -h and then yes, the partition was 100% used. Little ls -la in the current folder, and I find myself facing a lot of small files of either 0b or 4343224 bites exactly. All with random names, and in the middle, the regular default folder and my app's name folder.
As I couldn't even run a search I removed all these files (painstakingly) and manage to free up 300Mb. Ok now I could restart the server, MySQL and my app works again. But for how long?
I also notice in the df -h command, 6 /dev/loop0-6 small partitions. Are these supposed to be there in a Forge provisioned server?
Now my questions are:
- How can I find out what happened?
- How can I prevent it from happening again?
- How can I find where is the rest of the disc usage? Because I was barely at 35% usage before, for the past 6 months.
Quick thing, my last push was in March 12th, so I don't think it's a coding issue.
Thanks for any help that can be provided.
Please or to participate in this conversation.