Page MenuHomePhabricator

Wikimedia DC haunted by mysterious cron failure
Closed, ResolvedPublic

Description

Wikimedia DC's server regularly gets this error message:

/etc/cron.daily/logrotate:
error: mediawiki-debug:5 compression program bzip2 is not an executable file
error: found error in /var/www/wikimediadc/public_html/w/debug.log , skipping

Cron sends out an email when this happens; the email always gets stuck in a spam filter and this has been the case for at least a year. It may be prudent to do something about this now that we have sysadmins.

Event Timeline

Harej raised the priority of this task from to Needs Triage.
Harej updated the task description. (Show Details)
Harej added a project: Wikimedia-DC.
Harej added subscribers: Harej, Isarra, Emufarmers, Legoktm.

I think the issue was /etc/logrotate.d/mediawiki-debug. I've removed it.

What did it do? Or what was it supposed to do?

/var/www/wikimediadc/public_html/w/debug.log {
  weekly
  rotate 20
  missingok
  compresscmd bzip2
  compress
  delaycompress
  missingok
  postrotate
    for service in apache2; do
      if /usr/bin/pgrep -P 1 $service >/dev/null; then
        /usr/sbin/invoke-rc.d $service graceful > /dev/null
      fi
    done
  endscript
}

It rotated the file debug.log in the MediaWiki directory, but that file doesn't exist. Perhaps this was left over from a previous package install.

Legoktm assigned this task to Emufarmers.
Legoktm set Security to None.