server keeps getting error - seems disk full related
Hi,
I've been running a linode server provisioned through Forge for the past couple of years without an issue. I'm recently pushed a CMS update and everything seemed fine, but the last couple of days the server has fallen over. The logs seem to point to a disk full error (shouldn't be that full)
When I run df -h it tells me that dev/root is at 100% use. Any ideas on how/where to start debugging?
So 6gb is a lot for a website! Do you save all the files on that server?
Normally if you need to handle large files you use a separate service to store them like Amazon S3. For now I can only suggest you to either move the files to S3 or increase the volume of your server.
You can look in the walkiees.co.uk directory and see if you can find huge files there. A good place to start clearing would be storage/logs and check if you have large files there!
I do have assets (images) stored locally rather than S3. Just not something I have got round to doing. It's roughly 6GB of local assets so that makes sense.
I was struggling to debug it so I ended up deleting the server and provisioning a new one.
Just finished getting it all back up and running and it all seems OK. Have set it back up with just the single site. What's odd is that when I check the sizes again using df -h it shows the following...
I had this issue before on my AWS hosting account. Turned out the permissions of my cache folder werent set up properly so even when doing php artisan clear:cache . The cache files were not being cleared. It kept growing and growing. What worked for me was changing the file ownership recursively for the cache folder.