Bug 253245 - databases/mysql80-server: unknown user 'mysqlrouter'
Summary: databases/mysql80-server: unknown user 'mysqlrouter'
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jochen Neumeister
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-04 11:31 UTC by Helmut Ritter
Modified: 2021-02-04 11:31 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (joneum)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Ritter 2021-02-04 11:31:58 UTC
mysql80-server installs etc/logrotate.d/mysqlrouter. Content:

/var/log/mysqlrouter/mysqlrouter.log {
        create 600 mysqlrouter mysqlrouter
        notifempty
        daily
        rotate 5
        missingok
        compress
    postrotate
      # only if mysqlrouter is really running
      if [ -f "/var/run/mysqlrouter/mysqlrouter.pid" ]
      then
        kill -HUP `cat /var/run/mysqlrouter/mysqlrouter.pid`
      fi
    endscript
}

Problem: mysqlrouter:mysqlrouter is not created during installtion resulting in:

error: mysqlrouter:32 unknown user 'mysqlrouter'
error: found error in /var/log/mysqlrouter/mysqlrouter.log , skipping

Solution: create mysqlrouter:mysqlrouter during installation.