Been getting this error for any fly pg command. Already manually updated the image to 15.8
flyctl image show
Image Details
MACHINE ID REGISTRY REPOSITORY TAG VERSION DIGEST LABELS
32871545a5e138 docker-hub-mirror.fly.io flyio/postgres-flex 15.8 N/A sha256:5016ffb34e66eca43d4f9ef2f898c166257bd28bd5095c41d049a5e3be15caf5
➜ dbtmp git:(main) ✗ fly pg connect
Error: command is not compatible with this image
Hi… This seems to be the culprit. My own PG instance has a v0.0.62 there, and the source code surrounding that particular message specifically is checking the ImageVersion:
// Validate image version to ensure it's compatible with this feature.
if machine.ImageVersion() == "" || machine.ImageVersion() == "unknown" {
return fmt.Errorf("command is not compatible with this image")
}
For added context, this particular app is a --fork-from another pg app, so the machine is very recently created. The source pg app has version v0.0.46.
Weirdly, I ran the exact same command I use to create the pg app again, and the new app had a valid version (same 0.0.46). I can only conclude that this is a transient issue.