Bug 253245 - databases/mysql80-server: unknown user 'mysqlrouter'
Summary: databases/mysql80-server: unknown user 'mysqlrouter'
Status: In Progress
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: 2024-03-18 20:37 UTC (History)
7 users (show)

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.
Comment 1 Alessandro Sagratini 2021-05-21 14:29:16 UTC
+1 I'm also using mysql 8.0 and hitting the same issue
Comment 2 Jochen Neumeister freebsd_committer freebsd_triage 2021-08-26 21:28:01 UTC
does the problem still exist?
Comment 3 Helmut Ritter 2021-08-30 09:30:27 UTC
Yes.
Comment 4 Mateusz Piotrowski freebsd_committer freebsd_triage 2023-11-13 18:34:47 UTC
(In reply to Helmut Ritter from comment #3)
If the problem is still present, we probably need to add mysqlrouter to UIDs and GIDs files and then add mysqlrouter to USERS and GROUPS variables in the port's Makefile.
Comment 5 Kartikaya Gupta 2024-03-03 04:01:40 UTC
Problem is still present (freebsd 14.0-RELEASE-p5 with mysql81-server-8.1.0, which I think is the latest available)