flyctl icon indicating copy to clipboard operation
flyctl copied to clipboard

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

Open xask00 opened this issue 1 year ago • 0 comments

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: 3a51f42f15355928eb7f51c620f599328cadfa55 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 avatar Mar 12 '24 09:03 xask00