[MXS-563] Maxscale fails to start Created: 2016-01-31 Updated: 2016-02-29 Resolved: 2016-02-29 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | readwritesplit |
| Affects Version/s: | None |
| Fix Version/s: | 1.4.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | INNOVOT | Assignee: | markus makela |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
CentOS 7 |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
Installed MaxScale 1.3 but when attemping to start it fails. In the log file I see: MariaDB Corporation MaxScale /var/log/maxscale/maxscale1.log Sun Jan 31 21:20:18 2016 Though if I attempt to connect from the command line it works fine: [root@dlb01 /]# mysql -h 10.3.10.82 -u dlb03_bhs -p Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> What could be wrong ? |
| Comments |
| Comment by INNOVOT [ 2016-01-31 ] | ||
|
Used the following to create the grants: create user 'dlb01_bhs'@'10.3.10.86' identified by '<SECRET>'; | ||
| Comment by markus makela [ 2016-02-01 ] | ||
|
Looking at the grants alone, it seems the SHOW DATABASES permission is missing. For more details, read the section about creating database users in the MaxScale Tutorial. The error log does state that the connection was actively refused which suggests that there's something wrong with the grants. I would make sure that MaxScale's host is 10.3.10.86 and that the grants are given to the right host. | ||
| Comment by INNOVOT [ 2016-02-01 ] | ||
|
Hello Markus, I created a brand new user according to that tutorial: create user 'maxscale_bhs'@'10.3.10.86' identified by '<secret>'; and the problem persists. Thank you. | ||
| Comment by markus makela [ 2016-02-01 ] | ||
|
Can you attach the maxscale.cnf file you used? The services and monitors needs to be configured with user=maxscale_bhs with the appropriate password. In addition to this, when connecting from the machine MaxScale is on to all databases, the SELECT USER() output must match maxscale_bhs@10.3.10.86. | ||
| Comment by INNOVOT [ 2016-02-01 ] | ||
|
As requested. | ||
| Comment by markus makela [ 2016-02-01 ] | ||
|
The configuration looks correct and if the maxscale_bhs user has the appropriate grants, it should work. Just to be sure, can you confirm that from the mysql command line doing a SELECT USER() shows the right user and hostname? | ||
| Comment by INNOVOT [ 2016-02-01 ] | ||
|
[root@dlb01 /]# mysql -u maxscale_bhs -h 10.3.10.80 -p Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> select user();
-------------------------
------------------------- | ||
| Comment by markus makela [ 2016-02-04 ] | ||
|
Are you using password encryption? I'm thinking that there's a possibility that the password is being decrypted into the wrong password. | ||
| Comment by INNOVOT [ 2016-02-04 ] | ||
|
No, the passwords are clear text in maxscale.cnf. Should add that this configuration is being used on our other site without any issue though using different username/password combination. The six nodes are all within the same Galera cluster. Three at primary site and three at secondary. Its only this one, the secondary, that is failing. | ||
| Comment by Yuyu Liu [ 2016-02-18 ] | ||
|
I think this because in Encrypting Passwords, the document said the password key stores in /var/lib/maxscale, and the sample command shows the same path. But the real path of maxscale used is /var/lib/maxscale/data. If the .secrets file moved to /var/lib/maxscale/data, it would be ok. | ||
| Comment by markus makela [ 2016-02-29 ] | ||
|
This was caused by a hard-coded path in maxkeys which used /var/lib/maxscale/ as the destination instead of using the newer, dynamic path resolution functionality. |