-
-
Notifications
You must be signed in to change notification settings - Fork 267
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
Production branch builds are broken due to postgres no longer serving buster repository #3439
Comments
As a temp fix, you can update on line 1, - FROM postgres:13.0
+ FROM postgres:13.16 and on line 18 - RUN awk '$0 ~ /^\t_main "\$@"$/ { print "\tif [[ $1 == cron ]]; then\n\t\techo \"POSTGRES_DB=${POSTGRES_DB}\" > /backups/.env\n\t\techo \"POSTGRES_USER=${POSTGRES_USER}\" >> /backups/.env\n\t\tservice cron start\n\t\tshift\n\tfi" }{ print }' docker-entrypoint.sh > bookwyrm-entrypoint.sh
+ RUN awk '$0 ~ /^\t_main "\$@"$/ { print "\tif [[ $1 == cron ]]; then\n\t\techo \"POSTGRES_DB=${POSTGRES_DB}\" > /backups/.env\n\t\techo \"POSTGRES_USER=${POSTGRES_USER}\" >> /backups/.env\n\t\tservice cron start\n\t\tshift\n\tfi" }{ print }' /usr/local/bin/docker-entrypoint.sh > bookwyrm-entrypoint.sh postgres moved the place of their entrypoint file, so you can't just update postgres. I'm not sure if the package maintainers want a specific version of postgres, so I'm hesitant to add a PR |
I face the same issue I will try your temp fix thanks ! |
I started using:
|
This is necessary to avoid container build failure. See <bookwyrm-social#3439 (comment)>.
This is necessary to avoid container build failure. See <bookwyrm-social#3439 (comment)>.
This is necessary to avoid container build failure. See <bookwyrm-social#3439 (comment)>.
Thanks for this hint - this helped me a lot when moving to my new instance and wondering why the setup crashed. Made my day! |
Describe the bug
When trying to start up bookwyrm on a self hosted server, you can no longer do so as postgres's apt repository no longer includes buster
To Reproduce
Steps to reproduce the behavior:
./bw-dev up
Expected behavior
bookwyrm should build normally
Screenshots
apt reports first
404 Not Found [IP: 147.75.85.69 80]
and then fails with
E: The repository 'http://apt.postgresql.org/pub/repos/apt buster-pgdg Release' does not have a Release file.
Instance
Selfhosted, latest commit on
production
branchThe text was updated successfully, but these errors were encountered: