1 (edited by ired_mania 2020-06-01 17:43:08)

Topic: error in maillog

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

how can I solve this problem?

(!)clamav-socket av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamd.amavisd/clamd.socket (All attempts (1) failed connecting to /var/run/clamd.amavisd/clamd.socket) at (eval 134) line 659.\n

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: error in maillog

Do you have enough system resources? 4GB RAM is recommended.
you can check in clam logs to find out why it failed

3 (edited by ired_mania 2020-06-01 18:27:43)

Re: error in maillog

MuPp3t33r wrote:

Do you have enough system resources? 4GB RAM is recommended.
you can check in clam logs to find out why it failed


Yes I have 16GB Ram and 5233876 of that is free


another thing is, I have error in statrting clamd@amavisd.service:

systemctl status clamd@amavisd.service
● clamd@amavisd.service - clamd scanner (amavisd) daemon
   Loaded: loaded (/usr/lib/systemd/system/clamd@.service; enabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Mon 2020-06-01 14:53:47 +0430; 29s ago
     Docs: man:clamd(8)
           man:clamd.conf(5)
           https://www.clamav.net/documents/
  Process: 15966 ExecStart=/usr/sbin/clamd -c /etc/clamd.d/%i.conf (code=exited, status=1/FAILURE)
Main PID: 17769 (code=exited, status=1/FAILURE)

Jun 01 14:53:47 seconddomain.ir systemd[1]: Failed to start clamd scanner (amavisd) daemon.
Jun 01 14:53:47 seconddomain.ir systemd[1]: Unit clamd@amavisd.service entered failed state.
Jun 01 14:53:47 seconddomain.ir systemd[1]: clamd@amavisd.service failed.
Jun 01 14:53:47 seconddomain.ir systemd[1]: clamd@amavisd.service holdoff time over, scheduling restart.
Jun 01 14:53:47 seconddomain.ir systemd[1]: Stopped clamd scanner (amavisd) daemon.
Jun 01 14:53:47 seconddomain.ir systemd[1]: start request repeated too quickly for clamd@amavisd.service
Jun 01 14:53:47 seconddomain.ir systemd[1]: Failed to start clamd scanner (amavisd) daemon.
Jun 01 14:53:47 seconddomain.ir systemd[1]: Unit clamd@amavisd.service entered failed state.
Jun 01 14:53:47 seconddomain.ir systemd[1]: clamd@amavisd.service failed.

4

Re: error in maillog

check /var/log/syslog to see if there is any relevant data there

5

Re: error in maillog

MuPp3t33r wrote:

check /var/log/syslog to see if there is any relevant data there


I dont have that file but complete error in mailog is here:


Jun  1 00:10:07 mail amavis[9201]: (09201-09) (!)clamav-socket av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamd.amavisd/clamd.socket (All attempts (1) failed connecting to /var/run/clamd.amavisd/clamd.socket) at (eval 134) line 659.\n
Jun  1 00:10:07 mail amavis[9201]: (09201-09) (!)WARN: all primary virus scanners failed, considering backups
Jun  1 00:10:07 mail amavis[9201]: (09201-09) (!)run_av (clamav-clamscan) FAILED - unexpected exit 2, output="WARNING: Ignoring deprecated option --disable-summary\nLibClamAV Error: cli_loaddbdir(): No supported database files found in /var/lib/clamav\nERROR: Can't open file or directory\n\n----------- SCAN SUMMARY -----------\nKnown viruses: 0\nEngine version: 0.101.2\nScanned directories: 0\nScanned files: 0\nInfected files: 0\nData scanned: 0.00 MB\nData read: 0.00 MB (ratio 0.00:1)\nTime: 0.005 sec (0 m 0 s)"
Jun  1 00:10:07 mail amavis[9201]: (09201-09) (!)clamav-clamscan av-scanner FAILED: /usr/bin/clamscan unexpected exit 2, output="WARNING: Ignoring deprecated option --disable-summary\nLibClamAV Error: cli_loaddbdir(): No supported database files found in /var/lib/clamav\nERROR: Can't open file or directory\n\n----------- SCAN SUMMARY -----------\nKnown viruses: 0\nEngine version: 0.101.2\nScanned directories: 0\nScanned files: 0\nInfected files: 0\nData scanned: 0.00 MB\nData read: 0.00 MB (ratio 0.00:1)\nTime: 0.005 sec (0 m 0 s)" at (eval 134) line 951.
Jun  1 00:10:07 mail amavis[9201]: (09201-09) (!!)AV: ALL VIRUS SCANNERS FAILED
Jun  1 00:10:07 mail amavis[10162]: (10162-01) (!)connect to /var/run/clamd.amavisd/clamd.socket failed, attempt #1: Can't connect to a UNIX socket /var/run/clamd.amavisd/clamd.socket: No such file or directory

6

Re: error in maillog

No supported database files found in /var/lib/clamav

Looks like there are no updates? try running freshclam to update the databases and then see if you can start clamav-daemon after that. You might have to stop the service clamav-freshclam in order to run freshclam

7

Re: error in maillog

MuPp3t33r wrote:

No supported database files found in /var/lib/clamav

Looks like there are no updates? try running freshclam to update the databases and then see if you can start clamav-daemon after that. You might have to stop the service clamav-freshclam in order to run freshclam

actually my server does not have access to download file and I usually Download it manually. so I download latest daily.cvd copied to /var/lib/clamav and change per to 600 clamupdate:clamupdate .
However, I have 3 clam service:clamd@amavisd, clamd@scan and clamd@amav and none of them can be started.