Fork me on GitHub
#xtdb
<
2022-05-06
>
Anthony Bui07:05:03

Hi again, running an in-memory instance of XTDB through Java on Mac works fine, but trying to introduce RocksDB (for storing tx, docs, indexes) gives me the error of "java is loading libcrypto in an unsafe way". If running XTDB in-memory through terminal, this was solved by setting environment variables. However I am trying to run this through JVM and still get the error... here is my config.json:

{
    "xtdb/index-store": {
        "kv-store": {
          "xtdb/module": "xtdb.rocksdb/->kv-store",
          "db-dir": "data/index-store"
        }
      },
      "xtdb/document-store": {
        "kv-store": {
          "xtdb/module": "xtdb.rocksdb/->kv-store",
          "db-dir": "data/doc-store"
        }
      },
      "xtdb/tx-log": {
        "kv-store": {
          "xtdb/module": "xtdb.rocksdb/->kv-store",
          "db-dir": "data/tx-log"
        }
      }
      "xtdb.lucene/lucene-store": {
        "db-dir": "data/dev/lucene-dir"
      },
      "xtdb.http-server/server": {
        "port": 9999
      }
}

Hukka07:05:34

I'm not on mac, but I recall that you had to have the latest beta, not release, to have a mac compatible Rocks and XTDB

Hukka07:05:42

Well, M1 Mac. I guess x86 has always worked

Anthony Bui07:05:13

thanks for the swift reply, i'm not on M1 but will try!

dgb2307:05:53

There is also a workaround if you're on an older machine that I've used some weeks ago: try these env variables

XTDB_DISABLE_LIBGCRYPT=true XTDB_ENABLE_BYTEUTILS_SHA1=true