Error: Your fly.toml referenced an attribute 'vm' but it is unknown. Double check the accepted attributes in fly.toml https://fly.io/docs/reference/configuration

I’m using GitHub - superfly/flyctl-actions: :octocat: GitHub Action that wraps the flyctl to deploy my Fly app, and keep getting the following error in GitHub Actions.

Error: Your fly.toml referenced an attribute 'vm' but it is unknown. Double check the accepted attributes in fly.toml https://fly.io/docs/reference/configuration

I see the [[vm]] section documented there, at Fly Launch configuration (fly.toml) · Fly Docs.

First it failed with just

      - uses: superfly/flyctl-actions/setup-flyctl@master

Then I tried specifying the version of the CLI I’m running locally, which has no problem with the [[vm]] section.

      - uses: superfly/flyctl-actions/setup-flyctl@master
        with:
          version: 0.1.146

Both produce the same error.

If I remove my [[vm]] section it succeeds.

Does something need to be updated in the GitHub - superfly/flyctl-actions: :octocat: GitHub Action that wraps the flyctl repo?

Thanks.

Added flyctl

Same exact thing just happened to me. I suspect there was a mismatch with the VM settings on the target app. After pushing the latest version of my fly.toml file to the repo it started working again.
:man_shrugging:

Thanks for the reply @antonyblanco. The error stopped for me as well and I wasn’t sure why. Hasn’t been an issue since. :man_shrugging:

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