From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:18.104.22.168) Gecko/20061222 Firefox/22.214.171.124
Description of problem:
When yum-updatesd updates packages, it does not log to /var/log/yum.log. If I were to update using Yum through command line, changes to system packages are logged to /var/log/yum.log. I can check that some packages were updated by running the command "rpm -qa -last | head -n 10" which shows packages were updated.
Contents of /etc/yum/yum-updatesd.conf:
# how often to check for new updates (in seconds)
run_interval = 3600
# how often to allow checking on request (in seconds)
updaterefresh = 600
# how to send notifications (valid: dbus, email, syslog)
emit_via = syslog
syslog_facility = DAEMON
syslog_level = NOTICE
# automatically install updates
do_update = yes
# automatically download updates
do_download = yes
# automatically download deps of updates
do_download_deps = yes
Contents of /etc/yum.conf:
# We don't want to gpg-check local, unsigned packages
# Changed this because some mirrors go down and then
# re-trying takes forever.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Make sure yum-updatesd is running.
2. Wait for yum-updatesd to respond to an update.
yum-updatesd does not log updates to /var/log/yum.log.
yum-updatesd logs updates to /var/log/yum.log.
This also happens when yum is run like the old yum cron:
/usr/bin/yum -R 120 -e 0 -d 1 -y shell /etc/yum/yum-daily.yum
# cat /etc/yum/yum-daily.yum
No updates are logged to /var/log/yum.log.
This is with 3.0.3-1.fc6 (upgraded before the general update).
My symptom is exactly like Orion's, with the same yum version. Moreover, the
"Updated: " lines that as well appeared at /var/log/messages also stopped
appearing. In both files /var/log/yum/log and /var/log/messages the very last
"Updated: " line reads as follows:
Jan 16 04:31:49 Updated: yum.noarch 3.0.3-1.fc6
so it's apparent that the updating of this package caused further writes to
/var/log/yum.log and /var/log/messages to stop.
I am having the same problem as Orion's. yum stopped logging to
/var/log/yum.log after yum.noarch 3.0.3-1.fc6 was installed. However, if I run
yum manually, it writes to the log file.
In my original comment, I said "If I were to update using Yum through command
line, changes to system packages are logged to /var/log/yum.log". By "command
line", I meant manually entering a command such as "yum update somepackage"
manually to install/update/delete a package. I currently have yum-3.0.3-1.fc6
Having had the same issue (nothing in yum.log after 3.0.3-1 was installed) I
played around with this.
It seems that you need at least -d2 for yum to write anything to yum.log.
Unfortunately at this level it also spouts a load of other debugging information.
I too run yum from a cron job (with -e0 -d0 -y) and so don't want any debugging
output (unless it fails), but yum.log must be updated so I can track what's
actually gone on and so it can be picked up by logwatch.
Please can someone address this. I'm only using a cron job because updatesd
stopeed logging anywhere, and now it seems that command line yum is now
it's being looked into, now. I'll update here when we have a fix.
This should be fixed in the next release of yum.