Bug 1660995 - Installing clamav-unofficial-sigs results in spam from failed cron job
Summary: Installing clamav-unofficial-sigs results in spam from failed cron job
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: clamav-unofficial-sigs
Version: 29
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Didier Fabert (tartare)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-19 19:30 UTC by Jason Tibbitts
Modified: 2019-01-10 21:24 UTC (History)
4 users (show)

Fixed In Version: clamav-unofficial-sigs-5.6.2-3.fc28 clamav-unofficial-sigs-5.6.2-3.fc29 clamav-unofficial-sigs-5.6.2-3.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-01-01 01:39:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jason Tibbitts 2018-12-19 19:30:12 UTC
Description of problem:

The new version clamav-unofficial-sigs installs a cron job to actually do the update.  (It seems to install a systemd timer unit as well, which is odd but doesn't cause the immediate problem.)  /etc/clamav-unofficial-sigs/os.conf includes the following line:

clamd_restart_opt="systemctl restart clamd@scan"

This results in semi-hourly emails from cron:

Subject: Cron <root@mx1> [ -x /usr/sbin/clamav-unofficial-sigs.sh ] && /usr/bin/bash /usr/sbin/clamav-unofficial-sigs.sh > /dev/null

Job for clamd failed because the control process exited with error code.
See "systemctl status clamd" and "journalctl -xe" for details.

I don't and have never used the clamd@scan service; clamav is installed on these machines to scan incoming email and an instance for that is started via the clamd.exim service.

Using "systemctl try-restart clamd@scan" may be more useful; at least it shouldn't  error out if the clamd@scan service isn't already running.  I have set things up that way now and so far it's at least not spamming me.

Also, looking at the systemd timer that's installed.... I think it would just automatically activate if the clamd@scan service is enabled.  That seems like it would actually get run twice in that case, which seems odd and probably unwanted.  I would suggest either dropping that timer unit or dropping the cron job and changing the WantedBy= line to WantedBy=timers.target so that the thing runs independently of clamd@scan.

Comment 1 Jan ONDREJ 2018-12-20 06:38:19 UTC
+1 for me

Didier, can you please fix this as you suggested for me by email?

And also can you please make an update with yara rules disabled.

And also thid logrotate thing.

If you wish, I can fill bug reports for all of them.

Thank you.

Comment 2 Fedora Update System 2018-12-23 17:49:40 UTC
clamav-unofficial-sigs-5.6.2-3.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-e496be9ece

Comment 3 Fedora Update System 2018-12-23 17:51:46 UTC
clamav-unofficial-sigs-5.6.2-3.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-e76e2df5ea

Comment 4 Fedora Update System 2018-12-23 17:52:38 UTC
clamav-unofficial-sigs-5.6.2-3.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-4b8c08af4d

Comment 5 Fedora Update System 2018-12-24 01:18:03 UTC
clamav-unofficial-sigs-5.6.2-3.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-e496be9ece

Comment 6 Fedora Update System 2018-12-24 04:19:28 UTC
clamav-unofficial-sigs-5.6.2-3.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-e76e2df5ea

Comment 7 Fedora Update System 2018-12-24 06:03:33 UTC
clamav-unofficial-sigs-5.6.2-3.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-4b8c08af4d

Comment 8 Fedora Update System 2019-01-01 01:39:50 UTC
clamav-unofficial-sigs-5.6.2-3.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2019-01-01 02:55:27 UTC
clamav-unofficial-sigs-5.6.2-3.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2019-01-10 21:24:48 UTC
clamav-unofficial-sigs-5.6.2-3.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.