Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 6th April 2008, 13:13
tom tom is offline
Senior Member
 
Join Date: Apr 2006
Posts: 492
Thanks: 8
Thanked 8 Times in 7 Posts
Default 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"?
Reply With Quote
Sponsored Links
  #2  
Old 6th April 2008, 16:39
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,070
Thanks: 826
Thanked 5,396 Times in 4,240 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 6th April 2008, 22:31
tom tom is offline
Senior Member
 
Join Date: Apr 2006
Posts: 492
Thanks: 8
Thanked 8 Times in 7 Posts
Default

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
Reply With Quote
  #4  
Old 7th April 2008, 18:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Is your log file > 2GB, and do you use a 32bit system? http://www.howtoforge.com/forums/sho...spconfig+32bit
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 7th April 2008, 20:39
tom tom is offline
Senior Member
 
Join Date: Apr 2006
Posts: 492
Thanks: 8
Thanked 8 Times in 7 Posts
Default

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?
Reply With Quote
  #6  
Old 8th April 2008, 10:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Did you set a logsize limit on the Options tab of that web site?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 8th April 2008, 19:02
tom tom is offline
Senior Member
 
Join Date: Apr 2006
Posts: 492
Thanks: 8
Thanked 8 Times in 7 Posts
Default

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?

Last edited by tom; 9th April 2008 at 21:38.
Reply With Quote
  #8  
Old 9th April 2008, 21:39
tom tom is offline
Senior Member
 
Join Date: Apr 2006
Posts: 492
Thanks: 8
Thanked 8 Times in 7 Posts
Default

I'm still unsure why it the logfilesize could grow unlimited and the quota has no effect.
Reply With Quote
  #9  
Old 9th April 2008, 22:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 19th April 2008, 13:40
tom tom is offline
Senior Member
 
Join Date: Apr 2006
Posts: 492
Thanks: 8
Thanked 8 Times in 7 Posts
 
Default

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 ...

Last edited by tom; 19th April 2008 at 14:25.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit the size of email sent shawnbishop General 1 9th February 2008 18:30
cacti problem - graphs have huge gaps Chip Installation/Configuration 7 7th February 2008 23:24
Changing Email Attachment size limit grandpagenocide General 1 23rd September 2007 17:29
from http to https after installation? Mahir Installation/Configuration 25 7th December 2005 20:40
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 02:30


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


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