[MXS-3002] Upgrading mariadb/galera cluster 10.4.12->10.4.13 causing any user authentication to fail Created: 2020-05-21 Updated: 2020-12-30 Resolved: 2020-07-03 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | Authenticator |
| Affects Version/s: | 2.4.9 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Andras Kovacs | Assignee: | Unassigned |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | galera | ||
| Environment: |
Debian Buster (db), Debian Stretch (maxscale) |
||
| Issue Links: |
|
||||||||
| Description |
|
I am using a mariadb/galera cluster. PHP app is connected to db using maxscale from localhost. When upgrading mariadb from 10.4.12 to 10.4.13 user authentication started to fail. When starting maxscale, this is logged:
All authentication request raises these logs:
On DB side, these are logged:
It is important to note, that it had been a working system and mariadb upgrade caused it to fail. I tried many auth options in maxscale but have no idea what is a workaround. DB users are both available tied to "localhost" and "%" but this does not help. Interestingly, the only auth working is with maxscale ("vsqmaxscale") user, nothing else. my maxscale config:
|
| Comments |
| Comment by markus makela [ 2020-05-22 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Does the SQL query listed here return an error of some sorts? From the looks of it, I'd say that it's quite likely that there is something wrong on the database side that causes the query to malfunction. Have you tried this on any other systems with the same set of versions? | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Andras Kovacs [ 2020-05-22 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Markus, thanks for the feedback. Directly, on the database node using mysql client the query works:
However, when connecting using maxscale user, through maxscale from the other node it fails!
This should be causing the problem. Although, I do not get why illegal mix of collations occur here... | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by markus makela [ 2020-05-22 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Have you configured any custom server or client character sets in the MariaDB configuration files? It's possible that one of them is causing this conflict. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Andras Kovacs [ 2020-05-22 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Sure, I have these in my.cnf
Let me know please what could be causing it... thanks a lot. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by markus makela [ 2020-05-22 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I bet if you comment out the init_connect lines it will work. Those would also be done for the connection done by MaxScale which is likely to cause the problem. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Andras Kovacs [ 2020-05-22 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Markus, thanks. Yes, it fixed the problem. I figured out that this line caused the problem
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by markus makela [ 2020-05-25 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I think this will be fixed automatically with the upcoming 2.5 release of MaxScale and the rewrite of the authentication code. For 2.4 and earlier releases, we can document that this should be avoided in case of problems like these. We shold also execute a SET NAMES latin1 to make sure we're using the charset we want. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Andras Kovacs [ 2020-05-25 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
thanks a lot | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by markus makela [ 2020-07-03 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I'll close this as Incomplete as it's both a bug in the MaxScale code and a database configuration related issue. I've opened |