Prevent automatic choice of organization (unable to reproduce example in docs)

Following the documentation from deploy via dockerfile: Deploy via Dockerfile · Fly Docs

fly launch

? App Name (leave blank to use an auto-generated name):
? Select organization: Mark Ericksen (personal)
? Select region: lax (Los Angeles, California (US))
Created app weathered-wave-1020 in organization personal
Wrote config file fly.toml
? Would you like to deploy now? (y/N)

I tried to do this to deploy an app from a dockerfile to an organization:

 me@laptop   ~/dropbox/projects/connect.onefact.org     main    7  flyctl launch --image=nocodb/nocodb:latest --no-deploy
Creating app in /Users/me/dropbox/projects/connect.onefact.org
An existing fly.toml file was found for app connect-onefact-org
? Would you like to copy its configuration to the new app? No
Using image nocodb/nocodb:latest
? Choose an app name (leave blank to generate one): connect-onefact-org
automatically selected personal organization: Jaan Altosaar
Some regions require a paid plan (bom, fra, maa).
See https://fly.io/plans to set up a plan.

? Choose a region for deployment: Secaucus, NJ (US) (ewr)
App will use 'ewr' region as primary

Created app 'connect-onefact-org' in organization 'personal'
Admin URL: https://fly.io/apps/connect-onefact-org
Hostname: connect-onefact-org.fly.dev
Wrote config file fly.toml
Validating /Users/me/dropbox/projects/connect.onefact.org/fly.toml
Platform: machines
✓ Configuration is valid
Your app is ready! Deploy with `flyctl deploy`

But as you can see there is no option to select an organization.

Does anyone know how to fix this to replicate the example in the documentation?

Thank you so much! Here is the repo if it helps: GitHub - onefact/connect.onefact.org: Customer relationship management (CRM) system for the One Fact Foundation

What does fly orgs list show?

Great point @nolan-fly – looks like the org is missing!

 me@laptop   ~/dropbox/projects/connect.onefact.org     main    7  fly orgs list
Name                 Slug                 Type
----                 ----                 ----
Jaan Altosaar        personal             PERSONAL

That is confusing because in the dashboard I can see both:

Any advice on how to fix this?

Interesting, so flyctl is hitting our GraphQL API while the dashboard is reading directly from the database. In theory both should be reading from the same place ultimately but somehow flyctl has stale data.

I’ve asked about this internally but don’t have anything conclusive to share. A couple thoughts, mainly of the “nuke it from orbit” variety:

  1. Are you running the latest flyctl? fly version update and see if that helps.
  2. After the update, maybe re-authenticate with fly auth logout && fly auth login.

Sorry I don’t have a definitive answer. FWIW I’m curious about this one myself.

1 Like

Thank you Nolan! Love the nuke it from orbit approach :smiley:

  1. Are you running the latest flyctl? fly version update and see if that helps.
me@laptop   ~/dropbox/projects/connect.onefact.org     main    7  fly version update
Already running latest flyctl v0.1.43
  1. After the update, maybe re-authenticate with fly auth logout && fly auth login.

Done.

Tried it again:

 me@laptop   ~/dropbox/projects/connect.onefact.org     main    7  flyctl launch --image=nocodb/nocodb:latest --no-deploy
Creating app in /Users/me/dropbox/projects/connect.onefact.org
An existing fly.toml file was found for app connect-onefact-org
? Would you like to copy its configuration to the new app? No
Using image nocodb/nocodb:latest
? Choose an app name (leave blank to generate one): connect-onefact-org
? Select Organization:  [Use arrows to move, type to filter]
  Jaan Altosaar (personal)
> One Fact Foundation (one-fact-foundation)

Looks like that did the trick!! Thank you so much :slight_smile:

1 Like

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