`fly pg backup create` always fails

I tried running the following command to create a backup for my Fly.io PostgreSQL database:

❯ fly pg backup create -a <my-pg-appname>

However, it fails with the following error message:

Error: failed to exec on VM <vmid>: deadline_exceeded: Post "http://unix/v1/exec": context deadline exceeded (Client.Timeout exceeded while awaiting headers) (Request ID: <reqid>)

Afterward, when I run fly pg backup list, the status shows as DONE, but it still feels suspicious and unreliable.

The issue is that the command that issues the backup is blocking and will eventually timeout. The backup should still work, but it’s not pretty. It should be a fairly easy fix, but prioritizing it has been tricky.

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