amavisd error's: can't create directorys?

Discussion in 'Installation/Configuration' started by vk3heg, Mar 26, 2015.

  1. vk3heg

    vk3heg Member

    I'm starting to see these types of error's on my system (Centos 7.0 64bit)
    Not having used amavis before where do I start to look at fixing?
    (i've only inclluded a small part of the error's, they go for some lengh).

    Virus database reloaded 9 time(s) (last time with 3776352 viruses)
    **Unmatched Entries**
    LibClamAV Error: cli_scanhtml: Can't create temporary directory /tmp/clamav-dc800457f592d8d04a8a9aba7d6a03df.tmp
    /var/spool/amavisd/tmp/amavis-20150324T192724-13707-7Azqbzeu/parts/p002: Can't create temporary directory ERROR
    /var/spool/amavisd/tmp/amavis-20150324T192724-13707-7Azqbzeu/parts/p007: Can't create temporary directory ERROR
    LibClamAV Error: cli_scanhtml: Can't create temporary directory /tmp/clamav-a4c1aad4c7254899fbb2c61b53a7f722.tmp
    [...]
    /var/spool/amavisd/tmp/amavis-20150325T073206-09430-3VCgwh4Y/parts/p002: Can't create temporary directory ERROR
    /var/spool/amavisd/tmp/amavis-20150324T201012-15696-V0UFAxAX/parts/p039: Can't create temporary directory ERROR
    /var/spool/amavisd/tmp/amavis-20150325T073206-09430-3VCgwh4Y/parts/p039: Can't create temporary directory ERROR
    /var/spool/amavisd/tmp/amavis-20150325T073206-09430-3VCgwh4Y/parts/p007: Can't create temporary directory ERROR
    LibClamAV Error: cli_scanhtml: Can't create temporary directory /tmp/clamav-8b748c4578168f6644e19d270521b3e1.tmp
    /var/spool/amavisd/tmp/amavis-20150325T073206-09430-3VCgwh4Y/parts/p002: Can't create temporary directory ERROR
    /var/spool/amavisd/tmp/amavis-20150325T073206-09430-3VCgwh4Y/parts/p003: Can't create temporary directory ERROR
    /var/spool/amavisd/tmp/amavis-20150325T073206-09430-3VCgwh4Y/parts/p004: Can't create temporary directory ERROR
    /var/spool/amavisd/tmp/amavis-20150325T080801-12105-A118jRUW/parts/p041: Can't create temporary directory ERROR
    /var/spool/amavisd/tmp/amavis-20150325T073206-09430-3VCgwh4Y/parts/p039: Can't create temporary directory ERROR
    /var/spool/amavisd/tmp/amavis-20150325T080801-12105-A118jRUW/parts/p040: Can't create temporary directory ERROR
    /var/spool/amavisd/tmp/amavis-20150325T073206-09430-3VCgwh4Y/parts/p041: Can't create temporary directory ERROR
    /var/spool/amavisd/tmp/amavis-20150325T080801-12105-A118jRUW/parts/p004: Can't create temporary directory ERROR
    LibClamAV Error: cli_scanhtml: Can't create temporary directory /tmp/clamav-6c52c3c796857238c51755e2cbdaf1d2.tmp
    /var/spool/amavisd/tmp/amavis-20150325T080801-12105-A118jRUW/parts/p002: Can't create temporary directory ERROR
    /var/spool/amavisd/tmp/amavis-20150325T073206-09430-3VCgwh4Y/parts/p007: Can't create temporary directory ERROR
    /var/spool/amavisd/tmp/amavis-20150325T080801-12105-A118jRUW/parts/p039: Can't create temporary directory ERROR
    /var/spool/amavisd/tmp/amavis-20150325T073206-09430-3VCgwh4Y/parts/p039: Can't create temporary directory ERROR
    /var/spool/amavisd/tmp/amavis-20150325T080801-12105-A118jRUW/parts/p007: Can't create temporary directory ERROR
    /var/spool/amavisd/tmp/amavis-20150325T080801-12105-A118jRUW/parts/p041: Can't create temporary directory ERROR
    LibClamAV Warning: cli_unzip: failed to create temporary file /tmp/clamav-83e2ae69467deb4d4f568de9dc901c66.tmp
    LibClamAV Warning: cli_unzip: failed to create temporary file /tmp/clamav-e123d25441c0526b47be4d3398f301a0.tmp
    LibClamAV Warning: cli_unzip: failed to create temporary file /tmp/clamav-624dc57f6c684bbde22cd3898600f87f.tmp
    LibClamAV Warning: cli_unzip: failed to create temporary file /tmp/clamav-9b18e2e167c6de456c31bea9f0eb0f91.tmp
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Check with:

    df -h

    that no harddisk partition is full, especiall that you have enough space in /tmp
     
  3. vk3heg

    vk3heg Member

    Single Partiton of 108Gb, with 104Gb free.

    [user@host ~]# df -H
    Filesystem Size Used Avail Use% Mounted on
    /dev/simfs 108G 4.1G 104G 4% /
    devtmpfs 2.2G 0 2.2G 0% /dev
    tmpfs 2.2G 0 2.2G 0% /dev/shm
    tmpfs 2.2G 153M 2.0G 8% /run
    tmpfs 2.2G 0 2.2G 0% /sys/fs/cgroup
     
  4. florian030

    florian030 Well-Known Member HowtoForge Supporter

    It looks like a permission-problem for /var/spool/amavisd/tmp.
    Make sure, that the clamav-user (clamav) is a member of the amavis-group (amavis).
    DIs selinux enabled?
     
  5. vk3heg

    vk3heg Member

    There are only the folloing users:
    amavis
    clamupdate

    [user@host ~]# ll /var/spool/amavisd/
    total 28
    drwxr-x--- 7 amavis amavis 4096 Mar 27 18:57 .
    drwxr-xr-x 11 root root 4096 Mar 6 01:25 ..
    srwxr-x--- 1 amavis amavis 0 Mar 27 18:57 amavisd.sock
    drwxr-x--- 2 amavis amavis 4096 Mar 27 18:57 db
    drwxr-x--- 2 amavis amavis 4096 Aug 20 2014 quarantine
    drwxr-x--- 2 amavis amavis 4096 Mar 28 11:38 .razor
    drwx------ 2 amavis amavis 4096 Mar 28 17:42 .spamassassin
    drwxrwx--- 6 amavis amavis 4096 Mar 28 17:42 tmp

    [user@host ~]# id amavis
    uid=996(amavis) gid=996(amavis) groups=996(amavis),997(clamupdate)
    [user@host ~]# id clamupdate
    uid=997(clamupdate) gid=997(clamupdate) groups=997(clamupdate)

    [user@host clamd.d]# cat amavisd.conf
    # Use system logger.
    LogSyslog yes

    # Specify the type of syslog messages - please refer to 'man syslog'
    # for facility names.
    LogFacility LOG_MAIL

    # This option allows you to save a process identifier of the listening
    # daemon (main thread).
    PidFile /var/run/clamd.amavisd/clamd.pid

    # Remove stale socket after unclean shutdown.
    # Default: disabled
    FixStaleSocket yes

    # Run as a selected user (clamd must be started by root).
    User amavis

    # Path to a local socket file the daemon will listen on.
    LocalSocket /var/run/clamd.amavisd/clamd.sock

    I have attached the amavisd.conf file, with only the host name being changed.
     

    Attached Files:

Share This Page