flyctl get stuck in infinite loop when trying to ( recreate wireguard tunnel + write to config to file )
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 versionflyctl 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
-
Create wireguard tunnel and output to file
fly wireguard create personal sin my-laptop fly0.conf-> this creates a fly0.conf -
Remove tunnel
fly wireguard remove personal my-laptop -
Recreate the tunnel and file
fly wireguard create personal sin my-laptop fly0.confInfinite 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
....
- 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