Help - OLS Stopped and Won't Start

ftsor

New Member
#1
Hi, I have been using the OLS 1 click install for a bunch of sites on digital ocean. I have had no problems until today, one site stopped working. When I access the server via the console I get the error message "Failed to write to pid file:/tmp/lshttpd/lshttpd.pid! Failed to restart litespeed!"

This is a really basic site running practically a blank theme on ubuntu 18.04 (this is what the 1 click install uses). Any help would be greatly appreciated!
 

ftsor

New Member
#2
Update. I was able to see that I ran out of disk space that there 21GB of log files. I removed those and was able to restart litespeed with no issues after that. Now I need to figure out why I have 21GB of log files!
 
#6
If you get a fair amount of traffic and have errors occurring this can strike far more often.
Was having some cache issues generating too many caches which caused a 'too many open files' error, which filled hard drive and turned instance into a vegetable every few hours. Even faster if trying to look through debug-level logs.

Code:
sudo crontab -e
*/30 * * * * rm /usr/local/lsws/logs/error.log.*
Removes extra log files every 30 minutes. It's probably a good idea to export to a backup prior to deletion in the long term.
 
Top