Your message dated Tue, 8 Nov 2011 17:53:47 +0100
with message-id <20111108165347.GF2599@localhost>
and subject line Re: Bug#640327: creates empty files
unattended-upgrades-dpkg_*.log if no upgrades are available
has caused the Debian Bug report #640327,
regarding creates empty files unattended-upgrades-dpkg_*.log if no upgrades are
available
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
640327: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=640327
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: unattended-upgrades
Version: 0.72.3
Severity: minor
Dear Maintainer,
A few lines from todays u-a run:
==> /var/log/unattended-upgrades/unattended-upgrades.log <==
2011-09-04 14:03:31,971 INFO Initial blacklisted packages:
2011-09-04 14:03:31,972 INFO Starting unattended upgrades script
2011-09-04 14:03:31,972 INFO Allowed origins are: ['o=Debian,a=unstable']
2011-09-04 14:03:34,530 INFO Packages that are auto removed: ''
2011-09-04 14:03:34,531 INFO Packages that are upgraded:
2011-09-04 14:03:34,531 INFO Writing dpkg log to
'/var/log/unattended-upgrades/unattended-upgrades-dpkg_2011-09-04_14:03:34.531683.log'
2011-09-04 14:03:36,752 INFO All upgrades installed
However, there were no available upgrades but an empty log file was created.
Thanks
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (100, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.0.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages unattended-upgrades depends on:
ii apt 0.8.15.6
ii apt-utils 0.8.15.6
ii debconf [debconf-2.0] 1.5.41
ii lsb-release 3.2-28
ii python 2.6.7-3
ii python-apt 0.8.0
ii ucf 3.0025+nmu2
unattended-upgrades recommends no packages.
Versions of packages unattended-upgrades suggests:
pn bsd-mailx <none>
-- Configuration Files:
/etc/apt/apt.conf.d/50unattended-upgrades changed:
// Automatically upgrade packages from these (origin, archive) pairs
Unattended-Upgrade::Origins-Pattern {
"o=Debian,a=unstable";
// "origin=Debian,label=Debian-Security,archive=stable";
// "o=Debian,a=stable";
// "o=Debian,a=oldstable";
// "o={distro_id},a=${distro_codename}-proposed-updates";
};
// List of packages to not update
Unattended-Upgrade::Package-Blacklist {
// "vim";
// "libc6";
// "libc6-dev";
// "libc6-i686";
};
// This option allows you to control if on a unclean dpkg exit
// unattended-upgrades will automatically run
// dpkg --force-confold --configure -a
// The default is true, to ensure updates keep getting installed
//Unattended-Upgrade::AutoFixInterruptedDpkg "false";
// Split the upgrade into the smallest possible chunks so that
// they can be interrupted with SIGUSR1. This makes the upgrade
// a bit slower but it has the benefit that shutdown while a upgrade
// is running is possible (with a small delay)
//Unattended-Upgrades::MinimalSteps "true";
// Send email to this address for problems or packages upgrades
// If empty or unset then no email is sent, make sure that you
// have a working mail setup on your system. The package 'mailx'
// must be installed or anything that provides /usr/bin/mail.
Unattended-Upgrade::Mail "root";
// Set this value to "true" to get emails only on errors. Default
// is to always send a mail if Unattended-Upgrade::Mail is set
//Unattended-Upgrade::MailOnlyOnError "true";
// Do automatic removal of new unused dependencies after the upgrade
// (equivalent to apt-get autoremove)
Unattended-Upgrade::Remove-Unused-Dependencies "true";
// Automatically reboot *WITHOUT CONFIRMATION* if a
// the file /var/run/reboot-required is found after the upgrade
//Unattended-Upgrade::Automatic-Reboot "false";
// Use apt bandwidth limit feature, this example limits the download
// speed to 70kb/sec
//Acquire::http::Dl-Limit "70";
-- debconf information:
* unattended-upgrades/enable_auto_updates: true
--- End Message ---
--- Begin Message ---
On Mon, Sep 19, 2011 at 06:26:19PM +0300, Teodor MICU wrote:
> Hi,
>
> 2011/9/19 Michael Vogt <m...@debian.org>:
> >> 2011-09-04 14:03:34,531 INFO Packages that are upgraded:
> >> 2011-09-04 14:03:34,531 INFO Writing dpkg log to
> >> '/var/log/unattended-upgrades/unattended-upgrades-dpkg_2011-09-04_14:03:34.531683.log'
> >> 2011-09-04 14:03:36,752 INFO All upgrades installed
> >>
> >> However, there were no available upgrades but an empty log file was
> >> created.
> >
> > Did it mention anything about packages being kept back in the logs?
>
> I reproduced this again right now because there are 0 upgrades after
> today's automatic run (via cron). What I've sent you is all I get. The
> above lines where from the short log (u-a.log), the specific log with
> the timestamp is an empty file.
>
> > Looking at the code this appears to be the a case when it can write
> > this empty log file. If that is the case, I will add some code to fix
> > it.
[..]
This should be fixed in the 0.74 version, no more empty dpkg log file if
nothing needs upgrading.
Cheers,
Michael
--- End Message ---