This does not complete, and eventually hangs.
The immediate output before hanging is:
automatically selected personal organization: <my name>
Creating postgres cluster in organization personal
Creating app...
Setting secrets on app foo..Provisioning 1 of 1 machines with image flyio/postgres:14.4
After a ^C, I can see that the DB is created as the corresponding app is now listed on my Fly.io dashboard, but I don’t get a chance to see the values of the secrets associated with the database, so I can’t verify connectivity.
I tried destroying that and recreating with LOG_LEVEL=debug, and the final request made before a hang is:
I remember that this was working great in v0.0.427 when I was using it a few weeks ago, so I’m not sure if something’s changed with how it’s used now, or if something is legitimately broken in the system at this time.
I’m having the same issue as @monological . I’m deploying a cluster of 2, the first machine seems to be deployed but the second one hangs on “Waiting for machine to start”
UPDATE: launching a dev environment (one shared machine) worked.
Launching a cluster of 2 shared-cpu-1x also worked (it hung waiting for an instance to become healthy but eventually finished).
Launching a cluster of 2 shared-cpu-2x just worked. I guess there was some internal issue that got resolved.
Came back to give this another red hot go in case anything’s changed, but flyctl now complains that my account has been auto-flagged by the fraud system. Oh well.
fly postgres create is completely broken for me too, and hangs indefinitely on the first of three health checks:
$ fly postgres create
? Choose an app name (leave blank to generate one): my-db
automatically selected personal organization: David Celis
? Select region: Seattle, Washington (US) (sea)
? Select configuration: Development - Single node, 1x shared CPU, 256MB RAM, 1GB disk
Creating postgres cluster in organization personal
Creating app...
Setting secrets on app nook-stop-db...
Provisioning 1 of 1 machines with image flyio/postgres:14.6
Waiting for machine to start...
Machine 3d8dd57ce21738 is created
==> Monitoring health checks
Waiting for 3d8dd57ce21738 to become healthy (started, 0/3)
If I ^C out of this, I’ll get some more output along with credentials that makes it seem like my database actually was created…
==> Monitoring health checks
Waiting for 3d8dd57ce21738 to become healthy (started, 0/3)
^C
Postgres cluster my-db created
Username: postgres
Password: <snip>
Hostname: nook-stop-db.internal
Proxy port: 5432
Postgres port: 5433
Connection string: postgres://postgres:<snip>@my-db.internal:5432
Save your credentials in a secure place -- you won't be able to see them again!
Connect to postgres
Any app within the David Celis organization can connect to this Postgres using the above connection string
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/
… but attempting to do anything with it will give me 500 errors:
$ fly postgres attach my-db -a my-db
Error machines could not be retrieved failed to list VMs: request returned non-2xx status, 500