Results 1 to 5 of 5

Thread: Clamd: ERROR: Unable to lock database directory!

  1. #1
    Join Date
    Mar 2007
    Posts
    85
    Rep Power
    8

    Default Clamd: ERROR: Unable to lock database directory!

    I have some problems on zcs OSS 4.5.9 about clamd. Recently, my clamd usually happens the following error:
    ERROR: reload db failed: Unable to lock database directory
    Terminating because of a fatal error.
    Pid file removed.

    and when i use "zmcontrol status" and receive "zmclamdctl is not running".

    I stop zimbra and start again, the system operates normally for some minutes. Each time, clamd reloads database from /opt/zimbra/clamav/db, the problem will happen.
    I wonder if they have any bugs in clamav.

    Thanks for regard.

  2. #2
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    25

    Default

    could you check the permissions on /opt/zimbra/clamav/db please.

    they may be incorrect and require a zmfixperms to sort it out. would also make sure all other permissions are correct aswell.

  3. #3
    Join Date
    Mar 2007
    Posts
    85
    Rep Power
    8

    Default

    I don't think that is my problem. The permission is right. I realize that: when i start zimbra, it start normally, clamd is loaded. But each time, the system reloads database of clamd automatically, this error happen.

  4. #4
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    25

    Default

    found this on a mailing list :-

    > this night my clamd-process terminated with an error. The reason was
    > that freshclam took too long to do its update, so that clamd could not
    > lock the database. So clamd exited. But this behaviour is very fatal
    > because the mail system (postfix with amavis) relys on clamd, so if it
    > is down, the whole mail traffic is blocked!! Caused of an error while
    > updating......
    >
    is this happening then just after freshclam runs ?

  5. #5
    Join Date
    Mar 2007
    Posts
    85
    Rep Power
    8

    Default

    I think this is the problem which i 'm encountering. At present, i don't permit clamav to update from internet. So, if you have any ways to prevent freshclam from taking too long to to its updates.

    Many thanks,

Similar Threads

  1. Replies: 23
    Last Post: 01-24-2013, 03:44 PM
  2. centos 5 zimbra 4.5.6 no statistics
    By rutman286 in forum Installation
    Replies: 9
    Last Post: 08-14-2007, 10:30 AM
  3. Replies: 9
    Last Post: 04-14-2007, 09:31 AM
  4. Replies: 5
    Last Post: 03-01-2007, 03:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •