Postgres collation mismatch after upgrade from 0.55 to 0.56 #2246

Open
opened 2025-11-20 07:06:28 -05:00 by saavagebueno · 0 comments
Owner

Originally created by @PowershellScripter on GitHub (Sep 6, 2025).

Image

To Reproduce

  1. Updated docker compose to newest tag version, leaving postgres at 16 (doesnt support 17 for database upgrade)

Expected behavior

No indexing problems

Are you using NetBird Cloud?

Self-Hosted

NetBird version

0.56.0 & dashboard v2.18.0

netbird-db          | 2025-09-06 11:52:27.552 UTC [1348] WARNING:  database "template1" has a collation version mismatch
netbird-db          | 2025-09-06 11:52:27.552 UTC [1348] DETAIL:  The database was created using collation version 2.36, but the operating system provides version 2.41.
netbird-db          | 2025-09-06 11:52:27.552 UTC [1348] HINT:  Rebuild all objects in this database that use the default collation and run ALTER DATABASE template1 REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.
netbird-db          | 2025-09-06 11:52:28.867 UTC [1356] WARNING:  database "netbird" has a collation version mismatch
netbird-db          | 2025-09-06 11:52:28.867 UTC [1356] DETAIL:  The database was created using collation version 2.36, but the operating system provides version 2.41.
netbird-db          | 2025-09-06 11:52:28.867 UTC [1356] HINT:  Rebuild all objects in this database that use the default collation and run ALTER DATABASE netbird REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.
Originally created by @PowershellScripter on GitHub (Sep 6, 2025). <img width="1321" height="295" alt="Image" src="https://github.com/user-attachments/assets/5d338a03-7226-4871-bf96-7babbcc93390" /> **To Reproduce** 1. Updated docker compose to newest tag version, leaving postgres at 16 (doesnt support 17 for database upgrade) **Expected behavior** No indexing problems **Are you using NetBird Cloud?** Self-Hosted **NetBird version** 0.56.0 & dashboard v2.18.0 ``` netbird-db | 2025-09-06 11:52:27.552 UTC [1348] WARNING: database "template1" has a collation version mismatch netbird-db | 2025-09-06 11:52:27.552 UTC [1348] DETAIL: The database was created using collation version 2.36, but the operating system provides version 2.41. netbird-db | 2025-09-06 11:52:27.552 UTC [1348] HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE template1 REFRESH COLLATION VERSION, or build PostgreSQL with the right library version. netbird-db | 2025-09-06 11:52:28.867 UTC [1356] WARNING: database "netbird" has a collation version mismatch netbird-db | 2025-09-06 11:52:28.867 UTC [1356] DETAIL: The database was created using collation version 2.36, but the operating system provides version 2.41. netbird-db | 2025-09-06 11:52:28.867 UTC [1356] HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE netbird REFRESH COLLATION VERSION, or build PostgreSQL with the right library version. ```
saavagebueno added the triage-needed label 2025-11-20 07:06:28 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2246