-
Notifications
You must be signed in to change notification settings - Fork 498
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
Failed to execute tidb.initsql #737
Comments
I think here is the problem: tidb-operator/charts/tidb-cluster/templates/tidb-initializer-job.yaml Lines 40 to 43 in 8bda658
And I will try to fix it. |
@shonge You need to create the secret ahead of time as documented here https://pingcap.com/docs/v3.0/tidb-in-kubernetes/initialize-cluster/ |
Create tidb-secret is an option? |
Ah, right the secret is actually required. That |
Fix in #922. |
I'm keep seeing this error.
For using initSql, we also have to set |
@axot what's the output of the cmd:
|
After add
Here is what I'm doing.
mysql client also got similar error,
helm template result,
|
After some tries, the error fixed.
|
@axot It seems the first problem you met is caused by missing setting the password in secret. |
@Yisaer Hi, I'm using v1.0.6 for tidb-operator, and upgraded v3.0.5 to v3.0.9 for tidb today. |
I use back to original v3.0.5, and get a fresh install, however the password seems not setup correctly? password is
values.yaml
pod status,
connect failed.
|
* en: update doc for removing Pump nodes Signed-off-by: Ran <huangran@pingcap.com> * zh: update format Signed-off-by: Ran <huangran@pingcap.com> * Apply suggestions from code review Co-authored-by: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com> Co-authored-by: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com> Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
Bug Report
What version of Kubernetes are you using?
1.12
What version of TiDB Operator are you using?
v1.0.0
What storage classes exist in the Kubernetes cluster and what are used for PD/TiKV pods?
What's the status of the TiDB cluster pods?
What did you do?
What did you expect to see?
Execute initsql is successful.
What did you see instead?
kubectl -n tidb123 get secrets tidb-secret
Error from server (NotFound): secrets "tidb-secret" not found
The text was updated successfully, but these errors were encountered: