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

flyctl get stuck in infinite loop when trying to ( recreate wireguard tunnel + write to config to file ) #3362

Open
xask00 opened this issue Mar 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@xask00
Copy link

xask00 commented Mar 12, 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
If we create a wireguard tunnel and write config to file --> remove the tunnel --> recreate the tunnel and config,
flyctl get stuck in infinte loop and complains file already exist

  • Operating system :
    Ubuntu 22.04.3 LTS x86_64

  • fly version
    flyctl v0.2.17 linux/amd64 Commit: 3a51f42 BuildDate: 2024-03-11T21:27:36Z

** Paste your fly.toml

Not applicable

Command output:
Infinite loop output

Can't create 'fly0.conf': open fly0.conf: file exists
Can't create 'fly0.conf': open fly0.conf: file exists
Can't create 'fly0.conf': open fly0.conf: file exists
....

Steps to Reproduce

  1. Create wireguard tunnel and output to file
    fly wireguard create personal sin my-laptop fly0.conf
    -> this creates a fly0.conf

  2. Remove tunnel fly wireguard remove personal my-laptop

  3. Recreate the tunnel and file fly wireguard create personal sin my-laptop fly0.conf
    Infinite loop output as shown below, does not return to terminal or write file

Can't create 'fly0.conf': open fly0.conf: file exists
Can't create 'fly0.conf': open fly0.conf: file exists
Can't create 'fly0.conf': open fly0.conf: file exists
....
  1. Workaround fix: on another terminal remove fly0.conf
Can't create 'fly0.conf': open fly0.conf: file exists
Wrote WireGuard configuration to fly0.conf; load in your WireGuard client
@xask00 xask00 added the bug Something isn't working label Mar 12, 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