superfly / flyctl

Command line tools for fly.io services
https://fly.io
Apache License 2.0
1.43k stars 240 forks source link

fly pg update not able to resolve image details #1119

Closed rugwirobaker closed 1 year ago

rugwirobaker commented 2 years ago
~/Programming/fly/flyctl(refactor/postgres-launcher)$ ./bin/flyctl machines list --app shaun-machine
1 machines have been retrieved.
View them in the UI here

shaun-machine
ID              IMAGE               CREATED                 LAST UPDATED            STATE   REGION  NAME                    IP ADDRESS
3287359b647e85  flyio/postgres:14.4 2022-07-27T14:23:07Z    2022-07-27T14:24:01Z    started ord     twilight-firefly-4794   fdaa:0:2e26:a7b:9adb:f795:e795:2
~/Programming/fly/flyctl(refactor/postgres-launcher)$ ./bin/flyctl pg update --app shaun-machine
Acquiring lease on postgres cluster
Resolving cluster roles
  3287359b647e85: leader
Error can't get latest image details for :: Unknown repository
rugwirobaker commented 2 years ago

This was due to some commands like flyctl image show and flyctl pg create using machine.Config.ImageRef which were removed from flaps instead of using machine.ImageRef. It will be solved in #1021.

redjonzaci commented 1 year ago

Can we close this since #1021 was merged?