[Bug 1883489] Re: Logrotate failed to start in LUbuntu 20.04

2020-06-24 Thread Andreas Hasenack
** Package changed: samba (Ubuntu) => mysql-8.0 (Ubuntu)

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

Title:
  Logrotate failed to start in LUbuntu 20.04

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1883489] Re: Logrotate failed to start in LUbuntu 20.04

2020-06-24 Thread Viktor Mileikovskyi
This problem is related to MYSQL. The privileges of 'debian-sys-maint' user are 
too scanty.
The workaround is found at 
http://hobbymods.ru/article/linux/osibka-error-running-shared-postrotate-script-for-varlogmysqllog-varlogmysqlmysq
 with some changes due to the modern syntax:

1. Get the password for user 'debian-sys-maint':
  sudo grep -m 1 password /etc/mysql/debian.cnf | cut -d" " -f3
The password should be displayed. Copy it

2. Configure MySQL:
  sudo mysql --user=root mysql

2.1. In MYSQL environment set the propper password
  ALTER USER 'debian-sys-maint'@'localhost' IDENTIFIED BY 'Paste the copied 
password';
  flush privileges;

2.2. Reconfigure the user privileges:
  GRANT RELOAD, SHUTDOWN, PROCESS, SHOW DATABASES, SUPER, LOCK
  TABLES ON *.* TO 'debian-sys-maint'@'localhost';
  flush privileges;
  exit

3. Test the operation. Should be OK (no output)
sudo logrotate -f /etc/logrotate.conf

I did not check, is the password proper by default (now it is
impossible). If yes, only steps 2.2 and 3 are necessary. It can be
tested only before step 2.1.

If the settings for 'debian-sys-maint' are secure, they should be set by
default at the installation of (L/K/X)Ubunutu 20.04. If the settings are
vulnerable, another solution should be found.

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

Title:
  Logrotate failed to start in LUbuntu 20.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1883489/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1883489] Re: Logrotate failed to start in LUbuntu 20.04

2020-06-24 Thread Viktor Mileikovskyi
After some weeks, logrotate failed with different error caused by MYSQL:

● logrotate.service - Rotate log files
 Loaded: loaded (/lib/systemd/system/logrotate.service; static; vendor 
preset: enabled)
 Active: failed (Result: exit-code) since Wed 2020-06-24 08:29:59 EEST; 44s 
ago
TriggeredBy: ● logrotate.timer
   Docs: man:logrotate(8)
 man:logrotate.conf(5)
Process: *** ExecStart=/usr/sbin/logrotate /etc/logrotate.conf 
(code=exited, status=1/FAILURE)
   Main PID: *** (code=exited, status=1/FAILURE)

Jun 24 08:29:56  systemd[*]: Starting Rotate log files...
Jun 24 08:29:59  logrotate[***]: error: error running shared postrotate 
script for '/var/log/mysql.log /var/log/mysql/*log '
Jun 24 08:29:59  systemd[*]: logrotate.service: Main process exited, 
code=exited, status=1/FAILURE
Jun 24 08:29:59  systemd[*]: logrotate.service: Failed with result 
'exit-code'.
Jun 24 08:29:59  systemd[*]: Failed to start Rotate log files.

(Hostname and PIDs are replaced by *)

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

Title:
  Logrotate failed to start in LUbuntu 20.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1883489/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1883489] Re: Logrotate failed to start in LUbuntu 20.04

2020-06-19 Thread Brian Murray
** Package changed: logrotate (Ubuntu) => samba (Ubuntu)

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

Title:
  Logrotate failed to start in LUbuntu 20.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1883489/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1883489] Re: Logrotate failed to start in LUbuntu 20.04

2020-06-15 Thread Ubuntu Foundations Team Bug Bot
The attachment "The corrected file in /etc/logrotate.d" seems to be a
patch.  If it isn't, please remove the "patch" flag from the attachment,
remove the "patch" tag, and if you are a member of the ~ubuntu-
reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issues please contact him.]

** Tags added: patch

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

Title:
  Logrotate failed to start in LUbuntu 20.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/logrotate/+bug/1883489/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1883489] Re: Logrotate failed to start in LUbuntu 20.04

2020-06-15 Thread Balint Harmath
Nice writing down of the problem. Solution is also provided. Details are
also provided for the bug fixer.

** Changed in: logrotate (Ubuntu)
   Status: New => Confirmed

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

Title:
  Logrotate failed to start in LUbuntu 20.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/logrotate/+bug/1883489/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1883489] Re: Logrotate failed to start in LUbuntu 20.04

2020-06-15 Thread Viktor Mileikovskyi
** Attachment added: "Original file "samba" in /etc/logrotate.d"
   
https://bugs.launchpad.net/ubuntu/+source/logrotate/+bug/1883489/+attachment/5383901/+files/samba

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

Title:
  Logrotate failed to start in LUbuntu 20.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/logrotate/+bug/1883489/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs