Can't deploy: unable to update v2 metadata on machine

Hello, since the last few days, I am unable to deploy my app and am getting the following error when I run this command:

flyctl deploy --app scatter-api-testing

Error: found 1 machines that are unmanaged. `fly deploy` only updates machines with fly_platform_version=v2 in their metadata. Use `fly machine list` to list machines and `fly machine update --metadata fly_platform_version=v2 <machine id>` to update individual machines with the metadata. Once done, `fly deploy` will update machines with the metadata based on your fly.toml app configuration

fly machine list gives the following:

$  fly machine list --app scatter-api-testing
1 machines have been retrieved from app scatter-api-testing.
View them in the UI here (​https://fly.io/apps/scatter-api-testing/machines/)
scatter-api-testing
ID              NAME            STATE   REGION  IMAGE   IP ADDRESS  VOLUME   CREATED                 LAST UPDATED            APP PLATFORMPROCESS GROUP    SIZE 
6e82512c754987  aged-wave-6473  started         :                            1970-01-01T00:00:00Z    0001-01-01T00:00:00Z

I attempted to follow the suggestion and resolve that using:

fly machine update --app scatter-api-testing --metadata fly_platform_version=v2 6e82512c754987

However, this yields this error:

Error: no config changes found

If I attempt to migrate I get this error:

$  fly migrate-to-v2 -c ./fly-testing.toml
Error: the app 'scatter-api-testing' is already on the apps v2 platform

Any ideas how to fix this?

bumping this.

This is preventing me from deploying any updates to my app.

The config changes aren’t going to work, because your machine is actually on the appsv2 platform.
There’s no need to migrate either, because your app is on apps v2.

What i’m unsure about is why your fly machine list is returning weird data. The created_at & updated_at dates are completely off. Not sure why fly deploy also thinks you have unmanaged machines.

Can you ensure you’re on the latest flyctl version and run this LOG_LEVEL=debug fly deploy --app scatter-api-testing and share the logs with me privately. I’ll send you a message now.

Can you share what you see when you visit this link? https://debug.fly.dev

We’ve been having some issues in the MAA region. It’s working for @scatterinfo now but kindly deploy your new workloads in the another closer region.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.