fly pg fails with Error: command is not compatible with this image

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")
}

This glitch seems to crop up occasionally, maybe in connection with lower-level Machine problems. Was it recently migrated, by any chance? (You can check with fly m status, in the INFO column.)

[Also, if you do have Support for the corresponding organization, I think this would qualify, :ring_buoy:.]

Hope this helps a little!

Thanks; yeah, I am in contact with support.

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.

1 Like

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