-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Break database made with Alpine-based container #71
Comments
Ah yep, for Alpine-based builds you'll probably want to use an approach more similar to #13 |
@tianon Please add a big fat warning to the README instead of just pinning this issue. |
I'm not sure how much more clear I could make that users should not blindly use this project as-is 😕 This is the very first line of the project readme (with a similar notice in the repository description):
I don't actually actively maintain this project, and I certainly don't get paid to do so. There hasn't been a single functional change to anything here in roughly seven years (the last change to the |
Sorry, I didn't mean to offend. Its just that I know several people that are only drawn towards postgres because there is an official alpine option, so I expected these problems to be a fairly common occurrence when upgrading using your method, hence the proposed warning. |
For people that run Alpine based PostgreSQL images, this "automatic upgrade" container might be of interest: https://github.com/pgautoupgrade/docker-pgautoupgrade 2024.09.30 Update - There are Debian (Bookworm) based ones in that repo now too, not just Alpine. Those will work for users of Debian based containers. 😄 |
This comment was marked as abuse.
This comment was marked as abuse.
I've opened #108 to kick of an alpine version for this tool! Please give it a review :) |
To be clear, I do not believe Alpine Linux is actually "supported" by PostgreSQL upstream (and the support for it in Docker Official Images is more of a "it builds and mostly works" kind of thing, just like Alpine support in many of the official images there; there's even a big Alpine variant caveat in that image's readme on Docker Hub). |
I tried to update a postgres database running on
postgres:12.13-alpine3.17
topostgres:14.6-alpine3.17
(orpostgres:14.6-bulleyes
).Everything worked, however I noticed that the software using it couldn't commit anything to it anymore.
This error appears every time it tries to write to the database:
ERROR: duplicate key value violates unique constraint "[REDACTED]"
SQL error updateCachedValue: ERROR: current transaction is aborted, commands ignored until end of transaction block
(aROLLBACK;
didn't solve it)My guesses:
After looking at your Dockerfile it looks like you're running the "updater" on a Debian container.
Database made with an Alpine-based container are known to not be compatible with Debian-based container (and vice versa), it looks like it's the problem here.
A solution that might work is to have new containers where the "updater" run on Alpine. For now I think you should add a warning that says that this project isn't compatible with database made with alpine-based container.
The text was updated successfully, but these errors were encountered: