1 (edited by YurkshireLad 2020-06-01 20:19:02)

Topic: ERROR: /var/log/clamav/freshclam.log is locked by another process

iRedMail version 1.2.1
- Deployed with the downloadable installer
- Linux/BSD distribution name and version: Ubuntu 18.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): NGINX
- Manage mail accounts with iRedAdmin-Pro? NO

Sometimes during the installation on Ubuntu 18.04 I see this error:

[ INFO ] Restarting firewall ...
[ INFO ] Updating ClamAV database (freshclam), please wait ...
ERROR: /var/log/clamav/freshclam.log is locked by another process
********************************************************************
* URLs of installed web applications:
..

Then I get a 404 when I visit https://box.mydomain.com/iredadmin/ or https://box.mydomain.com/webmail/.

I see this error in syslog, which I assume is relevant:

Jun  1 14:13:37 box kernel: [  562.571674] audit: type=1400 audit(1591013617.590:20): apparmor="DENIED" operation="open" profile="/usr/bin/freshclam" name="/etc/ssl/openssl.cnf" pid=3289 comm="freshclam" requested_mask="r" denied_mask="r" fsuid=112 ouid=0

----

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

2

Re: ERROR: /var/log/clamav/freshclam.log is locked by another process

This happened twice in a row now. Can I re-run the install script or do I have to re-install the operating system first?

3

Re: ERROR: /var/log/clamav/freshclam.log is locked by another process

I re-ran the install script and selected Y to use existing config. The SoGo URL seems to work but the admin website gives a 502:

111: Connection refused) while connecting to upstream, client: ...

4

Re: ERROR: /var/log/clamav/freshclam.log is locked by another process

The domain name of the server is (for example) mail.mydomain.com and the mail domain I am managing is mydomain.com. Is this a problem for the software?

5

Re: ERROR: /var/log/clamav/freshclam.log is locked by another process

Weird. I re-installed on Ubuntu 18.04. I still got this error but the admin and webmail sites work this time.

6

Re: ERROR: /var/log/clamav/freshclam.log is locked by another process

YurkshireLad wrote:

ERROR: /var/log/clamav/freshclam.log is locked by another process

This means another "freshclam" process is running. It's safe to ignore.