Coder Social home page Coder Social logo

conduit_toolbox's Introduction

🧰 Conduit Toolbox 🦀

Helper tools for Conduit, a matrix homeserver in rust.

This repository provides binaries to wrangle your conduit homeserver with.

Tools

conduit_sled_to_sqlite

This tool is no longer available on the main branch, go to with-sled to download from there.

conduit_migrate

This tool provides generic migration between heed, sqlite, persy, and rocksdb conduit databases.

Installing

For the best experience, compile this toolbox locally on your server;

  1. Download and install rust, see rustup for more.
  2. Be sure that the rust executables are on your $PATH
  3. You may want to have a compiler and build tools installed on your system, or else cargo will complain about not being able to "link" or "compile" with cc.
    • on debian/ubuntu-based systems you can install this with sudo apt install build-essential
  4. cargo install --locked --git https://github.com/shadowjonathan/conduit_toolbox conduit_migrate

(updating only requires running that last line again)

conduit_toolbox's People

Contributors

cobaltcause avatar shadowjonathan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

conduit_toolbox's Issues

Installation method does not work

The installation method suggested in README.md does not work:

cargo install --locked --git https://github.com/shadowjonathan/conduit_toolbox
    Updating git repository `https://github.com/shadowjonathan/conduit_toolbox`
error: multiple packages with binaries found: conduit_migrate, conduit_sled_to_sqlite

RocksDB fixup tool

@timokoesters:

Okay short summary for you: rocksdb has a bug where it always sets a wrong compressions option if a specific rust feature is enabled, but we want to use another, incompatible, compression option. That means all people currently using rocksdb want to migrate from "rocksdb with feature A" to "rocksdb with feature B"

I'd rather want to have a fixup tool for this, so someone can run it "to just fix it"

Unable to migrate from rocks to sqlite

I was trying to use this tool to move my conduit database from rocksdb to sqlite and it does not work correctly. I get the following error:

% conduit_migrate -f rocks -t sqlite -s conduit -d exit
[tools/migrate/src/main.rs:164:5] &src_dir = "/home/user/conduit"
[tools/migrate/src/main.rs:164:5] &dst_dir = "/home/user/exit"
Error: Corruption: unknown checksum type 4 from footer of /home/user/conduit/006562.sst, while checking block at offset 1035 size 79

It seems as if there is a problem with that particular file, however conduit does not complain about any database problems.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.