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

chorctl gives wrong hint on repl usage #16

Open
hydro-b opened this issue Apr 23, 2024 · 0 comments
Open

chorctl gives wrong hint on repl usage #16

hydro-b opened this issue Apr 23, 2024 · 0 comments

Comments

@hydro-b
Copy link

hydro-b commented Apr 23, 2024

I wanted to check replication of a testbucket:

./chorctl  check one two --bucket=testbucket
Usage:
  chorctl check <from_storage> <to_storage> --bucket=<bucket_name> [flags]

Flags:
  -b, --check-bucket string   check bucket name
  -h, --help                  help for check

This seems to hint to construct a command like:

./chorctl  check one two --bucket=testbucket --check-bucket=testbucket

But that does not work, and seems illogical.

My hypothesis is that --bucket=$bucketname is a remnant of the past and has been superseded by --check-bucket=$bucketname incarnation.

But that is not sufficient and results in the following error being thrown:

FATA[0000] unable to check bucket                        error="rpc error: code = InvalidArgument desc = InvalidArg"

This command however, works:

./chorctl  check one two --check-bucket=testbucket --user $username

So the --user seems to be a required flag

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

No branches or pull requests

1 participant