1 (edited by ryandmilton 2016-12-30 00:50:18)

Topic: General Maintenance freshclam fail

======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: Centos 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx):nginx
- Manage mail accounts with iRedAdmin-Pro? no
- Related log if you're reporting an issue: logs below.
====


I attempted to create the "refreshclam"  to no improvement.
https://wiki.contribs.org/Clamav:freshc … lam_update

is this a case where I delete files in  working dir is /var/lib/clamav and run freshclam to recreate?

root@srv ~# rpm -q clamav
clamav-0.99.2-1.el7.x86_64
root@srv ~# systemctl status amavisd
● amavisd.service - Amavisd-new is an interface between MTA and content checkers.
   Loaded: loaded (/usr/lib/systemd/system/amavisd.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2016-12-29 11:23:40 EST; 11min ago
     Docs: http://www.ijs.si/software/amavisd/#doc


root@srv ~# freshclam -v --no-dns
Current working dir is /var/lib/clamav
Max retries == 3
ClamAV update process started at Thu Dec 29 11:35:53 2016
Using IPv6 aware code
If-Modified-Since: Wed, 16 Mar 2016 23:17:06 GMT
Reading CVD header (main.cvd): Ignoring mirror 168.143.19.95 (due to previous errors)
Ignoring mirror 64.22.33.90 (due to previous errors)
Ignoring mirror 128.199.133.36 (due to previous errors)
Ignoring mirror 194.8.197.22 (due to previous errors)
Ignoring mirror 207.57.106.31 (due to previous errors)
Ignoring mirror 69.163.100.14 (due to previous errors)
Ignoring mirror 168.143.19.95 (due to previous errors)
Ignoring mirror 64.22.33.90 (due to previous errors)
Ignoring mirror 128.199.133.36 (due to previous errors)
Ignoring mirror 194.8.197.22 (due to previous errors)
Ignoring mirror 207.57.106.31 (due to previous errors)
Ignoring mirror 69.163.100.14 (due to previous errors)
WARNING: Can't read main.cvd header from database.clamav.net (IP: )
Trying again in 5 secs...
ClamAV update process started at Thu Dec 29 11:35:58 2016
Using IPv6 aware code
If-Modified-Since: Wed, 16 Mar 2016 23:17:06 GMT
Reading CVD header (main.cvd): Ignoring mirror 172.110.204.67 (due to previous errors)
Ignoring mirror 208.72.56.53 (due to previous errors)
Ignoring mirror 198.148.78.4 (due to previous errors)
Ignoring mirror 64.6.100.177 (due to previous errors)
Ignoring mirror 150.214.142.197 (due to previous errors)
WARNING: Can't read main.cvd header from database.clamav.net (IP: )
Trying again in 5 secs...
ClamAV update process started at Thu Dec 29 11:36:03 2016
Using IPv6 aware code
If-Modified-Since: Wed, 16 Mar 2016 23:17:06 GMT
Reading CVD header (main.cvd): Ignoring mirror 172.110.204.67 (due to previous errors)
Ignoring mirror 208.72.56.53 (due to previous errors)
Ignoring mirror 198.148.78.4 (due to previous errors)
Ignoring mirror 150.214.142.197 (due to previous errors)
Ignoring mirror 64.6.100.177 (due to previous errors)
WARNING: Can't read main.cvd header from database.clamav.net (IP: )
Giving up on database.clamav.net...
Update failed. Your network may be down or none of the mirrors listed in /etc/freshclam.conf is working. Check http://www.clamav.net/doc/mirrors-faq.html for possible reasons.
root@srv ~#

----

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

2

Re: General Maintenance freshclam fail

ryandmilton wrote:

======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: Centos 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx):nginx
- Manage mail accounts with iRedAdmin-Pro? no
- Related log if you're reporting an issue: logs below.
====


I attempted to create the "refreshclam"  to no improvement.
https://wiki.contribs.org/Clamav:freshc … lam_update

is this a case where I delete files in  working dir is /var/lib/clamav and run freshclam to recreate?

