Hi Martijn,

Thanks to you and Johan for freeing up the space.

I've looked into the Apache2 documentation and piped logs look like a possible way to handle this log filling up case.

http://httpd.apache.org/docs/current/logs.html#piped

Basically the log output is sent using a pipe to a command (rotatelogs in their examples but it could be any program).

It looks to me like the log content is received via STDIN on the command specified and then it acts as a proxy to the actual log file. Based on conditions like file size and or the current date the target log file is switched.

I found the source for the rotatelogs command here: https://svn.apache.org/repos/asf/httpd/httpd/tags/2.3.9/support/rotatelogs.c

It supports switching the target file but not limiting the maximum number allowed to exist or looking at the message content.

Here is an apache2 module that is supposed to support auto log rotation and capping the number of files allowed to exist: http://www.poptart.org/bin/view/Poptart/ModAutorotate

Regards,

Mike
Johan has cleaned up /var.

In this case it's not a question of cleaning out the logs. Apparently something 
is misconfigured according to httpd. And that fills up the logs.

Martijn

On 10 dec. 2010, at 17:26, Michael O'Cleirigh<michael.ocleir...@rivulet.ca>  
wrote:

Hello,

Hudson is stuck again because the wicketstuff.org disk is full.  I tried 
cleaning out the maven local repository but that doesn't fix the problem.

Can someone with the appropriate access check it out?

Is the problem something that would be scriptable? I can write something for a 
cron job if it is.

I believe in the past its been related to logs not rolling? maybe this link 
would be of use: 
http://mifosforge.jira.com/wiki/display/MIFOS/Rolling+Tomcat+Logs
it says that if you put a log4j.properties file into the $CATALINA_HOME/lib 
directory you can specify to roll the logs.

In terms of upgrading hudson I believe it has to occur with a tomcat restart, 
if one is required to fix the space issue could the latest version 1.388 be 
installed?

Its available from here: http://ftp.osuosl.org/pub/hudson/war/latest/hudson.war 
(we are currently running version 1.367)

Thanks,

Mike






Reply via email to