[Piuparts-devel] [Git][debian/piuparts][develop] bug-templates/logrotate_exits_with_error_after_package_removal: clarify the cause of this problem.

Holger Levsen holger at layer-acht.org
Thu Dec 6 13:05:25 GMT 2018


Hi Andreas,

On Wed, Dec 05, 2018 at 02:02:04AM +0100, Andreas Beckmann wrote:
> I think the common cause for this error is no logfile being present
> because the daemon/application/whatever was never run.
> Which will already cause logrotate noise if the package is still installed.
> 
> Could you add something about this as well, and mention a possible
> solution? (IIRC there is a missing=ok or similar keyword.)

slightly surprised you didnt just do it by yourself, but here you go:

$ git log -p -1
commit 50807bd57c575ef2f7437f8d83eab43b0a5b1d0f
Author: Holger Levsen <holger at layer-acht.org>
Date:   Thu Dec 6 14:03:59 2018 +0100

    bug-templates/logrotate_exits_with_error_after_package_removal: explain 2nd possible cause and solution
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>

diff --git a/bug-templates/logrotate_exits_with_error_after_package_removal.mail b/bug-templates/logrotate_exits_with_error_after_package_removal.mail
index 88bec865..838d6848 100644
--- a/bug-templates/logrotate_exits_with_error_after_package_removal.mail
+++ b/bug-templates/logrotate_exits_with_error_after_package_removal.mail
@@ -10,8 +10,12 @@ Usertags: piuparts
 Hi,
 
 during a test with piuparts I noticed your package's logrotate configuration
-causes logrotate to exit with an error after the package has been removed.
-(logrotate configuration files remain installed and executed after a package
+causes logrotate to exit with an error after the package has been removed (*) or
+when logrote is run but no logfile exists.
+
+Usually the solution is to specify 'missingok' in the logrotate configuration.
+
+*) logrotate configuration files remain installed and executed after a package
 has been removed, they only get removed when the package is purged.
 
 From the attached log (scroll to the bottom...):
diff --git a/debian/changelog b/debian/changelog
index 9044b550..131b30a4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -25,7 +25,7 @@ piuparts (0.95) UNRELEASED; urgency=medium
     uses-dpkg-database-directly warnings, after confirming we are not doing
     that.
   * bug-templates/logrotate_exits_with_error_after_package_removal: clarify
-    the cause of this problem.
+    possibles causes of this problem as well as the solution.
 
   [ Andreas Beckmann ]
   * Clarify errors from installing objects over existing symlinks.


Thanks!

-- 
cheers,
	Holger

-------------------------------------------------------------------------------
               holger@(debian|reproducible-builds|layer-acht).org
       PGP fingerprint: B8BF 5413 7B09 D35C F026 FE9D 091A B856 069A AA1C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/piuparts-devel/attachments/20181206/dfefa6c8/attachment.sig>


More information about the Piuparts-devel mailing list