Mercury - Hudson log filling

Events happening in the community are now at Drupal community events on www.drupal.org.
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 large

If 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

Categories: , ,

Comments

logrotate

Posted by justintime on May 31, 2011 at 2:18pm

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 -s
cat <<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

Posted by peterm95018 on June 1, 2011 at 11:46pm

@justintime Thanks. I've added this snippet and will monitor.

Peter

thanks

Posted by hongpong on May 29, 2012 at 12:57am

this was a bit of an issue!!

Mercury

Group organizers

Group categories

Post Type

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /