Addon not allowed when deploying in Github Actions

Hi Fly.io community,

I’m facing an issue while deploying my app using GitHub Actions. My deployment pipeline is configured to deploy to Fly.io using the flyctl deploy --remote-only command. However, I consistently get the following error:

kotlin

Copiar código

Error: input:4: addOns.nodes[1] Not authorized to access this addon
input:4: Not authorized to access this addon

Context:

  1. Deployment process:
  • I’m deploying via GitHub Actions with the following flyctl command: flyctl deploy --remote-only -a its-solitary-night-9561.
  • The deployment completes successfully up until the final step where the error occurs.
  1. fly.toml file: Here is the relevant part of my fly.toml file:

toml

Copiar código

app = 'its-solitary-night-9561'
primary_region = 'mad'

[[mounts]]
  source = 'files_to_save'
  destination = '/data/files_to_save_1'

[http_service]
  internal_port = 8000
  force_https = true
  auto_stop_machines = 'stop'
  auto_start_machines = true
  min_machines_running = 0
  processes = ['app']

[[vm]]
  memory = '1gb'
  cpu_kind = 'shared'
  cpus = 1

[[statics]]
  guest_path = 'static'
  url_prefix = '/static/'

What I’ve tried:

  • I’ve run the command flyctl addons list -a its-solitary-night-9561 but it does not show any addons attached to my app.
  • I also reviewed the permissions of my Fly.io account and it seems like I should have sufficient permissions for this operation.
  • The error message does not specify which addon is causing the issue, making it difficult to troubleshoot further.

Request:

Can someone help me understand what might be causing this error and how to resolve it? Is there a way to pinpoint the specific addon or permission that is being referenced here?

Thanks in advance for any guidance!