1 (edited by mikey 2020-03-23 22:34:40)

Topic: Cron /usr/share/clamav/freshclam-sleep

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.1 MARIADB edition
- Deployed with iRedMail Easy or the downloadable installer? downloadable
- 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?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Clamav seems to not be updating

ERROR: Database test FAILED.
ERROR: Unexpected error when attempting to update database: daily
ERROR: Database update process failed: Test failed (8)
ERROR: Update failed.

I can login using the iredmail account (MySql is not running locally) 

mysql -h xxxxxx.eu-central-1.rds.amazonaws.com -u iredmail -p
/var/log/maillog
Mar 23 02:53:53 mx1 clamd[25870]: Received 0 file descriptor(s) from systemd.
Mar 23 02:53:53 mx1 clamd[25870]: clamd daemon 0.102.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Mar 23 02:53:53 mx1 clamd[25870]: Running as user amavis (UID 991, GID 987)
Mar 23 02:53:53 mx1 clamd[25870]: Log file size limited to 1048576 bytes.
Mar 23 02:53:53 mx1 clamd[25870]: Reading databases from /var/lib/clamav
Mar 23 02:53:53 mx1 clamd[25870]: Not loading PUA signatures.
Mar 23 02:53:53 mx1 clamd[25870]: Bytecode: Security mode set to "TrustSigned".
Mar 23 02:54:05 mx1 clamd[25870]: Loaded 6788701 signatures.
Mar 23 02:54:08 mx1 clamd[25870]: LOCAL: Unix socket file /var/run/clamd.amavisd/clamd.socket
Mar 23 02:54:08 mx1 clamd[25870]: LOCAL: Setting connection queue length to 200
Mar 23 02:54:08 mx1 clamd[25870]: daemonize() failed: Cannot allocate memory
Mar 23 02:54:08 mx1 clamd[25870]: Socket file removed.

Mar 23 02:54:08 mx1 clamd[25870]: daemonize() failed: Cannot allocate memory


                   total        used        free      shared  buff/cache   available
Mem:           1805         817         601          97         386         753
Swap:             0           0           0

I am going to add a swap to see if it helps.

Is this just a memory thing: (RAM)?

2

Re: Cron /usr/share/clamav/freshclam-sleep

mikey wrote:

Mar 23 02:54:08 mx1 clamd[25870]: daemonize() failed: Cannot allocate memory

Increase to 4GB memory will be more stable.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee