-
Notifications
You must be signed in to change notification settings - Fork 53
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: wrong user_version in sqlite database that blocks the run of a Waku node #2027
Comments
I tested what 0.14.0 -> user_version is set to 0 The version should have been != 0 in all cases, and the version 0.19.0 unveiled an issue with that. |
Once @apentori is back from OOO, he will share the current versions in the databases within the Status fleets. |
The versions are the following :
|
Thanks so much for the info @apentori! Very interesting! After further analysis, I can explain the issue more accurately:
Summarizing: the problem happens for docker containers that create their SQLite database from versions [0.14.0, 0.18.0]. |
Weekly Update
|
Problem
A Waku node with Store protocol mounted and using SQLite as archive driver, fails to start due to a wrong
user_version
value in the SQLite database.The node finds the SQLite file with
user_version
PRAGMA set to 0, and that makes it think that this database schema needs to be upgraded to the current schema version, which is 7. And, the node crashes because there is no upgrade script.node: To see the current value of
user_version
, just enter the database withsqlite3
app and typePRAGMA user_version;
.Impact
The node doesn't start and shows the next message:
To reproduce
It happened when upgrading from
0.18.0
to0.19.0
, and the node should mount Store with SQLite.Expected behavior
The node starts as usual and the
user_version
present within the PRAGMA database is 7.The text was updated successfully, but these errors were encountered: