Server crashed by unlimited error.log size - how to set a limit?
The ISPConfig Server crashed including the two apache servers because there was no more swap space left. The left space a faulty script has filed by growing up the error.log in /var/www/webxy/log/error.log.
How could be set a limit to the size of all error.log to prevent the next crash caused by "disk full"?
Posts: 31,886
Thanks: 691
Thanked 4,188 Times in 3,205 Posts
Try to set a quota limit on for the owner of the error.log file, I guess its apache oor www-data ? This will prevent your server from crashing but not apache when the quota is reached.
The owner of the logfiles are the systemusers. With ISPConfig I've set a quota in ISP Web --> Basis --> Speicher MB to 60MB but if I check it the user has no limit. Why the ISPConfig setting has no effect?
Quote:
server01:/var/www/web10/log# quota -u web22_adm
Disk quotas for user web22_adm(uid 10021): none
It's a 32bit system but I suppose in my case it does'nt belong to the thread you put a link because the logline is'nt > 2GB. The quota in ISPConfig does'nt has any effect. And therefore it a the ordenary error.log from a users account ca grow up unlimited. So again:
Why does the user account limit does'nt have any effect to quota?
Recent comments
10 hours 56 min ago
15 hours 55 min ago
17 hours 21 min ago
18 hours 14 min ago
19 hours 57 min ago
1 day 20 min ago
1 day 1 hour ago
1 day 3 hours ago
1 day 16 hours ago
1 day 18 hours ago