I remember messing around with crontab and setting up email capabilities on a server many months back, and now all of a sudden I'm getting the following email:
from: root <firstname.lastname@example.org> to: root date: Thu, Dec 5, 2013 at 6:48 AM subject: Cron <root@server-ip> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) mailed-by: gmail.com
/etc/cron.daily/mlocate: /usr/bin/updatedb.mlocate: `/var/lib/mlocate/mlocate.db' is locked (probably by an earlier updatedb) run-parts: /etc/cron.daily/mlocate exited with return code 1
This is on Ubuntu Server 12.04.1 LTS. I don't even know which email server I'm using or how to find out. My understanding of the
/etc/cron.daily directory must be off, because when I do
crontab -l (for both root and my regular user) it says there is no crontab.
Maybe it's an issue with
updatedb and not email or cron?
I've killed off the
/bin/bash /etc/cron.daily/mlocate and
/usr/bin/updatedb.mlocate processes and removed the lock, now I'll just have to wait to see if I get the error again.