HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Server crashed by unlimited error.log size - how to set a limit? (http://www.howtoforge.com/forums/showthread.php?t=22057)

tom 6th April 2008 13:13

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"?

till 6th April 2008 16:39

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.

tom 6th April 2008 22:31

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

falko 7th April 2008 18:11

Is your log file > 2GB, and do you use a 32bit system? http://www.howtoforge.com/forums/sho...spconfig+32bit

tom 7th April 2008 20:39

Quote:

Originally Posted by falko
Is your log file > 2GB, and do you use a 32bit system? http://www.howtoforge.com/forums/sho...spconfig+32bit

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?

falko 8th April 2008 10:22

Did you set a logsize limit on the Options tab of that web site?

tom 8th April 2008 19:02

Quote:

Originally Posted by falko
Did you set a logsize limit on the Options tab of that web site?

Yes and No, it was set by default to 30%. What does 30% mean? 30% of the free space on the disk or 30% of the hole disk?

tom 9th April 2008 21:39

I'm still unsure why it the logfilesize could grow unlimited and the quota has no effect.

falko 9th April 2008 22:07

Quote:

Originally Posted by tom
Yes and No, it was set by default to 30%. What does 30% mean? 30% of the free space on the disk or 30% of the hole disk?

It's 30% of the web site quota (60MB, so that would make 18MB).

I suggest you upgrade to ISPConfig 2.2.22, I've rewritten the webalizer.php script, so hopefully it solves your problem.

tom 19th April 2008 13:40

If've upgradet to the lastet ispconfig version.

The quota for a webuser does not has an effect because the the logfiles are owned by root. I've chaned ot to the user and now I hope quota will do the other things ...


All times are GMT +2. The time now is 22:23.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.