After `fly pg create` stuck in "Pending"

Hi there, I’ve created a postgres cluster via fly pg create, however it is perma stuck in the “Pending” state:

Creating postgres cluster in organization <redacted org name>
Creating app...
Setting secrets on app <redacted db name>..
Provisioning 1 of 1 machines with image flyio/postgres-flex:15.2@sha256:3a0dfd64a87f166a5f217e4b5e5ffdb87a216e264790e10ef592a8d26cfb15fb
Error failed to launch VM: Post "http://[fdaa:1:88b3::3]:4280/v1/apps/<redacted db name>/machines": connect tcp [fdaa:1:88b3::3]:4280: operation timed out

Hey there,

Which region are you targeting?

Looks like potentially an intermittent issue. Mind trying again?

Region is sjc

 fly pg create \
  --name <redacted name> \
  --org <redacted org> \
  --region sjc \
  --initial-cluster-size 1 \
  --vm-size shared-cpu-1x \
  --volume-size 1

And yes still seems to be hanging… and ends up creating a DB in the “Pending” state.

Could potentially be an issue with your local agent.

I would try restarting your agent with:

fly agent restart

If that hangs for whatever reason, you should be able to kill it with:

pkill -9 -f fly.agent

If that doesn’t work, let me know.

That worked thank you!

1 Like

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