-
Notifications
You must be signed in to change notification settings - Fork 8.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Excessive logging: [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead' #18606
Comments
Interestingly, if you do a default install:
Then upgrade it with the test.yaml above:
It does not completely fix the problem. I still see one warning message every 10 seconds (instead of two.) |
I'm creating a PR to at least fix the defaults in values.yaml so new installs won't have this issue. |
May need to run a SQL query against all users to fix it on existing releases? |
Thank you for opening this issue and submitting the associated Pull Request. Our team will review and provide feedback. Once the PR is merged, the issue will automatically close. Your contribution is greatly appreciated! |
I suppose we need to ask, "should we make this change?" I don't know enough about MySQL. Partial discussion in this post: https://stackoverflow.com/questions/49963383/authentication-plugin-caching-sha2-password |
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback. |
Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary. |
This is still an issue on version: 9.14.1
using the values provided above |
Still reproduces version chart : 9.16.0 |
Still present in v. 9.16.1, MySQL-8.0.35 Looks like plugin is absent in image, not working "out from the box" :( |
helm chart 9.16.1 no plugin for sha2 available
|
Hello @myl82, I'm not sure what config are you using in your chart but by the Regarding your concern @neffets, I reviewed mysql's documentation and it explicitly says "The caching_sha2_password plugin [...] is built into the server, need not be loaded explicitly, and cannot be disabled by unloading it". As such, it is normal for it not to be at Please try installing the chart with the following configuration set:
I've checked and that should solve the annoying warnings in the logs and make your mysql instance use |
$ helm install mysql bitnami/mysql --set auth.defaultAuthenticationPlugin=caching_sha2_password that does not work. still seeing message: |
That is weird @malupo, I double-checked and it seems to be working on my side. Are you installing the chart in a fresh namespace? You may be using a persistent volume (PV) from a prior installation where users were created with the old auth plugin. To make sure, please try using one of the following installations:
If the problem persists please share any relevant cluster or chart custom config you may be using. |
C:\Users\xxxx>k get pvc -A C:\Users\xxxx>k get pv -A
2024-01-18T17:30:17.906671Z 36 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead' |
Problem is not present in version 9.1.4 but it certainly is in the latest version (9.17.1). |
Hello @malupo, I am indeed using the latest version and used the Could you do a
|
Yes that value is there. “default_authentication_plugin=caching_sha2_password”
But the problem is that it does not work and there hence there is a bug in MYSQL. Even with that value changed, the message 2024-01-22T16:16:04.630721Z 8 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: 'mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead still comes out. Please retest to see error and appropriately advise.
|
C:\Users\xxxxx>k exec mysql-0 -it /bin/sh
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.
$ mysql --verbose --help | grep -A 1 "Default options"
Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf /opt/bitnami/mysql/conf/my.cnf ~/.my.cnf
cat /opt/bitnami/mysql/conf/my.cnf
[mysqld]
default_authentication_plugin=caching_sha2_password
skip-name-resolve
explicit_defaults_for_timestamp
basedir=/opt/bitnami/mysql
plugin_dir=/opt/bitnami/mysql/lib/plugin
port=3306
socket=/opt/bitnami/mysql/tmp/mysql.sock
datadir=/bitnami/mysql/data
tmpdir=/opt/bitnami/mysql/tmp
max_allowed_packet=16M
bind-address=*
pid-file=/opt/bitnami/mysql/tmp/mysqld.pid
log-error=/opt/bitnami/mysql/logs/mysqld.log
character-set-server=UTF8
slow_query_log=0
long_query_time=10.0
[Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
|
Hello @malupo, I can't reproduce the issue on my side. I've deployed the chart again using the params I shared in my last message and there is no warning involved. I double-checked this by looking into the auth plugins each database user was using:
I would suggest retrying the above solutions using a fresh K8s cluster but if the problem persists you can modify the used plugin manually:
|
Deleting my cluster and recreating solved the issue. It must have been a setting or artifact that had been dangling in my cluster somewhere.
One note: When trying to connect via the external app MYSQL Workbench --- getting message:
“Failed to connect to mysql at mysql:3306 with user: root. Authentication plugin ‘caching_sha2_password’ cannot be loaded. The specified module could not be found.”
However programmatic access to Mysql via python code works correctly.
|
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback. |
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary. |
Name and Version
bitnami/mysql 9.11.1
What architecture are you using?
amd64
What steps will reproduce the bug?
Install with default values:
Check logs:
Are you using any custom parameters or values?
No
What is the expected behavior?
No excessive logging.
What do you see instead?
Logging will show this error message twice every 10 seconds:
Additional information
I tried to fix it with this values file - this is the default primary.configuration with one change - I updated
default_authentication_plugin=caching_sha2_password
:Installed again with:
Checking logs again:
Seems like updating
default_authentication_plugin
fixes it!The text was updated successfully, but these errors were encountered: