Substrate: Snappy disabled with librocksdb 5.14.3, unable to create genesis file

Created on 11 Jan 2019  路  2Comments  路  Source: paritytech/substrate

When using rocksdb 5.14.3 along with the substrate-node-template, starting a new chain fails with the following error:

2019-01-11 11:12:03 Substrate Node
2019-01-11 11:12:03   version 0.9.0-d5ffa1f-x86_64-macos
2019-01-11 11:12:03   by Parity Technologies, 2017, 2018
2019-01-11 11:12:03 Chain specification: Development
2019-01-11 11:12:03 Node name: imminent-purpose-0856
2019-01-11 11:12:03 Roles: AUTHORITY
Error: Backend error: Invalid argument: Compression type Snappy is not linked with the binary.

To solve this issue, we need to downgrade to librocksdb 5.14.2.

Proposed solution:

https://github.com/rust-rocksdb/rust-rocksdb/commit/16a49d97060ca346de95d32037079d4429bc788a#diff-90e9c5f430a85c021bdd079b3839c573

They started to enable the feature in rocksdb. but rocksdb-sys does not have the feature enabled by default...

So by updating rocksdb-sys, snappy gets disabled with the "old" rocksdb

So we either update rocksdb in my branch of parity-common (I would not want to do that). Or we start upstreaming our changes of rocksdb and switch to that ( I would recommend that!).

I2-bug 馃悳

Most helpful comment

Hi, I've tried your branch and it fixes the problem for me, thanks!

All 2 comments

@shawntabrizi could you try out the PR and confirm if that fixes it (for now)?

Hi, I've tried your branch and it fixes the problem for me, thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AurevoirXavier picture AurevoirXavier  路  3Comments

athei picture athei  路  4Comments

xlc picture xlc  路  5Comments

tomaka picture tomaka  路  5Comments

Kalanamith picture Kalanamith  路  6Comments