I tried that. fly migrate-to-v2
displayed this at some point:
INFO Using wait timeout: 5m0s lease timeout: 13s delay between lease refreshes: 4s
failed while migrating: Process group 'app' needs volumes with name 'pg_data_machines' to fullfill mounts defined in fly.toml; Run `fly volume create pg_data_machines -r REGION` for the following regions and counts: nrt=1
So I ran the mentioned command and then ran fly migrate-to-v2
again, which ended with:
==> Migrating ...-db to the V2 platform
> Upgrading postgres image
> Setting postgres primary to readonly
> Creating new postgres volumes
> Locking app to prevent changes during the migration
> Enabling machine creation on app
> Creating an app release to register this migration
> Starting machines
INFO Using wait timeout: 5m0s lease timeout: 13s delay between lease refreshes: 4s
Updating existing machines in '...-db' with rolling strategy
-------
⠋ Waiting for 1234567890 [app] to become healthy: 1/3
-------
failed while migrating: timeout reached waiting for healthchecks to pass for machine 1234567890 failed to get VM 1234567890: Get "https://api.machines.dev/v1/apps/...-db/machines/1234567890": net/http: request canceled
? Would you like to enter interactive troubleshooting mode? If not, the migration will be rolled back. (Y/n)
Hitting Y
returns:
Oops! We ran into issues migrating your app.
We're constantly working to improve the migration and squash bugs, but for
now please let this troubleshooting wizard guide you down a yellow brick road
of potential solutions...
,,,,,
,,.,,,,,,,,, .
.,,,,,,,
,,,,,,,,,.,,
,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,.
, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
The app's platform version is 'detached'
This means that the app is stuck in a half-migrated state, and wasn't able to
be fully recovered during the migration error rollback process.
Fixing this depends on how far the app got in the migration process.
Please use these tools to troubleshoot and attempt to repair the app.