Thank you for taking the time to report this bug and helping to make
Ubuntu better. I particularly appreciate the merge request - this makes
it much easier to assess and review.

Originally I thought this was an obviously correct fix. Now I'm not so
sure.

logrotate -f /etc/logrotate.conf -> does not produce the warning

logrotate -f /etc/logrotate.d/mysql-server -> does produce the warning

The logrotate.d/ snippets are included via /etc/logrotate.conf using an
include directive. So the real configuration file does have a "su root
adm" directive that prevents the warning from appearing. That directive
sets the defaults for all the logrotate.d/ snippets.

Therefore I don't think "logrotate -f /etc/logrotate.d/mysql-server"
uses an entry point that is defined to work. I understand it's useful
for testing and development of course, so perhaps there could be some
improvement made there for logrotate in general, but I don't think that
makes this a bug in MySQL packaging.

There are other files in logrotate.d/ (for example dpkg) that also
appear to follow this pattern: they don't all define their own "su"
directives and also rotate files directly under /var/log/.

Therefore I don't think this is a bug, so am marking this as Invalid and
am closing the merge request. If you think I'm wrong then please comment
and then reopen the bug.

** Changed in: mysql-8.0 (Ubuntu)
       Status: Triaged => Invalid

** Changed in: mysql-5.5 (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1558471

Title:
  logrotate config mysql-server fails with error "error: skipping
  "/var/log/mysql.log"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mysql-5.5/+bug/1558471/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to