Migration 0.9.0 -> 1.0.1: Unable to decode persisted data file #884

Closed
opened 2024-09-25 18:49:33 +00:00 by vk · 3 comments

Hello,

I'm preparing the migration of my cluster from 0.9.0 to the latest 1.0.1.

As a rehearsal, I have cloned one of the nodes' meta folder (after clean shutdown), and moved it to a test VM with 1.0.1 installed.

I'm getting the following error entry in log, during the first (only) updated node startup:

ERROR garage_util::persister: Unable to decode persisted data file /garage/meta/data_layout

Should I be worried?

Here's the full log of the first node startup:

2024-09-25T18:37:02.798423Z  INFO garage::server: Loading configuration...
2024-09-25T18:37:02.798601Z  INFO garage::server: Initializing Garage main data store...
2024-09-25T18:37:02.798633Z  INFO garage_model::garage: Opening database...
2024-09-25T18:37:02.798641Z  INFO garage_db::open: Opening LMDB database at: /garage/meta/db.lmdb
2024-09-25T18:37:02.799118Z  INFO garage_model::garage: Initializing RPC...
2024-09-25T18:37:02.799129Z  WARN garage_rpc::replication_mode: Legacy config option replication_mode in use. Please migrate to replication_factor and consistency_mode
2024-09-25T18:37:02.799132Z  INFO garage_model::garage: Initialize background variable system...
2024-09-25T18:37:02.799134Z  INFO garage_model::garage: Initialize membership management system...
2024-09-25T18:37:02.799171Z  INFO garage_rpc::system: Node ID of this node: 77f0e939aaa1bf6e
2024-09-25T18:37:02.858039Z  INFO garage_model::garage: Initialize block manager...
2024-09-25T18:37:02.858125Z ERROR garage_util::persister: Unable to decode persisted data file /garage/meta/data_layout
2024-09-25T18:37:02.858703Z  INFO garage_model::garage: Initialize bucket_table...
2024-09-25T18:37:02.858782Z  INFO garage_model::garage: Initialize bucket_alias_table...
2024-09-25T18:37:02.858842Z  INFO garage_model::garage: Initialize key_table_table...
2024-09-25T18:37:02.858925Z  INFO garage_model::garage: Initialize block_ref_table...
2024-09-25T18:37:02.858988Z  INFO garage_model::garage: Initialize version_table...
2024-09-25T18:37:02.859048Z  INFO garage_model::garage: Initialize multipart upload counter table...
2024-09-25T18:37:02.859165Z  INFO garage_model::garage: Initialize multipart upload table...
2024-09-25T18:37:02.859231Z  INFO garage_model::garage: Initialize object counter table...
2024-09-25T18:37:02.859300Z  INFO garage_model::garage: Initialize object_table...
2024-09-25T18:37:02.859355Z  INFO garage_model::garage: Load lifecycle worker state...
2024-09-25T18:37:02.859406Z  INFO garage_model::garage: Initialize K2V counter table...
2024-09-25T18:37:02.859482Z  INFO garage_model::garage: Initialize K2V subscription manager...
2024-09-25T18:37:02.859487Z  INFO garage_model::garage: Initialize K2V item table...
2024-09-25T18:37:02.859550Z  INFO garage_model::garage: Initialize K2V RPC handler...
2024-09-25T18:37:02.859566Z  INFO garage::server: Initializing background runner...
2024-09-25T18:37:02.859575Z  INFO garage::server: Spawning Garage workers...
2024-09-25T18:37:02.859601Z  INFO garage::server: Initialize Admin API server and metrics collector...
2024-09-25T18:37:02.923904Z  INFO garage::server: Launching internal Garage cluster communications...
2024-09-25T18:37:02.923927Z  INFO garage::server: Create admin RPC handler...
2024-09-25T18:37:02.923941Z  INFO garage::server: Initializing S3 API server...
2024-09-25T18:37:02.923948Z  INFO garage::server: Initializing web server...
...

Thanks!

