Hello, I am new here, and am trying to wrap my head around how volumes work in general. I am getting this error when I attempt to re-deploying an app mounted with volume:
Error: failed to create green machines: failed to launch VM: failed_precondition: volume already claimed by machine 123xxxxxxx456
I took the following steps:
- Launched an app (fly launch) with the following segment in fly.toml
source = “volume”
destination = “/home/volume”
- Redeploy the app (fly deploy) with a new image
I don’t really understand what I am doing wrong - I tried manually creating duplicates of the same volume (fly volume create volume -a appname) but that didn’t work either. Do I have to manually destroy the old machine to unbind that volume before I re-deploy?