Posted by peterm95018 on May 30, 2011 at 3:28pm
Over the past month, I have observed that my mercury instance has stopped twice; about 14 days apart. In both cases the culprit appears to be that the hudson log is filling. From my syslog:
hudson: failed to write(client_errfd = 5): File too largeIf I move the /var/log/hudson/hudson.log and restart the server, everything comes back properly.
For the time being, I'm turning Hudson log level to off. Here's a link that might help someone else: http://wiki.hudson-ci.org/display/HUDSON/Logging.
Any other tweaks I should consider?
Peter
Comments
logrotate
I'm going to add a logrotate script for hudson to resolve this in new installs. If you want to implement it on an existing install, do this:
sudo -scat <<EOD > /etc/logrotate.d/hudson
/var/log/hudson/hudson.log
{
daily
copytruncate
missingok
compress
delaycompress
notifempty
rotate 8
}
EOD
Your logfile will get rotated out the following morning, and every morning after.
logrotate
@justintime Thanks. I've added this snippet and will monitor.
Peter
thanks
this was a bit of an issue!!