Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
1.1.1
-
None
Description
This is actually in version 1.1.1, but I don't see that as an option in the "Affects Version/s" drop-down.
Maybe it's due to its use of systemd, but MaxScale's init script doesn't work very well on CentOS 7. The output seems to be wrong or confusing much of the time.
"start" says it succeeds even if it fails:
[gmontee@localhost ~]$ sudo /etc/init.d/maxscale start
|
Starting maxscale (via systemctl): [ OK ]
|
[gmontee@localhost ~]$ ps -elf | grep "maxscale"
|
0 R gmontee 12149 10911 0 80 0 - 28160 - 16:32 pts/0 00:00:00 grep --color=auto maxscale
|
"status" output is kind of confusing. it seems to indicate that the process is running when it isn't, and also tries to start the process again if it isn't running:
[gmontee@localhost ~]$ sudo /etc/init.d/maxscale status
|
Checking MaxScale status: maxscale.service - LSB: The maxscale database proxy
|
Loaded: loaded (/etc/rc.d/init.d/maxscale)
|
Active: active (exited) since Mon 2015-06-08 15:59:03 EDT; 34min ago
|
Process: 4747 ExecStart=/etc/rc.d/init.d/maxscale start (code=exited, status=0/SUCCESS)
|
|
Jun 08 15:59:01 localhost.localdomain systemd[1]: Starting LSB: The maxscale database proxy...
|
Jun 08 15:59:01 localhost.localdomain MaxScale[4751]: Warning : Failed to read the configuration file /usr/local/mariadb-maxscale/etc/MaxScale.cnf due to 2, No such file or directory.
|
Jun 08 15:59:03 localhost.localdomain maxscale[4747]: Starting MaxScale: [FAILED]
|
Jun 08 15:59:03 localhost.localdomain systemd[1]: Started LSB: The maxscale database proxy.
|
Jun 08 15:59:07 localhost.localdomain systemd[1]: Started LSB: The maxscale database proxy.
|
Jun 08 16:24:05 localhost.localdomain systemd[1]: Started LSB: The maxscale database proxy.
|
Jun 08 16:32:10 localhost.localdomain systemd[1]: Started LSB: The maxscale database proxy.
|
Jun 08 16:32:50 localhost.localdomain systemd[1]: Started L[ OK ]maxscale database proxy.
|
[gmontee@localhost ~]$ ps -elf | grep "maxscale"
|
0 R gmontee 12175 10911 0 80 0 - 28160 - 16:34 pts/0 00:00:00 grep --color=auto maxscale
|
Adding the configuration and trying again:
[gmontee@localhost ~]$ sudo cp /usr/local/mariadb-maxscale/etc/MaxScale_template.cnf /usr/local/mariadb-maxscale/etc/MaxScale.cnf
|
[gmontee@localhost ~]$ sudo /etc/init.d/maxscale start
|
Starting maxscale (via systemctl): [ OK ]
|
[gmontee@localhost ~]$ sudo /etc/init.d/maxscale status
|
Checking MaxScale status: maxscale.service - LSB: The maxscale database proxy
|
Loaded: loaded (/etc/rc.d/init.d/maxscale)
|
Active: active (exited) since Mon 2015-06-08 15:59:03 EDT; 40min ago
|
Process: 4747 ExecStart=/etc/rc.d/init.d/maxscale start (code=exited, status=0/SUCCESS)
|
|
Jun 08 15:59:01 localhost.localdomain systemd[1]: Starting LSB: The maxscale database proxy...
|
Jun 08 15:59:01 localhost.localdomain MaxScale[4751]: Warning : Failed to read the configuration file /usr/local/mariadb-maxscale/etc/MaxScale.cnf due to 2, No such file or directory.
|
Jun 08 15:59:03 localhost.localdomain maxscale[4747]: Starting MaxScale: [FAILED]
|
Jun 08 15:59:03 localhost.localdomain systemd[1]: Started LSB: The maxscale database proxy.
|
Jun 08 15:59:07 localhost.localdomain systemd[1]: Started LSB: The maxscale database proxy.
|
Jun 08 16:24:05 localhost.localdomain systemd[1]: Started LSB: The maxscale database proxy.
|
Jun 08 16:32:10 localhost.localdomain systemd[1]: Started LSB: The maxscale database proxy.
|
Jun 08 16:32:50 localhost.localdomain systemd[1]: Started LSB: The maxscale database proxy.
|
Jun 08 16:37:49 localhost.localdomain systemd[1]: Started LSB: The maxscale database proxy.
|
Jun 08 16:39:04 localhost.localdomain systemd[1]: Started L[ OK ]maxscale database proxy.
|
[gmontee@localhost ~]$ sudo ls -l /usr/local/mariadb-maxscale/etc/
|
total 20
|
-rw-r--r--. 1 root root 3322 May 15 09:47 MaxScale_BinlogServer_template.cnf
|
-rw-r--r--. 1 root root 8050 Jun 8 16:38 MaxScale.cnf
|
-rw-r--r--. 1 root root 8050 May 15 09:47 MaxScale_template.cnf
|
[gmontee@localhost ~]$ ps -elf | grep "maxscale"
|
0 R gmontee 12350 10911 0 80 0 - 28160 - 16:40 pts/0 00:00:00 grep --color=auto maxscale
|