Skip to content
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

PostgreSQL upgrade 13-alpine to 14/15-alpine #8771

Closed
2 tasks done
tomkolp opened this issue Feb 9, 2023 · 4 comments
Closed
2 tasks done

PostgreSQL upgrade 13-alpine to 14/15-alpine #8771

tomkolp opened this issue Feb 9, 2023 · 4 comments
Assignees
Labels
documentation Improvements or additions to the documentation.
Milestone

Comments

@tomkolp
Copy link
Contributor

tomkolp commented Feb 9, 2023

Describe the issue

I tried to upgrade PostgreSQL from version 13 to 14.
I followed the docs (completed all steps):
https://docs.weblate.org/en/latest/admin/install/docker.html#upgrading-postgresql-container
After starting the stack, I get a message about the wrong password and the lack of scram-sha-256 encryption.
How to switch to scram-sha-256 encryption from plaintext?

I already tried

  • I've read and searched the documentation.
  • I've searched for similar issues in this repository.

Steps to reproduce the behavior

1I followed the docs (completed all steps):
https://docs.weblate.org/en/latest/admin/install/docker.html#upgrading-postgresql-container
2After starting the stack, I get a message about the wrong password and the lack of scram-sha-256 encryption.

Expected behavior

Please help me update PostgreSQL. It's probably in the documentation.

Screenshots

No response

Exception traceback

No response

Additional context

No response

@tomkolp tomkolp added the question This is more a question for the support than an issue. label Feb 9, 2023
@github-actions
Copy link

github-actions bot commented Feb 9, 2023

This issue looks more like a support question than an issue. We strive to answer these reasonably fast, but purchasing the support subscription is not only more responsible and faster for your business but also makes Weblate stronger.

In case your question is already answered, making a donation is the right way to say thank you!

@nijel
Copy link
Member

nijel commented Feb 9, 2023

PostgreSQL 14 seems to default to scram-sha-256 for POSTGRES_HOST_AUTH_METHOD. The question is: Where is the error – is the password wrongly stored in PostgreSQL, or is the client library having problems? What is the actual error message?

The client library should work just fine with that because we're already using PostgreSQL 15 in our CI since WeblateOrg/docker-compose#160. So most likely it's the password in the database, in that case recovery should be

docker-compose exec -T database psql --username weblate --dbname postgres -c "ALTER USER weblate WITH PASSWORD 'weblate'"

@nijel nijel added documentation Improvements or additions to the documentation. and removed question This is more a question for the support than an issue. labels Feb 9, 2023
@nijel nijel self-assigned this Feb 9, 2023
@nijel nijel transferred this issue from WeblateOrg/docker Feb 9, 2023
@nijel nijel added this to the 4.16 milestone Feb 9, 2023
@nijel nijel closed this as completed in 67b583f Feb 9, 2023
@github-actions
Copy link

github-actions bot commented Feb 9, 2023

Thank you for your report; the issue you have reported has just been fixed.

  • In case you see a problem with the fix, please comment on this issue.
  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

@tomkolp
Copy link
Contributor Author

tomkolp commented Feb 10, 2023

@nijel I confirm this solution works. We managed to move from PostgresSQL 13 straight to version 15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to the documentation.
Projects
None yet
Development

No branches or pull requests

2 participants