clamav-daemon fails to start
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
clamav (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
lsb_release -rd
Description: Ubuntu 18.04.1 LTS
Release: 18.04
apt-cache policy clamav
clamav:
Installed: 0.100.1+
Expected clamav-daemon to be running.
What happens:
clamav-daemon fails to start
sudo systemctl status clamav-daemon
● clamav-
Loaded: loaded (/lib/systemd/
Active: failed (Result: exit-code) since Sat 2018-07-28 19:53:14 CDT; 6s ago
Docs: man:clamd(8)
https:/
Process: 3589 ExecStart=
Main PID: 3589 (code=exited, status=1/FAILURE)
Jul 28 19:53:04 Bionic-Desktop systemd[1]: Started Clam AntiVirus userspace daemon.
Jul 28 19:53:14 Bionic-Desktop clamd[3589]: Sat Jul 28 19:53:14 2018 -> !LOCAL: Could not create socket directory: /var/run/clamav: Permission denied
Jul 28 19:53:14 Bionic-Desktop clamd[3589]: Sat Jul 28 19:53:14 2018 -> !LOCAL: Socket file /var/run/
Jul 28 19:53:14 Bionic-Desktop clamd[3589]: Sat Jul 28 19:53:14 2018 -> !Can't unlink the socket file /var/run/
Jul 28 19:53:14 Bionic-Desktop systemd[1]: clamav-
Jul 28 19:53:14 Bionic-Desktop systemd[1]: clamav-
What other information can I provide?
I was able to fix this by copying /lib/systemd/ system/ clamav- daemon. service to /etc/systemd/ system/ clamav. service and adding the two lines: -/bin/mkdir /run/clamav /bin/chown clamav /run/clamav
ExecStartPre=
ExecStartPre=
to the top of the [Service] section.