Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Mail Server
  • Search

Beware of breaking ClamAV-daemon when you update Debian

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
dpeca
VestaCP Team
Posts: 473
Joined: Wed Nov 25, 2015 7:30 pm

Beware of breaking ClamAV-daemon when you update Debian
  • Quote

Post by dpeca » Wed Jun 29, 2016 1:31 pm

After update Debian 8.5, clamav-daemon has failed to start on all servers.

Code: Select all

root@mail:~# service clamav-daemon status
[x] clamav-daemon.service - Clam AntiVirus userspace daemon
   Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled)
   Active: failed (Result: start-limit) since Wed 2016-06-29 14:53:19 CEST; 17s ago
     Docs: man:clamd(8)
           man:clamd.conf(5)
           http://www.clamav.net/lang/en/doc/
  Process: 29660 ExecStart=/usr/sbin/clamd --foreground=true (code=exited, status=1/FAILURE)
 Main PID: 29660 (code=exited, status=1/FAILURE)

Jun 29 14:53:19 my.server.host systemd[1]: Started Clam AntiVirus userspace daemon.
Jun 29 14:53:19 my.server.host clamd[29660]: ERROR: Parse error at line 11: Unknown option AllowSupplementaryGroups
Jun 29 14:53:19 my.server.host clamd[29660]: ERROR: Can't open/parse the config file /etc/clamav/clamd.conf
Jun 29 14:53:19 my.server.host systemd[1]: clamav-daemon.service: main process exited, code=exited, status=1/FAILURE
Jun 29 14:53:19 my.server.host systemd[1]: Unit clamav-daemon.service entered failed state.
Jun 29 14:53:19 my.server.host systemd[1]: Starting Clam AntiVirus userspace daemon...
Jun 29 14:53:19 my.server.host systemd[1]: clamav-daemon.service start request repeated too quickly, refusing to start.
Jun 29 14:53:19 my.server.host systemd[1]: Failed to start Clam AntiVirus userspace daemon.
I edited /etc/clamav/clamd.conf and comment

Code: Select all

# AllowSupplementaryGroups
Also, fix permissions:

Code: Select all

chown -R clamav:clamav /var/run/clamav
At the end, start clamav:

Code: Select all

service clamav-daemon start
Not sure if commenting 'AllowSupplementaryGroups' will break something other, but I don't see other option right now.
I searched the net, nobody knows what is a substitution for this option.
If someone has better idea, please reply.
Top

Rayman
Posts: 4
Joined: Fri Aug 05, 2016 9:53 pm

Re: Beware of breaking ClamAV-daemon when you update Debian
  • Quote

Post by Rayman » Thu Aug 11, 2016 12:06 pm

For reference: https://bugs.debian.org/cgi-bin/bugrepo ... bug=826406
Top

dpeca
VestaCP Team
Posts: 473
Joined: Wed Nov 25, 2015 7:30 pm

Re: Beware of breaking ClamAV-daemon when you update Debian
  • Quote

Post by dpeca » Fri Aug 12, 2016 4:10 pm

He said they fixed this bug on 06 Jun.
I noticed a bug on 29 Jun, with freshly updated and latest Debian.
I'm confused :)

However, they 'fixed' a bug by ignoring option, so, there is no better solution obviously.
Top

dpeca
VestaCP Team
Posts: 473
Joined: Wed Nov 25, 2015 7:30 pm

Re: Beware of breaking ClamAV-daemon when you update Debian
  • Quote

Post by dpeca » Mon Aug 15, 2016 2:40 am

Freshly installed Debian, updated, and bug is still there.

# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

# cat /etc/debian_version
8.5

# service clamav-daemon status
...
Aug 15 02:55:50 mail.****.rs clamd[1780]: ERROR: Parse error at line 11: Unknown option AllowSupplementaryGroups
Aug 15 02:55:50 mail.****.rs clamd[1780]: ERROR: Can't open/parse the config file /etc/clamav/clamd.conf
Top

Mavashi
Posts: 3
Joined: Sun Aug 21, 2016 1:30 am

Re: Beware of breaking ClamAV-daemon when you update Debian
  • Quote

Post by Mavashi » Sun Aug 21, 2016 1:33 am

Thank you very much! I've recovered my clamav by commenting this AllowSupplementaryGroups.
Top

baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

Re: Beware of breaking ClamAV-daemon when you update Debian
  • Quote

Post by baijianpeng » Tue Sep 27, 2016 3:34 pm

dpeca wrote: I edited /etc/clamav/clamd.conf and comment

Code: Select all

# AllowSupplementaryGroups
Today I also have problem: my clamav will not run!

After I used your trick ( I just set AllowSupplementaryGroups to "no" ), clamd runs properly!

Thank you.
Top


Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “Mail Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password