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

tidb-server --help exit with code 2 #24046

Closed
lucklove opened this issue Apr 15, 2021 · 3 comments · Fixed by #24073
Closed

tidb-server --help exit with code 2 #24046

lucklove opened this issue Apr 15, 2021 · 3 comments · Fixed by #24073
Assignees
Labels
severity/minor sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@lucklove
Copy link
Member

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

tidb-server --help
echo $?

2. What did you expect to see? (Required)

0

3. What did you see instead (Required)

2

4. What is your TiDB version? (Required)

v5.0.0

Release Version: v5.0.0
Edition: Community
Git Commit Hash: bdac0885cd11bdf571aad9353bfc24e13554b91c
Git Branch: heads/refs/tags/v5.0.0
UTC Build Time: 2021-04-06 16:39:10
GoVersion: go1.13.4
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false
@lucklove lucklove added the type/bug The issue is confirmed as a bug. label Apr 15, 2021
@lucklove
Copy link
Member Author

lucklove commented Apr 15, 2021

You can simply replay this with TiUP:

tiup install tidb:v5.0.0
tiup tidb:v5.0.0 --help

And TiUP will catch the error code by print:

Cannot fetch help message from /Users/joshua/.tiup/components/tidb/v5.0.0/tidb-server failed: exit status 2

@xhebox
Copy link
Contributor

xhebox commented Apr 16, 2021

/assign @xhebox

@ti-srebot
Copy link
Contributor

Please edit this comment or add a new comment to complete the following information

Not a bug

  1. Remove the 'type/bug' label
  2. Add notes to indicate why it is not a bug

Duplicate bug

  1. Add the 'type/duplicate' label
  2. Add the link to the original bug

Bug

Note: Make Sure that 'component', and 'severity' labels are added
Example for how to fill out the template: #20100

1. Root Cause Analysis (RCA) (optional)

2. Symptom (optional)

3. All Trigger Conditions (optional)

4. Workaround (optional)

5. Affected versions

6. Fixed versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/minor sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants