Skip to content
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

the restore script failed when the db user has not password #509

Closed
xiaojingchen opened this issue May 22, 2019 · 0 comments · Fixed by #510
Closed

the restore script failed when the db user has not password #509

xiaojingchen opened this issue May 22, 2019 · 0 comments · Fixed by #510
Assignees

Comments

@xiaojingchen
Copy link
Contributor

Bug Report

What version of Kubernetes are you using?

Client Version: version.Info{Major:"1", Minor:"12", GitVersion:"v1.12.2", GitCommit:"17c77c7898218073f14c8d573582e8d2313dc740", GitTreeState:"clean", BuildDate:"2018-10-24T06:54:59Z", GoVersion:"go1.10.4", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"12", GitVersion:"v1.12.2", GitCommit:"17c77c7898218073f14c8d573582e8d2313dc740", GitTreeState:"clean", BuildDate:"2018-10-24T06:43:59Z", GoVersion:"go1.10.4", Compiler:"gc", Platform:"linux/amd64"}

What version of TiDB Operator are you using?

pingcap/tidb-operator:v1.0.0-beta.2

What did you do?

start a restore job by exec helm install --name=tidb-test-restore --namespace=tidb-test charts/tidb-backup/values.yaml

What did you expect to see?

the restore pod completed

What did you see instead?

restore pod failed, logs is

unknow flag 4000

see the restore script: https://github.com/pingcap/tidb-operator/blob/master/charts/tidb-backup/templates/scripts/_start_restore.sh.tpl#L24

when password is null, we should not use flag -p

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant