-
Notifications
You must be signed in to change notification settings - Fork 379
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
tarantool does not start: Tuple field 6 type does not match... #2950
Comments
Let me explain what "does not start" means in practice.
This is the worst thing that can happen to a databaseThanks God it happened in the test environment, not in production. |
I did some debugging. Here is what the stack looks like:
|
First, please, this is not a data loss, this looks like an upgrade issue. Beginning with 1.7.6 we started to enforce space:format data types, so if you have a string column in space:format, you won't be able to insert a number in it. Please downgrade to the original version you used, fix the conflicting data or remove space formatting, then you should be able to upgrade OK. |
You could also use 'force_recovery' to skip the offending tuple, but it is of course the last resort. |
Huff... Thanks.
It's not data. It's metadata. A description of spaces in the database. The space name that tarantool complains on is "_space". So 'force_recovery' does not help. I end up with an empty database if I use 'force_recovery'. |
Downgrade to 1.7.5 did not work.
This is an upgrade issue that lead to a data loss. |
* stepan-mitkin <notifications@github.com> [17/11/27 23:21]:
Downgrade to 1.7.5 did not work.
```
2017-11-27 21:15:23.531 [16508] main/101/dbg.lua I> recovery start
2017-11-27 21:15:23.531 [16508] main/101/dbg.lua I> recovering from `/home/stipan/tmp/tara//00000000000093350726.snap'
2017-11-27 21:15:23.555 [16508] main/101/dbg.lua schema.h:184 E> ER_NO_SUCH_SPACE: Space '276' does not exist
2017-11-27 21:15:23.555 [16508] main/101/dbg.lua F> can't initialize storage: Space '276' does not exist
```
> this is not a data loss, this looks like an upgrade issue.
This _is_ an upgrade issue that lead to a data loss.
Could you send us your snapshot? We'll see what can be done.
Thanks.
…--
Konstantin Osipov, Moscow, Russia, +7 903 626 22 32
http://tarantool.org - www.twitter.com/kostja_osipov
|
It seems like you store in options of one of your spaces some data not allowed by a format. Can you please show your _space content? (You said, that you still have the same schema working on a production). It can be done by box.space._space:select{}. |
I right now had tried to run 1.7.5 from 1.7.6 snapshot using force_recovery = true, and it has started ok. |
Write me in the Telegram (@Gerold103). I have wrote a script that can help. |
The script helped. Thanks a lot!
Stop tarantool. |
Here is how I will upgrade tarantool from now on:
Any deviation from this scenario may lead to upgrade issues. |
tarantool server does not start
This is a catastrophe. Please help.
How it happened:
No modifications to the schema have been made recently.
Here is the log:
The text was updated successfully, but these errors were encountered: