Open pat-s opened 10 months ago
Seeing arm64
, are you running this on a Mac? I would bet that the filesystem share from macOS to the Docker Desktop VM doesn't support the file type of a Unix socket. Maybe change the config to put the sockets elsewhere in the container like /var/run/postgresql/
?
@yosifkit is correct. The new chipsets require that:
docker run --rm \
-v DIR:/var/lib/postgresql \
tianon/postgres-upgrade:12-to-15 \
-c '--socketdir=/var/run/postgresql' \
--link
I can confirm works. @tianon can you maybe add a little blurb in the README? This should also be fine for alternate chipset distributions that have a hard time with unix socket files.
I am trying to update a PG-HA deployed via bitnami in k8s. I have extracted the data as usual. The call looks like
Due to how bitnami creates their structure, I also had to apply the following first:
So, so good. However, it fails and inspecting the logs shows:
I can't wrap my head around what's going on. Checked permissions (all owned by
postgres
), checked no leftovers of other sockets in the data dirs. (NB: using my own arm64 image but also checked with the officialtianon
image). Any ideas or pointers are welcome!(Q: Does it make a difference if the data got extracted from a PG-HA instance? It looks identical to a non-HA one on the first look.)