Cannot create an app on Fly: Field 'limitedAccessTokens' doesn't exist on type 'App'

Hello, after upgrading flyctl on my machine I cannot create an app on Fly. I follow standard procedure of fly launch and I get below errors, could you help me with this?

Now that you've set up Postgres, here's what you need to understand: https://fly.io/docs/postgres/getting-started/what-you-should-know/
Failed attaching flup23 to the Postgres cluster flup23-db: failed retrieving app flup23: Field 'limitedAccessTokens' doesn't exist on type 'App'.
Try attaching manually with 'fly postgres attach --app flup23 flup23-db'
Error creating Postgresql database. Be warned that this may affect deploys
? Would you like to set up an Upstash Redis database now? No
Preparing system for Elixir builds
Installing application dependencies



╰─➤  fly postgres attach --app flup23 flup23-db
Error: failed retrieving postgres app flup23-db: Field 'limitedAccessTokens' doesn't exist on type 'App'

same problem with me

1 Like

seeing the same behavior here while trying to migrate an app from v2.

❯ fly version
fly v0.1.21 darwin/arm64 Commit: 727187f143dd6636ba2e6ecdd4675260fc511b82-dirty BuildDate: 2023-05-29T21:17:10Z

We have a bug in flyctl. We’re working on fixing this and hope to get that released shortly.

Downgrade to fly v1.20.0 to avoid this issue until we release a fix. That can be done with: curl -L https://fly.io/install.sh | sh -s -- v0.1.20

1 Like

We have release flyctl v0.1.22 with a fix for this issue. Update with fly version update or curl -L https://fly.io/install.sh | sh

1 Like

I’m still seeing the same issue after updating

I am also seeing this error when I am trying to migrate to v2

abdurahmanpopal@Abdurahmans-MacBook-Air arfoon_server % fly migrate-to-v2
Error: Field 'limitedAccessTokens' doesn't exist on type 'App'

I have the same error.
Also, it seems like the new version of flyctl isn’t available yet:

% fly version                                                  
fly v0.1.21 darwin/arm64 Commit: 727187f143dd6636ba2e6ecdd4675260fc511b82-dirty BuildDate: 2023-05-29T21:17:10Z

If you run fly version update, what version do you see?

Now the version is changed

% fly version
Run "fly version upgrade" to upgrade.
fly v0.1.22 darwin/arm64 Commit: c0149748becb904b80b207ccd69679ce9cd219d3-dirty BuildDate: 2023-05-30T08:11:10Z

I can’t reproduce the issue in new versions. Thanks!

1 Like

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