Red Hat Bugzilla – Bug 863303
missing dependency "clamav-server-sysvinit" required
Last modified: 2013-08-01 07:03:06 EDT
Description of problem:
clamav.amavisd.service fails to start because the dependency clamav-server-sysvinit isn't actually a dependency of the package.
systemctl start clamd.amavisd:
clamd.amavisd: /etc/rc.d/init.d/clamd.amavisd: line 7: /usr/share/clamav/clamd-wrapper: No such file or directory
Oct 5 05:07:55 minipixia systemd: clamd.amavisd.service: control process exited, code=exited status=1
Oct 5 05:07:55 minipixia systemd: Unit clamd.amavisd.service entered failed state.
yum provides /usr/share/clamav/clamd-wrapper:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install clamav-update
2. Try to start it
reassigning to amavis...
I also experienced this bug following a restart of the server. The fix was to do:
# yum install clamav-server-sysvinit
Log errors before the install
Oct 11 23:02:12 mailgw amavis: (10659-04) (!)ClamAV-clamd: Can't connect to UNIX socket /var/spool/amavisd/clamd.sock: No such file or directory, retrying (2)
Oct 11 23:02:15 mailgw amavis: (10658-04) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/spool/amavisd/clamd.sock (Can't connect to UNIX socket /var/spool/amavisd/clamd.sock: No such file or directory) at (eval 86) line 375.\n
Oct 11 23:02:15 mailgw amavis: (10658-04) (!!)WARN: all primary virus scanners failed, considering backups
Oct 11 23:02:18 mailgw amavis: (10659-04) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/spool/amavisd/clamd.sock (Can't connect to UNIX socket /var/spool/amavisd/clamd.sock: No such file or directory) at (eval 86) line 375.\n
Oct 11 23:02:18 mailgw amavis: (10659-04) (!!)WARN: all primary virus scanners failed, considering backups
Prior to the install
# service clamd.amavisd start
/etc/init.d/clamd.amavisd: line 7: /usr/share/clamav/clamd-wrapper: No such file or directory
# ls /usr/share/clamav/
# yum list | grep clam
clamav.x86_64 0.97.6-1700.fc17 @anaconda-0
clamav-data.noarch 0.97.6-1700.fc17 @anaconda-0
clamav-filesystem.noarch 0.97.6-1700.fc17 @anaconda-0
clamav-lib.x86_64 0.97.6-1700.fc17 @anaconda-0
clamav-milter.x86_64 0.97.6-1700.fc17 @anaconda-0
clamav-milter-systemd.noarch 0.97.6-1700.fc17 @anaconda-0
clamav-server.x86_64 0.97.6-1700.fc17 @anaconda-0
clamav-update.x86_64 0.97.6-1700.fc17 @anaconda-0
clamav-data-empty.noarch 0.97.6-1700.fc17 updates
clamav-devel.i686 0.97.6-1700.fc17 updates
clamav-devel.x86_64 0.97.6-1700.fc17 updates
clamav-lib.i686 0.97.6-1700.fc17 updates
clamav-milter-upstart.noarch 0.97.6-1700.fc17 updates
clamav-scanner.noarch 0.97.6-1700.fc17 updates
clamav-scanner-systemd.noarch 0.97.6-1700.fc17 updates
clamav-scanner-upstart.noarch 0.97.6-1700.fc17 updates
clamav-server-systemd.noarch 0.97.6-1700.fc17 updates
clamav-server-sysvinit.noarch 0.97.6-1700.fc17 updates
clamav-unofficial-sigs.noarch 3.7.1-7.fc17 updates
clamsmtp.x86_64 1.10-9.fc17 updates
clamtk.noarch 4.42-1.fc17 updates
clamz.x86_64 0.5-1.fc17 fedora
claws-mail-plugins-clamd.x86_64 3.8.1-1.fc17 updates
exim-clamav.x86_64 4.76-8.fc17 fedora
exim-clamav-sysvinit.noarch 4.76-8.fc17 fedora
# systemctl start email@example.com
Failed to issue method call: Unit firstname.lastname@example.org failed to load: No such file or directory. See system logs and 'systemctl status email@example.com' for details.
Post install firstname.lastname@example.org starts normally.
I also ran into this bug. I had installed amavisd-new (on Fedora 18), which pulled in several clam dependencies, but missed this one on clamav-server-sysvinit. As a result amavis was throwing warnings like:
amavis: (12756-03) (!)connect to /var/spool/amavisd/clamd.sock failed, attempt #1: Can't connect to UNIX socket /var/spool/amavisd/clamd.sock: No such file or directory
With the large number of clam packages (and some with buggy package descriptions), it was a challenge to figure out what was needed to resolve the above error message. Fortunately I decided to check BZ before putting too much work into the diagnosis as this bug report gave me just the answer I needed:
yum install clamav-server-sysvinit
systemctl start clamd.amavisd.service
With that simple task done, now amavis can talk to clamd successfully. Seems like this should be an easy bug to fix that would make this common setup very easy for people -- it's so close now, especially compared to what it used to require!
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora
'version' of '17'.
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version prior to Fedora 17's end of life.
Bug Reporter: Thank you for reporting this issue and we are sorry that
we may not be able to fix it before Fedora 17 is end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged change the
'version' to a later Fedora version prior to Fedora 17's end of life.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
Fedora 17 changed to end-of-life (EOL) status on 2013-07-30. Fedora 17 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version.
Thank you for reporting this bug and we are sorry it could not be fixed.