clamd.amavisd fails to start

Discussion in 'Installation/Configuration' started by MattB, Mar 8, 2014.

  1. MattB

    MattB New Member

    I have recently set up an ISPConfig server following the guide:
    http://www.howtoforge.com/perfect-server-centos-6.4-x86_64-apache2-dovecot-ispconfig-3-p4

    I am unable to get amavisd to start, I am getting the following error:

    /etc/init.d/clamd.amavisd start
    Starting clamd.amavisd: [FAILED]

    Is there some setup process missing from the guide which I need to action?

    Here is my maillog:

    Mar 9 11:35:03 cloud dovecot: imap-login: Disconnected (no auth attempts): rip=::1, lip=::1, secured
    Mar 9 11:35:03 cloud dovecot: auth: Error: Can't open configuration file /etc/dovecot-sql.conf: No such file or directory
    Mar 9 11:35:03 cloud dovecot: master: Error: service(auth): command startup failed, throttling
    Mar 9 11:35:03 cloud dovecot: log: Error: service(auth): child 17016 returned error 89 (Fatal failure)
    Mar 9 11:35:03 cloud postfix/smtpd[17004]: connect from unknown[::1]
    Mar 9 11:35:13 cloud postfix/smtpd[17004]: fatal: no SASL authentication mechanisms
    Mar 9 11:35:14 cloud postfix/master[1368]: warning: process /usr/libexec/postfix/smtpd pid 17004 exit status 1
    Mar 9 11:35:14 cloud postfix/master[1368]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
    Mar 9 11:35:20 cloud clamd[17047]: clamd daemon 0.98.1 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
    Mar 9 11:35:20 cloud clamd[17047]: Running as user amavis (UID 496, GID 497)
    Mar 9 11:35:20 cloud clamd[17047]: Log file size limited to 1048576 bytes.
    Mar 9 11:35:20 cloud clamd[17047]: Reading databases from /var/lib/clamav
    Mar 9 11:35:20 cloud clamd[17047]: Not loading PUA signatures.
    Mar 9 11:35:20 cloud clamd[17047]: Bytecode: Security mode set to "TrustSigned".
    Mar 9 11:35:27 cloud clamd[17047]: Loaded 3228296 signatures.
    Mar 9 11:35:28 cloud clamd[17047]: LOCAL: Unix socket file /var/spool/amavisd/clamd.sock
    Mar 9 11:35:28 cloud clamd[17047]: LOCAL: Setting connection queue length to 200
    Mar 9 11:35:28 cloud clamd[17047]: daemonize() failed: Cannot allocate memory
    Mar 9 11:35:28 cloud clamd[17047]: Socket file removed.
    Mar 9 11:35:38 cloud dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=17005, input bytes=0
    Mar 9 11:36:03 cloud dovecot: auth: Error: Can't open configuration file /etc/dovecot-sql.conf: No such file or directory
    Mar 9 11:36:03 cloud dovecot: master: Error: service(auth): command startup failed, throttling
    Mar 9 11:36:03 cloud dovecot: log: Error: service(auth): child 17129 returned error 89 (Fatal failure)
    Mar 9 11:36:33 cloud dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=17005, input bytes=0
    Mar 9 11:37:03 cloud dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=17005, input bytes=0
    Mar 9 11:37:03 cloud dovecot: auth: Error: Can't open configuration file /etc/dovecot-sql.conf: No such file or directory
    Mar 9 11:37:03 cloud dovecot: master: Error: service(auth): command startup failed, throttling
    Mar 9 11:37:03 cloud dovecot: log: Error: service(auth): child 17193 returned error 89 (Fatal failure)
    Mar 9 11:37:30 cloud postfix/scache[16910]: statistics: start interval Mar 9 11:34:09
    Mar 9 11:37:30 cloud postfix/scache[16910]: statistics: domain lookup hits=0 miss=2 success=0%
    Mar 9 11:37:30 cloud postfix/scache[16910]: statistics: address lookup hits=0 miss=2 success=0%
    Mar 9 11:37:38 cloud dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=17005, input bytes=0
    Mar 9 11:38:03 cloud dovecot: pop3-login: Disconnected: Inactivity (no auth attempts): rip=::1, lip=::1, secured
    Mar 9 11:38:03 cloud dovecot: auth: Error: Can't open configuration file /etc/dovecot-sql.conf: No such file or directory
    Mar 9 11:38:03 cloud dovecot: master: Error: service(auth): command startup failed, throttling
    Mar 9 11:38:03 cloud dovecot: log: Error: service(auth): child 17271 returned error 89 (Fatal failure)
    Mar 9 11:39:09 cloud postfix/qmgr[1377]: D074311E537: from=<[email protected]>, size=514, nrcpt=1 (queue active)
    Mar 9 11:39:09 cloud postfix/smtp[17332]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
    Mar 9 11:39:09 cloud postfix/smtp[17332]: D074311E537: to=<root@***********.co.uk>, orig_to=<root>, relay=none, delay=118081, delays=118080/0.39/0/0, dsn=4.4.1, status=deferred (co$
    Mar 9 11:40:01 cloud dovecot: imap-login: Disconnected (no auth attempts): rip=::1, lip=::1, secured
    Mar 9 11:40:01 cloud dovecot: auth: Error: Can't open configuration file /etc/dovecot-sql.conf: No such file or directory
    Mar 9 11:40:01 cloud dovecot: master: Error: service(auth): command startup failed, throttling
    Mar 9 11:40:01 cloud dovecot: log: Error: service(auth): child 17444 returned error 89 (Fatal failure)
    Mar 9 11:40:01 cloud postfix/smtpd[17431]: connect from unknown[::1]
    Mar 9 11:40:11 cloud postfix/smtpd[17431]: fatal: no SASL authentication mechanisms
    Mar 9 11:40:12 cloud postfix/master[1368]: warning: process /usr/libexec/postfix/smtpd pid 17431 exit status 1
    Mar 9 11:40:12 cloud postfix/master[1368]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
    Mar 9 11:40:36 cloud dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=17432, input bytes=0
    Mar 9 11:41:01 cloud dovecot: auth: Error: Can't open configuration file /etc/dovecot-sql.conf: No such file or directory
    Mar 9 11:41:01 cloud dovecot: master: Error: service(auth): command startup failed, throttling
    Mar 9 11:41:01 cloud dovecot: log: Error: service(auth): child 17518 returned error 89 (Fatal failure)



    Thanks
     
    Last edited: Mar 9, 2014
  2. srijan

    srijan New Member HowtoForge Supporter

    Hi

    Did you followed the guide word-to-word, as the errors show that you missed the dovecot, dovecot-sql.conf.

    It is a general advice to follow the guide word-to-word

    Br//
    Srijan
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Please run:

    ln -s /etc/dovecot/dovecot-sql.conf /etc/dovecot-sql.conf

    and then restart dovecot.
     
  4. MattB

    MattB New Member

    Thanks, tried that and now I got the following error message when trying to start amavisd:

    Starting clamd.amavisd: /etc/init.d/functions: line 188: 11200 Killed $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
    [FAILED]


    Any ideas on this one? Thanks
     
  5. srijan

    srijan New Member HowtoForge Supporter

    Hi

    Please follow like this way.

    If you have already linked the file then you can leave above part.
    & then
    Br//
    Srijan
     
  6. MattB

    MattB New Member

    Thanks, have done this but I am still getting the same error message!? :confused:
     
  7. srijan

    srijan New Member HowtoForge Supporter

    Do one trick,

    I am giving you my /etc/init.d/functions file. Make a backup of your original file & replace the file with my file & then try to restart the services.

    My functions file is
    Br//
    Srijan
     
  8. MattB

    MattB New Member

    Unfortunately still the same error message is shown! :-/
     
  9. jboud

    jboud Member

    Sorry false alarm there, it started normally after full system restart.

    Hello all, I'm having the same problem after updating Debian 7 64bit.

    /etc/init.d/clamav-daemon start
    [FAIL] Starting ClamAV daemon: clamd failed!

    My guess is the update is faulty and not something on our systems.
     
    Last edited: Mar 14, 2014
  10. MattB

    MattB New Member

    Could this be a memory issue as I only have 512mb of RAM?
     

Share This Page