-
Notifications
You must be signed in to change notification settings - Fork 448
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
katib-mysql pod :Access denied for user 'root'@'localhost' (using password: YES) #1212
Comments
Issue-Label Bot is automatically applying the labels:
Please mark this comment with 👍 or 👎 to give our bot feedback! |
Issue Label Bot is not confident enough to auto-label this issue. |
May I ask how you install the katib? |
When I installed kubeflow, automatically started katib pod |
@ijackcy Can you check that Also, can you show the logs and describe |
got the same issue here. k8s@ubuntu2:~/k8s/kubeflow$ kubectl describe pod katib-db-manager-54b64f99b-nmtzv -n kubeflow Normal Pulled 35m (x157 over 13h) kubelet, ubuntu4 Container image "gcr.io/kubeflow-images-public/katib/v1alpha3/katib-db-manager:v0.8.0" already present on machine k8s@ubuntu2:~/k8s/kubeflow$ kubectl describe pod katib-mysql-74747879d7-rmlts -n kubeflow Warning Unhealthy 4m23s (x5478 over 15h) kubelet, ubuntu3 Readiness probe failed: mysql: [Warning] Using a password on the command line interface can be insecure. |
@crazy-canux Can you try to execute on your mysql pod |
@andreyvelich Yes, I can see the password is "test" when execute "echo $MYSQL_ROOT_PASSWORD". |
@crazy-canux Can you try to check if mysql DB works. Also, try to delete |
@andreyvelich after restart katib-mysql, error changed.
|
@crazy-canux Did you check that PVC is properly bounded: Which volume are you using for the mysql PV ? |
@andreyvelich I'm facing the same error. I checked the cluster nodes and there's no such directories |
@Utkagr Can you check that PVC was bounded successfully? |
@andreyvelich The PVC is bounded successfully and I deployed katib using the kubeflow manifest v1.1 only which is the standard setup recommended. Would you please check the logs here kubeflow/manifests#1565 (comment) and see what could be a potential issue? Thanks a lot. |
Thanks @Utkagr.
If it doesn't work, try to use PV with host path and PVC from these manifests. Then you can directly clean-up your folders on the cluster with old mysql instances. |
@andreyvelich Thanks for your comment. On trying 1, katib-mysql pod is going crashloopbackoff with these logs
On trying 2(changed path to
On this point, since I'm using manifests repo to setup katib, I can only see this pvc definition inside katib base directory
Not sure what I should change here, apart from labels and ns, configs are the same. |
Resolved using https://github.com/kubeflow/katib/tree/master/manifests/v1alpha3/pv manifests. Thanks @andreyvelich |
@Utkagr It's good to hear! |
It's rook-ceph and we've our on prem setup with 1 master 3 workers |
You might need some additional setup for running mysql with this Provisioner. |
Feel free to re-open issue if you have this problem again. |
/kind bug
What steps did you take and what happened:
When I deployed kubeflow1.0, katib-db-manager-849b858bc8-4h8c9 and katib-mysql-7f99dfd774-gc4qp don't work well.
katib-db-manager-849b858bc8-4h8c9 0/1 ImagePullBackOff 0 11h
katib-mysql-7f99dfd774-gc4qp 0/1 Running 1 11h was
when i checked the log of katib-mysql-7f99dfd774-gc4qp :
Events:
Type Reason Age From Message
Warning Unhealthy 80s (x4130 over 11h) kubelet, slaver003 Readiness probe failed: mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
when i enter the katib-mysql-7f99dfd774-gc4qp :
root@katib-mysql-7f99dfd774-gc4qp:/# mysql -D ${MYSQL_DATABASE} -u root -p${MYSQL_ROOT_PASSWORD} -e 'SELECT 1'
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
root@katib-mysql-7f99dfd774-gc4qp:/# mysql -D ${MYSQL_DATABASE} -e 'SELECT 1'
ERROR 1049 (42000): Unknown database 'katib'
What did you expect to happen:
all of pod work well
Anything else you would like to add:
and then i try to delete the error pods, and modify the images(mysql 5) ,also the same error.
Access denied for user 'root'@'localhost' (using password: YES)
Environment:
kubectl version
):1.15.1/etc/os-release
):The text was updated successfully, but these errors were encountered: