-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[Bug] v0.23 does not work with PostgreSQL #1956
Comments
most of the time we dont even check this error and checking the string for particular errors is very flake as different databases (sqlite and psql) use different error messages, and some users might have it in other languages. Fixes juanfont#1956 Signed-off-by: Kristoffer Dalby <[email protected]>
Fix is up in #1959, we checked the postgres error by string, and since you have yours in German, it did not match. I would recommend you to change the postgres language to english, we will try to avoid this in the future, but since there is no uniform error checking for us in postgres, I will not rule out that this can happen again in the future, if there is a larger necessity for a check like this, then we might opt for not supporting other languages if necessary. |
most of the time we dont even check this error and checking the string for particular errors is very flake as different databases (sqlite and psql) use different error messages, and some users might have it in other languages. Fixes juanfont#1956 Signed-off-by: Kristoffer Dalby <[email protected]>
most of the time we dont even check this error and checking the string for particular errors is very flake as different databases (sqlite and psql) use different error messages, and some users might have it in other languages. Fixes #1956 Signed-off-by: Kristoffer Dalby <[email protected]>
Is this a support request?
Is there an existing issue for this?
Current Behavior
The startup of 0.23 apparently requires a certain postgresql database schema which is not present, even when upgrading from a 0.22 installation. It shows this error in the logs:
Which roughly translates as "column last_successful_update from relation nodes does not exist".
This error occurs on a completely new database as well as upgrading from a 0.22 installation with an already pre-populated database (a tailnet and some nodes are present).
Expected Behavior
The headscale container comes up just fine, or is able to successfully complete the migration.
Steps To Reproduce
Environment
Runtime environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: