valeriansaliou / sonic

🦔 Fast, lightweight & schema-less search backend. An alternative to Elasticsearch that runs on a few MBs of RAM.
https://crates.io/crates/sonic-server
Mozilla Public License 2.0
20.13k stars 578 forks source link

Unable to build Sonic using Dockerfile from this repository #287

Open ghost opened 2 years ago

ghost commented 2 years ago

Hello. The Docker image is quite outdated, so I'm trying to build it myself. I tried both in Docker and on my host system (cargo build --release), but both fail with the following error: image I checked all issues that could be related to this, but none helped.

ghost commented 2 years ago

Fixed by downgrading rocksdb. Apparently, 0.18 is causing issues. 0.17 is fine.

ghost commented 2 years ago

@valeriansaliou pinging since you didn't seem to notice

valeriansaliou commented 2 years ago

master is not yet released, so this comes at no warranty until I try to build it myself, please use the Docker image provided for the latest release. I'm also open to PRs fixing this on the Docker image.

ghost commented 2 years ago

master is not yet released, so this comes at no warranty until I try to build it myself, please use the Docker image provided for the latest release. I'm also open to PRs fixing this on the Docker image.

I needed whatlang optimizations, that's why I used master. This is not a problem related to the Docker image, but rather to Sonic's dependencies.

valeriansaliou commented 2 years ago

Rolled back rocksdb from 0.18 to 0.17, as I can verify this is a general issue which affect all builds in --release mode, even a local one here on my macOS system. Note that building in debug mode works fine.