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

fly wireguard create - non informative error message and sparse docs #3393

Open
dyasny opened this issue Mar 21, 2024 · 0 comments
Open

fly wireguard create - non informative error message and sparse docs #3393

dyasny opened this issue Mar 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dyasny
Copy link

dyasny commented Mar 21, 2024

Please only report specific issues with flyctl behavior. Anything like a support request for your application should go to https://community.fly.io. More people watch that space and can help you faster!

Describe the bug
Briefly, describe what broke and provide the following details:

  • Run fly wireguard create : everything works as expected, great. But there's a warning about the interactive run of this command filtering our self records in DNS, so let's try and create a non-interactive WG config.

  • Look at the help for flyctl, both in cli and online, seems simple - fly wireguard create [org] [region] [name] [file] [flags] no further explanations. No examples.

  • Give the command a try: flyctl wireguard create Personal yyz dy /tmp/mywg.conf and see a great error message: Error: Could not find

I eventually managed to get it working, but for a new user this looks like the error output is missing (could not find WHAT?)
Trying to go to the docs provides the same as with the --help output, so the docs might as well not exist.

  • Operating system
  • fly version
$ fly version
flyctl v0.2.22 linux/amd64 Commit: e3d9dcd3b481f07c08ec511a600db40f5820f920 BuildDate: 2024-03-18T20:13:16Z

** Paste your fly.toml

# paste your config file here

** Command output: **

 $ fly wireguard create --help
Add a WireGuard peer connection to an organization

Usage:
  flyctl wireguard create [org] [region] [name] [file] [flags]

Flags:
  -h, --help   help for create

Global Flags:
  -t, --access-token string   Fly API Access Token
      --debug                 Print additional logs and traces
      --verbose               Verbose output

$ flyctl wireguard create Personal yyz dy /tmp/mywg.conf
Error: Could not find 

$ flyctl wireguard create Personal yyz dy /tmp/mywg.conf --debug --verbose
Error: Could not find 
Stacktrace:
goroutine 1 [running]:
runtime/debug.Stack()
	/opt/hostedtoolcache/go/1.21.7/x64/src/runtime/debug/stack.go:24 +0x5e
github.com/superfly/flyctl/internal/cli.printError(0xc000822dc0, 0xc000db9b3e, 0x1d50bc0?, {0x258fa60, 0xc0000008c0})
	/home/runner/work/flyctl/flyctl/internal/cli/cli.go:162 +0x4db
github.com/superfly/flyctl/internal/cli.Run({0x25ab668?, 0xc0003fba80?}, 0xc000822dc0, {0xc000218010?, 0x8, 0x8})
	/home/runner/work/flyctl/flyctl/internal/cli/cli.go:110 +0x928
main.run()
	/home/runner/work/flyctl/flyctl/main.go:47 +0x156
main.main()
	/home/runner/work/flyctl/flyctl/main.go:26 +0x18

@dyasny dyasny added the bug Something isn't working label Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant