add tag
Big Clyde
We are attempting to upgrade Postgres 10.10 to 12.4 using pg_upgrade on a Windows 2016 Server machine using the command

> "C:/Program Files/PostgreSQL/12/bin/pg_upgrade.exe” --old-datadir "C:/pgdata/10/data" --new-datadir "C:/pgdata/12/data" --old-bindir "C:/Program Files/PostgreSQL/10/bin" --new-bindir "C:/Program Files/PostgreSQL/12/bin"

It fails with the error

> could not get pg_ctl version output from "C:/Program Files/PostgreSQL/10/bin/pg_ctl" --version Failure, exiting

Running pg_ctl – V from the command line correctly identifies version 10.10.

This is on a sandbox machine but both installs have been tested and are connectable, writeable and readable.
The command is being run under the ‘postgres’ Windows user from an empty, writeable directory.
Both Services are stopped.

I haven’t had any success Googling the error, so does anyone know the cause and how to get past it?

Thank you

This room is for discussion about this question.

Once logged in you can direct comments to any contributor here.

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.