Public bug reported:

An unattended upgrade upgraded clamav last night, after which clamav-
freshclam failed to start:

# systemctl status clamav-freshclam                                             
                                             
● clamav-freshclam.service - ClamAV virus database updater                      
                                                            
   Loaded: loaded (/lib/systemd/system/clamav-freshclam.service; enabled; 
vendor preset: enabled)                                           
   Active: failed (Result: exit-code) since Tue 2021-04-20 06:59:59 EEST; 6h 
ago                                                            
     Docs: man:freshclam(1)                                                     
                                                            
           man:freshclam.conf(5)                                                
                                                            
           https://www.clamav.net/documents                                     
                                                            
 Main PID: 18433 (code=exited, status=2)                                        
                                                            
                                                                                
                                                            
Apr 20 06:59:59 fridge systemd[1]: Started ClamAV virus database updater.       
                                                            
Apr 20 06:59:59 fridge freshclam[18433]: WARNING: Ignoring deprecated option 
SafeBrowsing at /etc/clamav/freshclam.conf:22                  
Apr 20 06:59:59 fridge freshclam[18433]: ERROR: Problem with internal logger 
(UpdateLogFile = /var/log/clamav/freshclam.log).               
Apr 20 06:59:59 fridge freshclam[18433]: ERROR: initialize: libfreshclam init 
failed.                                                       
Apr 20 06:59:59 fridge freshclam[18433]: ERROR: Initialization error!           
                                                            
Apr 20 06:59:59 fridge freshclam[18433]: ERROR: Can't open 
/var/log/clamav/freshclam.log in append mode (check permissions!).              
 
Apr 20 06:59:59 fridge systemd[1]: clamav-freshclam.service: Main process 
exited, code=exited, status=2/INVALIDARGUMENT                     
Apr 20 06:59:59 fridge systemd[1]: clamav-freshclam.service: Failed with result 
'exit-code'.


The permissions of /var/log/clamav/freshclam.log are 0640 clamav:adm; the 
parent directory is mode 0755 clamav:clamav.

Restarting the clamav-freshclam service makes the error go away.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: clamav-freshclam 0.103.2+dfsg-0ubuntu0.18.04.1
ProcVersionSignature: Ubuntu 4.15.0-142.146-generic 4.15.18
Uname: Linux 4.15.0-142-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.23
Architecture: amd64
Date: Tue Apr 20 13:39:47 2021
ProcEnviron:
 LC_CTYPE=lt_LT.UTF-8
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: clamav
UpgradeStatus: Upgraded to bionic on 2019-09-11 (586 days ago)

** Affects: clamav (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apparmor apport-bug bionic

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1925182

Title:
  ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check
  permissions!)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/clamav/+bug/1925182/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to