-
Notifications
You must be signed in to change notification settings - Fork 67
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
ERROR 1064 (HY000): Access denied for user 'root' (using password: NO) || BE constantly has restart after a few hours #275
Comments
Can you post the contents of values.yaml? The document https://github.com/StarRocks/starrocks-kubernetes-operator/blob/main/doc/change_root_password_howto.md describes how to set |
If you install StarRocks with kube-starrocks chart, you can follow:
|
Thanks a lot for you answer. I've tried this configuration and it is the one that is giving me this type of problem. It is the same as the documentation I have passed previously. |
Please also check that the MYSQL_PWD environment in BE pod is set. |
I've seen MYSQL_PWD environmentin FE and BE is set with this command: Currently I've executed a deploy from scratch with InitPassword and works well but the issue now it's that refused the external connection via msql client |
Do you have any idea about the last issue?
|
one thing to confirm first, if you create a brand-new cluster with no init password, (leave the root password empty), will you be able to connect to the sr cluster from your local vms? |
This is affirmative, the problem occurs when we assign the root password via mysql client. After a few hours the BE cannot connect with the FE. This is the first problem I reported above following this documentation: https://github.com/StarRocks/starrocks-kubernetes-operator/blob/main/doc/change_root_password_howto.md The second problem is: with InitPassword the BE and FE work well, but it does not allow you to connect at any time through mysql client and neither does any other connection using Apache services. Extra details: we are working on Tanzu Kubernetes Server Version: v1.21.6+vmware.1 |
would you please try following steps to narrow down the issue
|
I've made a new deployment in a different cluster of Kubernetes but the same version: Tanzu Kubernetes Server Version: v1.21.6+vmware.1 The test was successful and also I've tested the expose via configmap of nginx ingress controller and works well. Maybe the issue persist in the other cluster. I'll try to replicate this. Many thanks. |
I've tested the two ways to apply the credential password for root.The first way to apply the password root works well, but is a insecurity manner to set a password. The second way doesn't work. I guess that the issue is into charts/starrocks/templates/ini-pwd/ job.yaml in the last one it's possible that the bash script doesn't apply in the correct way and generating this issue.Please let me know if you found a solution for the second way. |
by saying first and second method, can you elaborate exactly what they are, and possibly doc link? and how did you do that for the second one which it doesn't work? |
I followed this guide: I did it the same as in documentation. |
It only works when doing |
Yes, we know that it only works on the first installation. What I mean is that I delete the deployment and launch it again from scratch. The second way using a kubernetes secret, although starrocks with FE and BE work well, it does not allow us to access it from the outside, that is the problem, and I have tested this difference in a new kubernetes cluster many times, which I believe that the issue must be in the mount of the script that is made in the configmap. Since the first way always works well and the second does not. {{- if .Values.initPassword.enabled }}
|
can you do a |
`
|
what's your mysql client version? |
same problem,After I deployed the fe and cn nodes and set the root user password, the cn node will lose the connection. |
The My FE hostname is |
can you describe the statefulset the fe belongs to? |
|
interesting, can you paste the result of and also your cr yaml |
I think I found the issue. When the value |
@yandongxiao can you take a look? |
If |
the job will never finished? |
Correct. And the BE can't join the FE. |
will have a quick hotfix for this. |
great thx! @adhasahar97 |
@jimenez-f can you confirm if this matches your case? |
The issue is caused by mixing the usage of kube-starrocks.name and starrockscluster.name. |
I have an issue with Starrocks Helmchart v1.8.3 when I set a password in user root via mysql-client the BE apparently lost the connection via password and constantly has restart the pods of BE with this message:
ERROR 1064 (HY000): Access denied for user 'root' (using password: NO)ERROR 1064 (HY000): Access denied for user 'root' (using password: NO)[Wed Oct 4 17:37:47 America 2023] Add myself (kube-starrocks-be-1.kube-starrocks-be-search.starrocks.svc.cluster.local:9050) into FE ...ERROR 1064 (HY000): Access denied for user 'root' (using password: NO)ERROR 1064 (HY000): Access denied for user 'root' (using password: NO)[Wed Oct 4 17:37:49 America 2023] Add myself (kube-starrocks-be-1.kube-starrocks-be-search.starrocks.svc.cluster.local:9050) into FE ...ERROR 1064 (HY000): Access denied for user 'root' (using password: NO)ERROR 1064 (HY000): Access denied for user 'root' (using password: NO)[Wed Oct 4 17:37:51 America 2023] Add myself (kube-starrocks-be-1.kube-starrocks-be-search.starrocks.svc.cluster.local:9050) into FE ...ERROR 1064 (HY000): Access denied for user 'root' (using password: NO)ERROR 1064 (HY000): Access denied for user 'root' (using password: NO)[Wed Oct 4 17:37:53 America 2023] Add myself (kube-starrocks-be-1.kube-starrocks-be-search.starrocks.svc.cluster.local:9050) into FE ...ERROR 1064 (HY000): Access denied for user 'root' (using password: NO)ERROR 1064 (HY000): Access denied for user 'root' (using password: NO)[Wed Oct 4 17:37:55 America 2023] Add myself (kube-starrocks-be-1.kube-starrocks-be-search.starrocks.svc.cluster.local:9050) into FE ...ERROR 1064 (HY000): Access denied for user 'root' (using password: NO)ERROR 1064 (HY000): Access denied for user 'root' (using password: NO)[Wed Oct 4 17:37:57 America 2023] Add myself (kube-starrocks-be-1.kube-starrocks-be-search.starrocks.svc.cluster.local:9050) into FE ...ERROR 1064 (HY000): Access denied for user 'root' (using password: NO)ERROR 1064 (HY000): Access denied for user 'root' (using password: NO)[Wed Oct 4 17:37:59 America 2023] Add myself (kube-starrocks-be-1.kube-starrocks-be-search.starrocks.svc.cluster.local:9050) into FE ...ERROR 1064 (HY000): Access denied for user 'root' (using password: NO)ERROR 1064 (HY000): Access denied for user 'root' (using password: NO)[Wed Oct 4 17:38:02 America 2023] Add myself (kube-starrocks-be-1.kube-starrocks-be-search.starrocks.svc.cluster.local:9050) into FE ...ERROR 1064 (HY000): Access denied for user 'root' (using password: NO)ERROR 1064 (HY000): Access denied for user 'root' (using password: NO)[Wed Oct 4 17:38:04 America 2023] Add myself (kube-starrocks-be-1.kube-starrocks-be-search.starrocks.svc.cluster.local:9050) into FE ...ERROR 1064 (HY000): Access denied for user 'root' (using password: NO)ERROR 1064 (HY000): Access denied for user 'root' (using password: NO)[Wed Oct 4 17:38:06 America 2023] Add myself (kube-starrocks-be-1.kube-starrocks-be-search.starrocks.svc.cluster.local:9050) into FE ...ERROR 1064 (HY000): Access denied for user 'root' (using password: NO)ERROR 1064 (HY000): Access denied for user 'root' (using password: NO)[Wed Oct 4 17:38:08 America 2023] Add myself (kube-starrocks-be-1.kube-starrocks-be-search.starrocks.svc.cluster.local:9050) into FE ...ERROR 1064 (HY000): Access denied for user 'root' (using password: NO)ERROR 1064 (HY000): Access denied for user 'root' (using password: NO)[Wed Oct 4 17:38:10 America 2023] Add myself (kube-starrocks-be-1.kube-starrocks-be-search.starrocks.svc.cluster.local:9050) into FE ...ERROR 1064 (HY000): Access denied for user 'root' (using password: NO)ERROR 1064 (HY000): Access denied for user 'root' (using password: NO)[Wed Oct 4 17:38:10 America 2023] Time out, abort!
I asked about this issue into the starrocks channel and I followed the solution that gave me: https://github.com/StarRocks/starrocks-kubernetes-operator/blob/main/doc/change_root_password_howto.md but the issue persist.
Could you please help me with this issue?
Starrocks Helmchart Version: 1.8.3
Tanzu Kubernetes Version: 1.21
The text was updated successfully, but these errors were encountered: