CRON error message

Discussion in 'Installation/Configuration' started by davidxs, Apr 2, 2015.

  1. davidxs

    davidxs New Member

    I have this message from my server:

    /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

    What is wrong? How to fix it?
    Server is running on Debian 6 and ISPConfig 3.

    Thank you.

  2. vhacker11

    vhacker11 Member

    Hi David,

    Try these solutions. Source
    • Check that there are no updatedb.mlocate processes running (pgrep -x 'updatedb\.mlocate');
    • If one is running, either wait for it to finish, or if you think it is stuck, terminate it (pkill -x 'updatedb\.mlocate', perhaps using more violent signals if there is no response);
    • Remove the lock if none are running (rm /var/lib/mlocate/*.lock).

Share This Page