Error on new install - allow-postgres14-upgrade not found

Dear,
Trying an install of central on fresh ubuntu server 22.04, I had an error with docker compose build :
failed to solve: failed to compute cache key: failed to calculate checksum of ref moby::vwnvxfedg8ihy6c3zhxgmon6m: "/files/allow-postgres14-upgrade": not found

Is there a way to solve it ?
Thanks

Hello @PNPyrenees,
You are welcome to the forum! This is a great community ready to support you on anything anytime both technical and user experience.

Welcome once again.

I commented the line (7) "COPY ./files/allow-postgres14-upgrade ." in file postgres-upgrade.dockerfile and try again.
It looks ok !

But was it a good way to solve my problem ?

Is it entirely fresh? The files/allow-postgres14-upgrade is supposed to be required just for an upgrade but it looks like it might be needed for an install too. For now you can touch /files/allow-postgres14-upgrade and that should let you proceed. We'll look into improving that.

1 Like

It's ok -- you won't need the postgres upgrade for a fresh install and you can revert changes to postgres-upgrade.dockerfile -- but touching the file lets you not modify any of what is considered Central application files.

1 Like

Ok, understand, thank you for helping !

We've added this requirement to run touch ./files/allow-postgres14-upgrade to the docs at https://docs.getodk.org/central-install-digital-ocean/#getting-and-setting-up-central.

3 Likes

FYI, this command is still required when upgrading from older versions of Central. It would be nice if it was stated in the upgrade guide to help somebody out there.
Cheers!

In the second paragraph at https://docs.getodk.org/central-upgrade it says,

You can skip upgrades and directly install the latest version as long as you make sure to follow all relevant upgrade instructions.

Did you miss this? Misunderstand it? I'm not blaming you, I'm asking just to see what we need to change to make it clearer.

I believe I saw that. Maybe I just misinterpreted this line

Central v2023.5, v2024.1: no upgrade notes

I did follow the instructions found at Upgrade Steps to the letter though but I still run into that issue and this one as well.