root@srv ~# rpm -q clamav
clamav-0.99.2-1.el7.x86_64
root@srv ~# systemctl status amavisd
● amavisd.service - Amavisd-new is an interface between MTA and content checkers.
   Loaded: loaded (/usr/lib/systemd/system/amavisd.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2016-12-29 11:23:40 EST; 11min ago
     Docs: http://www.ijs.si/software/amavisd/#doc


root@srv ~# freshclam -v --no-dns
Current working dir is /var/lib/clamav
Max retries == 3
ClamAV update process started at Thu Dec 29 11:35:53 2016
Using IPv6 aware code
If-Modified-Since: Wed, 16 Mar 2016 23:17:06 GMT
Reading CVD header (main.cvd): Ignoring mirror 168.143.19.95 (due to previous errors)
Ignoring mirror 64.22.33.90 (due to previous errors)
Ignoring mirror 128.199.133.36 (due to previous errors)
Ignoring mirror 194.8.197.22 (due to previous errors)
Ignoring mirror 207.57.106.31 (due to previous errors)
Ignoring mirror 69.163.100.14 (due to previous errors)
Ignoring mirror 168.143.19.95 (due to previous errors)
Ignoring mirror 64.22.33.90 (due to previous errors)
Ignoring mirror 128.199.133.36 (due to previous errors)
Ignoring mirror 194.8.197.22 (due to previous errors)
Ignoring mirror 207.57.106.31 (due to previous errors)
Ignoring mirror 69.163.100.14 (due to previous errors)
WARNING: Can't read main.cvd header from database.clamav.net (IP: )
Trying again in 5 secs...
ClamAV update process started at Thu Dec 29 11:35:58 2016
Using IPv6 aware code
If-Modified-Since: Wed, 16 Mar 2016 23:17:06 GMT
Reading CVD header (main.cvd): Ignoring mirror 172.110.204.67 (due to previous errors)
Ignoring mirror 208.72.56.53 (due to previous errors)
Ignoring mirror 198.148.78.4 (due to previous errors)
Ignoring mirror 64.6.100.177 (due to previous errors)
Ignoring mirror 150.214.142.197 (due to previous errors)
WARNING: Can't read main.cvd header from database.clamav.net (IP: )
Trying again in 5 secs...
ClamAV update process started at Thu Dec 29 11:36:03 2016
Using IPv6 aware code
If-Modified-Since: Wed, 16 Mar 2016 23:17:06 GMT
Reading CVD header (main.cvd): Ignoring mirror 172.110.204.67 (due to previous errors)
Ignoring mirror 208.72.56.53 (due to previous errors)
Ignoring mirror 198.148.78.4 (due to previous errors)
Ignoring mirror 150.214.142.197 (due to previous errors)
Ignoring mirror 64.6.100.177 (due to previous errors)
WARNING: Can't read main.cvd header from database.clamav.net (IP: )
Giving up on database.clamav.net...
Update failed. Your network may be down or none of the mirrors listed in /etc/freshclam.conf is working. Check http://www.clamav.net/doc/mirrors-faq.html for possible reasons.
root@srv ~#


Additional :

root@srv /e/sysconfig# systemctl  status clamd@scan
● clamd@scan.service - clamd scanner (scan) daemon
   Loaded: loaded (/usr/lib/systemd/system/clamd@.service; enabled; vendor preset: disabled)
   Active: inactive (dead)
root@srv /e/sysconfig# systemctl restart clamd@scan
root@srv /e/sysconfig# systemctl  status clamd@scan
● clamd@scan.service - clamd scanner (scan) daemon
   Loaded: loaded (/usr/lib/systemd/system/clamd@.service; enabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Thu 2016-12-29 11:44:35 EST; 736ms ago
  Process: 5109 ExecStart=/usr/sbin/clamd -c /etc/clamd.d/%i.conf --foreground=yes (code=exited, status=1/FAILURE)
Main PID: 5109 (code=exited, status=1/FAILURE)

Dec 29 11:44:35 srv.ryanmilton.xyz systemd[1]: Unit clamd@scan.service entered failed state.
Dec 29 11:44:35 srv.ryanmilton.xyz systemd[1]: clamd@scan.service failed.
Dec 29 11:44:35 srv.ryanmilton.xyz systemd[1]: clamd@scan.service holdoff time over, scheduling restart.
Dec 29 11:44:35 srv.ryanmilton.xyz systemd[1]: start request repeated too quickly for clamd@scan.service
Dec 29 11:44:35 srv.ryanmilton.xyz systemd[1]: Failed to start clamd scanner (scan) daemon.
Dec 29 11:44:35 srv.ryanmilton.xyz systemd[1]: Unit clamd@scan.service entered failed state.
Dec 29 11:44:35 srv.ryanmilton.xyz systemd[1]: clamd@scan.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
root@srv /e/sysconfig# systemctl  stop clamd@scan
root@srv /e/sysconfig# systemctl  status clamd@scan
● clamd@scan.service - clamd scanner (scan) daemon
   Loaded: loaded (/usr/lib/systemd/system/clamd@.service; enabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Thu 2016-12-29 11:44:35 EST; 14s ago
  Process: 5109 ExecStart=/usr/sbin/clamd -c /etc/clamd.d/%i.conf --foreground=yes (code=exited, status=1/FAILURE)
Main PID: 5109 (code=exited, status=1/FAILURE)

Dec 29 11:44:35 srv.ryanmilton.xyz systemd[1]: Unit clamd@scan.service entered failed state.
Dec 29 11:44:35 srv.ryanmilton.xyz systemd[1]: clamd@scan.service failed.
Dec 29 11:44:35 srv.ryanmilton.xyz systemd[1]: clamd@scan.service holdoff time over, scheduling restart.
Dec 29 11:44:35 srv.ryanmilton.xyz systemd[1]: start request repeated too quickly for clamd@scan.service
Dec 29 11:44:35 srv.ryanmilton.xyz systemd[1]: Failed to start clamd scanner (scan) daemon.
Dec 29 11:44:35 srv.ryanmilton.xyz systemd[1]: Unit clamd@scan.service entered failed state.
Dec 29 11:44:35 srv.ryanmilton.xyz systemd[1]: clamd@scan.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
root@srv /e/sysconfig# systemctl  start clamd@scan
root@srv /e/sysconfig# systemctl  status clamd@scan
● clamd@scan.service - clamd scanner (scan) daemon
   Loaded: loaded (/usr/lib/systemd/system/clamd@.service; enabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Thu 2016-12-29 11:44:56 EST; 281ms ago
  Process: 5202 ExecStart=/usr/sbin/clamd -c /etc/clamd.d/%i.conf --foreground=yes (code=exited, status=1/FAILURE)
Main PID: 5202 (code=exited, status=1/FAILURE)

Dec 29 11:44:56 srv.ryanmilton.xyz systemd[1]: Unit clamd@scan.service entered failed state.
Dec 29 11:44:56 srv.ryanmilton.xyz systemd[1]: clamd@scan.service failed.
Dec 29 11:44:56 srv.ryanmilton.xyz systemd[1]: clamd@scan.service holdoff time over, scheduling restart.
Dec 29 11:44:56 srv.ryanmilton.xyz systemd[1]: start request repeated too quickly for clamd@scan.service
Dec 29 11:44:56 srv.ryanmilton.xyz systemd[1]: Failed to start clamd scanner (scan) daemon.
Dec 29 11:44:56 srv.ryanmilton.xyz systemd[1]: Unit clamd@scan.service entered failed state.
Dec 29 11:44:56 srv.ryanmilton.xyz systemd[1]: clamd@scan.service failed.

3

Re: General Maintenance freshclam fail

ryandmilton wrote:

======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: Centos 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx):nginx
- Manage mail accounts with iRedAdmin-Pro? no
- Related log if you're reporting an issue: logs below.
====

I am not sure it makes sense to create anything new such as reported here, but I am not sure:

https://linux-audit.com/install-clamav- … freshclam/

4

Re: General Maintenance freshclam fail

ryandmilton wrote:

WARNING: Can't read main.cvd header from database.clamav.net (IP: )

freshclam cannot download file from clamav mirrors. It's a temproary network issue or clamav mirror site error, you can try again for some more times.

5

Re: General Maintenance freshclam fail

Ok, so its temporary. Maybe holiday. I know that I've made no changes to the configs, up to this point. Lets see, this has been like this for a number of days.