mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
database "vaultwarden" has a collation version mismatch #1627
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Stunt0265 on GitHub (Jul 5, 2023).
Running the latest version of Vaultwarden on Docker on Synology NAS. Using latest version of Postgres, 15.3-1.pgdg120+1.
Just started getting this today:
WARNING: database "vaultwarden" has a collation version mismatch DETAIL: The database was created using collation version 2.31, but the operating system provides version 2.36. HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE vaultwarden REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.
@tessus commented on GitHub (Jul 5, 2023):
https://github.com/dani-garcia/vaultwarden/wiki/Using-the-MariaDB-%28MySQL%29-Backend#foreign-key-errors-collation-and-charsetEdit: Scratch that. You are not using MySQL.
@BlackDex commented on GitHub (Jul 5, 2023):
I actually doubt it's a Vaultwarden issue. You probably updated your OS which caused this. The message also looks like it's coming from the PostgreSQL server.
I suggest to read the following https://www.postgresql.org/docs/current/sql-altercollation.html
@Stunt0265 commented on GitHub (Jul 5, 2023):
Running this on a NAS and the only OS upgrade would have been Synology OS at some point. And maybe the Postgres docker container.
@BlackDex commented on GitHub (Jul 5, 2023):
I would guess it would have been the PostgreSQL Docker container then. It probably now uses newer library versions and for that you need to do some manual database upgrading commands.
@pparedes1 commented on GitHub (Jul 5, 2023):
I had to login into my postgres database and run the command mentioned in the error to resolve.
docker exec -it postgres /bin/bashwhere postgres is your container name (if you are running locally not required)/bin/psql --username=postgres_usernamewhere postgres_username is your user for the databaseALTER DATABASE vaultwarden_db REFRESH COLLATION VERSION;output was NOTICE: changing version from 2.31 to 2.36exitto close session andexitto close access to container@Stunt0265 commented on GitHub (Jul 5, 2023):
I've tried this multiple times and get no output. Just returns to cursor. I found a similar thread yesterday about Nextcloud.