Red Hat Bugzilla – Bug 1175434
Odd placement and no rotation of hawkey.log
Last modified: 2016-10-04 00:31:35 EDT
+++ This bug was initially created as a clone of Bug #1149350 +++
Bug 1148627 brought my attention to the file /var/cache/dnf/…/hawkey.log. I have two questions:
1. Is there any particular reason this log isn't placed in /var/log like all other logs. It would be much easier to find there.
2. Is this log not meant to be rotated/cleaned in any way? On my system it is currently well over 100MB, and seems to reach back almost a year. What about adding a /etc/logrotate.d/hawkey to rotate this at some convenient interval?
--- Additional comment from Jan Silhan on 2014-10-06 13:11:13 EDT ---
Hi Goran, good point, but this log is a bit tricky. "hawkey.log" is in sack's cache dir for each sack so the data are not merged from multiple sources. The depsolving output from libsolv should not be mixed by other proceses (PackageKit) to get valid debug info. The other usecase is when dnf developers ask users to compress and upload metadata cache dir we'll also get this log so we can see if sack was properly loaded.
--- Additional comment from Jan Silhan on 2014-10-08 16:09:16 EDT ---
Log file added to dnf logrotate script
--- Additional comment from Fedora Update System on 2014-12-09 09:06:28 EST ---
dnf-0.6.3-2.fc21,dnf-plugins-core-0.1.4-1.fc21,hawkey-0.5.2-1.fc21 has been submitted as an update for Fedora 21.
--- Additional comment from Fedora Update System on 2014-12-11 23:32:33 EST ---
Package dnf-0.6.3-2.fc21, hawkey-0.5.2-1.fc21, dnf-plugins-core-0.1.4-1.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-0.6.3-2.fc21 hawkey-0.5.2-1.fc21 dnf-plugins-core-0.1.4-1.fc21'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
--- Additional comment from Fedora Update System on 2014-12-13 04:53:34 EST ---
dnf-0.6.3-2.fc21, hawkey-0.5.2-1.fc21, dnf-plugins-core-0.1.4-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
Wouldn't it be better if the log was place in /var/log/dnf/<sack>-hawkey.log ?
This way we still have consolidation of log location, and identification of sack specific logs?
*** This bug has been marked as a duplicate of bug 1163438 ***
dnf-plugins-core-0.1.5-1.fc21,hawkey-0.5.3-2.fc21,dnf-0.6.4-1.fc21 has been submitted as an update for Fedora 21.
hawkey-0.5.3-2.fc21, dnf-plugins-core-0.1.5-1.fc21, dnf-0.6.4-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
*** Bug 1185642 has been marked as a duplicate of this bug. ***
*** Bug 1178002 has been marked as a duplicate of this bug. ***