openbazaar-go
openbazaar-go copied to clipboard
Gracefully handle schema migration "Out of Bounds" errors
When a user who has run a server binary on a givenDataDirectory
it will be migrated to that binaries currently expected schema if it has not already done so. When a givenDataDirectory
is provided to a earlier version of the server binary, a cryptic "Out of Bounds" error is thrown. Instead, a user should see an error similar to the following:
Cannot use data at %s with schema version %d. Unknown schema version.
New error behavior:
OpenBazaar Server v0.13.0
13:01:05.912 [DEBUG] [core/CheckAndSetUlimit] Successfully raised file descriptor limit to 32000
13:01:05.917 [ERROR] [repo/MigrateUp] binary can migrate schemas up to version 016 but this schema is already at 019
unable to migrate unknown schema
Hello,
I am building the openbazaar-go on Ubuntu 20.04 with Go 1.11.13 and it compiles up fine, but when I try to start it, I get an error:
" $ ./openbazaard init 2021/10/09 13:24:54 binary can migrate schemas up to version 034 but this schema is already at 036 unable to migrate unknown schema " I tried the latest master version and also v0.14.6 but the results are the same.
Also, I can build on Windows 10 and it seems to run, but on Linux there is this problem.
Can you please help? Thanks in advance and have a good day.