[MXS-2883] session closed by maxscale when it received "auth switch request" packet from backend server Created: 2020-02-10 Updated: 2020-02-10 Resolved: 2020-02-10 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | Authenticator |
| Affects Version/s: | 2.4.6 |
| Fix Version/s: | 2.3.18, 2.4.7, 2.5.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Judy Yu | Assignee: | markus makela |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | auth_plugin | ||
| Environment: |
mysql 8.0.16 |
||
| Attachments: |
|
| Description |
|
maxscale.cnf like this: [MariaDB-Monitor] [Splitter-Service] [Splitter-Listener] When use "mysql -ubackmanager -pxxx -hmaxscale-host -P4006" from one mysql slave node like server2, it is OK to enter mysql command line. But return "ERROR 1927 (08S01): Connection killed by MaxScale: Router could not recover from connection errors" when input any sql statement. |
| Comments |
| Comment by markus makela [ 2020-02-10 ] |
|
Do you have the MaxScale log? Did it log any errors? |
| Comment by Judy Yu [ 2020-02-10 ] |
|
The log shows: |
| Comment by markus makela [ 2020-02-10 ] |
|
What is the default auth plugin you have configured? MaxScale does not support the caching_sha2_password plugin. |
| Comment by Judy Yu [ 2020-02-10 ] |
|
In mysql I set mysql_native_password to user backmanager. |
| Comment by markus makela [ 2020-02-10 ] |
|
You should probably change the default auth plugin to mysql_native_password, I think that will fix the immediate problem. I'll investigate the AuthSwitchRequest packet not being handled correctly. |
| Comment by Judy Yu [ 2020-02-10 ] |
|
I change mysql default auth plugin to mysql_native_password, and it is OK to access mysql 8.0. Thanks. |
| Comment by markus makela [ 2020-02-10 ] |
|
To my knowledge there are currently no plans to support it. |
| Comment by markus makela [ 2020-02-10 ] |
|
Fixed MaxScale to correctly process the AuthSwitchRequest. This should allow MaxScale to work even with a non-default authentication plugin set as the default. |