Bug #96036 | Service mysqlrouter starts but process exited | ||
---|---|---|---|
Submitted: | 30 Jun 2019 19:00 | Modified: | 23 Aug 2019 11:53 |
Reporter: | Vladmi Ivanochkenzoprano | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Router | Severity: | S2 (Serious) |
Version: | 8.0.16 for Linux on x86_64 | OS: | Ubuntu (18.04.2 LTS (GNU/Linux 4.15.0-52-generic x86_64)) |
Assigned to: | MySQL Verification Team | CPU Architecture: | x86 |
[30 Jun 2019 19:00]
Vladmi Ivanochkenzoprano
[1 Jul 2019 13:40]
MySQL Verification Team
Hi, Have you tried using our binaries: https://dev.mysql.com/downloads/router/ I'm not reproducing this issue with our binearies thanks bogdan
[7 Jul 2019 11:11]
Vladmi Ivanochkenzoprano
Anyway it may not work if you are install it using simple few steps: 1. wget https://dev.mysql.com/get/mysql-apt-config_0.8.13-1_all.deb 2. dpkg -i mysql-apt-config_0.8.13-1_all.deb 3. apt-get update 4. apt-get install mysql-router After that, router has been installed successfully, but daemon not works.
[23 Jul 2019 11:53]
MySQL Verification Team
Hi, weird, I'm not reproducing the problem, I'm using 19.04, but should behave identically. Can you upload the log file? thanks Bogdan
[15 Aug 2019 10:05]
Eric van Es
I had the same problem on Debian. My problem was that I ran the bootstrap as root user. This was set in the configuration file /etc/mysqlrouter/mysqlrouter.conf: user=root (as is in yours) /etc/init.d/mysqlrouter wants to run the service as user mysqlrouter (start-stop-daemon is called with --chuid mysqlrouter). This creates a problem; mysqlrouter is started as that user, but tries to change to user root which is obviously not going to work. I changed in /etc/mysqlrouter/mysqlrouter.conf the user to mysqlrouter and all was well in my setup.
[24 Aug 2019 1:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[22 Sep 2020 5:40]
Henry Chen
Using this command is normal. sudo mysqlrouter --user=mysqlrouter --bootstrap root@192.168.30.241:3306 --conf-use-sockets --report-host localhost --force