Mercury - Hudson log filling

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

Comments

logrotate

justintime's picture

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

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

Peter

Mercury

Group organizers

Group categories

Post Type

Group notifications

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

Hot content this week