Hello, I'm preparing the migration of my cluster from 0.9.0 to the latest 1.0.1. As a rehearsal, I have cloned one of the nodes' meta folder (after clean shutdown), and moved it to a test VM with 1.0.1 installed. I'm getting the following error entry in log, during the first (only) updated node startup: ` ERROR garage_util::persister: Unable to decode persisted data file /garage/meta/data_layout ` Should I be worried? Here's the full log of the first node startup: ``` 2024-09-25T18:37:02.798423Z INFO garage::server: Loading configuration... 2024-09-25T18:37:02.798601Z INFO garage::server: Initializing Garage main data store... 2024-09-25T18:37:02.798633Z INFO garage_model::garage: Opening database... 2024-09-25T18:37:02.798641Z INFO garage_db::open: Opening LMDB database at: /garage/meta/db.lmdb 2024-09-25T18:37:02.799118Z INFO garage_model::garage: Initializing RPC... 2024-09-25T18:37:02.799129Z WARN garage_rpc::replication_mode: Legacy config option replication_mode in use. Please migrate to replication_factor and consistency_mode 2024-09-25T18:37:02.799132Z INFO garage_model::garage: Initialize background variable system... 2024-09-25T18:37:02.799134Z INFO garage_model::garage: Initialize membership management system... 2024-09-25T18:37:02.799171Z INFO garage_rpc::system: Node ID of this node: 77f0e939aaa1bf6e 2024-09-25T18:37:02.858039Z INFO garage_model::garage: Initialize block manager... 2024-09-25T18:37:02.858125Z ERROR garage_util::persister: Unable to decode persisted data file /garage/meta/data_layout 2024-09-25T18:37:02.858703Z INFO garage_model::garage: Initialize bucket_table... 2024-09-25T18:37:02.858782Z INFO garage_model::garage: Initialize bucket_alias_table... 2024-09-25T18:37:02.858842Z INFO garage_model::garage: Initialize key_table_table... 2024-09-25T18:37:02.858925Z INFO garage_model::garage: Initialize block_ref_table... 2024-09-25T18:37:02.858988Z INFO garage_model::garage: Initialize version_table... 2024-09-25T18:37:02.859048Z INFO garage_model::garage: Initialize multipart upload counter table... 2024-09-25T18:37:02.859165Z INFO garage_model::garage: Initialize multipart upload table... 2024-09-25T18:37:02.859231Z INFO garage_model::garage: Initialize object counter table... 2024-09-25T18:37:02.859300Z INFO garage_model::garage: Initialize object_table... 2024-09-25T18:37:02.859355Z INFO garage_model::garage: Load lifecycle worker state... 2024-09-25T18:37:02.859406Z INFO garage_model::garage: Initialize K2V counter table... 2024-09-25T18:37:02.859482Z INFO garage_model::garage: Initialize K2V subscription manager... 2024-09-25T18:37:02.859487Z INFO garage_model::garage: Initialize K2V item table... 2024-09-25T18:37:02.859550Z INFO garage_model::garage: Initialize K2V RPC handler... 2024-09-25T18:37:02.859566Z INFO garage::server: Initializing background runner... 2024-09-25T18:37:02.859575Z INFO garage::server: Spawning Garage workers... 2024-09-25T18:37:02.859601Z INFO garage::server: Initialize Admin API server and metrics collector... 2024-09-25T18:37:02.923904Z INFO garage::server: Launching internal Garage cluster communications... 2024-09-25T18:37:02.923927Z INFO garage::server: Create admin RPC handler... 2024-09-25T18:37:02.923941Z INFO garage::server: Initializing S3 API server... 2024-09-25T18:37:02.923948Z INFO garage::server: Initializing web server... ... ``` Thanks!
Owner

If I remembrer correctly this could be to the node ID being different

If I remembrer correctly this could be to the node ID being different
Author

The node id was preserved as per garage node id (it's a filesystem-level clone of one of the production nodes, so everything is there, both data and the meta, only the network is off). I suspect I may safely ignore this message, yet I'd really like to be totally sure before proceeding.

Thanks

The node id was preserved as per `garage node id` (it's a filesystem-level clone of one of the production nodes, so everything is there, both data and the meta, only the network is off). I suspect I may safely ignore this message, yet I'd really like to be totally sure before proceeding. Thanks
Owner

Yes it's fine to ignore, sorry for the late answer

Yes it's fine to ignore, sorry for the late answer
lx closed this issue 2024-11-07 11:07:18 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Deuxfleurs/garage#884
No description provided.