Open owenthereal opened 7 months ago
+1
This has been broken since dec 2023. Exact same error
Operating system: macos and win10 fly version v0.2.25
Maybe related to https://github.com/superfly/flyctl/commit/fe493faeb922ce003eeda76527d599732314c1aa
I recently ran into this when using a forked image of postgres-flex. To fix it, I had to change my docker build
command to assign my local flyctl version to a VERSION
arg in the docker image:
docker build --build-arg VERSION=$(fly version | cut -d' ' -f2) --platform linux/amd64 .
If you take a look at the Dockerfile for postgres-flex, you'll notice at the top there is a declared arg ARG VERSION=custom
which is later assigned as a docker image label: LABEL fly.version=${VERSION}
.
Then notice the error message:
Error: Malformed version: ustom
"ustom" is "custom" without the "c". This looks to me like their version parser is trying to remove a leading "v" from a version number like v0.2.80
. You can get a version number like this from the fly version
command.
Unfortunately, the fly version
command prints a lot of other information in addition to the version number. To get a correct version number value, you can pipe it to cut
:
fly verision | cut -d' ' -f2
Or you can get it with jq
:
fly version --json | jq -r .Version
If, for whatever reason, rebuilding the docker image is not a simple solution, I noticed you can still connect to your postgres app using the fly proxy
command, as described in their docs.
Please only report specific issues with
flyctl
behavior. Anything like a support request for your application should go to https://community.fly.io. More people watch that space and can help you faster!Describe the bug Briefly, describe what broke and provide the following details:
fly postgres connect
is broken for a postgres-flex image** Paste your
fly.toml
Command output: