Open jeryldev opened 1 month ago
I think you have to use a stable release of TigerBeetle (i.e. download the binaries from here) or (if you want to build TigerBeetle locally) pass the right flags to set its release number to the correct version, otherwise the client and server can't agree on a version and abort like you're seeing.
I am also not able to use tigerbeetlex as a dependency at the moment. Here is the repo for reference: https://github.com/jeryldev/hello
hello (main) $ iex -S mix
Erlang/OTP 27 [erts-15.0.1] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit:ns]
Interactive Elixir (1.17.2) - press Ctrl+C to exit (type h() ENTER for help)
iex [12:07 :: 1] > valid_opts = [
... [12:07 :: 1] > name: :tb,
... [12:07 :: 1] > cluster_id: <<0::128>>,
... [12:07 :: 1] > addresses: ["3000"]
... [12:07 :: 1] > ]
[
name: :tb,
cluster_id: <<0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0>>,
addresses: ["3000"]
]
iex [12:07 :: 2] > {:ok, pid} = TigerBeetlex.Connection.start_link valid_opts
{:ok, #PID<0.360.0>}
iex [12:07 :: 3] > error(message_bus): error connecting to replica 0: error.ConnectionRefused
error(message_bus): error connecting to replica 0: error.ConnectionRefused
error(message_bus): error connecting to replica 0: error.ConnectionRefused
error(message_bus): error connecting to replica 0: error.ConnectionRefused
error(message_bus): error connecting to replica 0: error.ConnectionRefused
error(message_bus): error connecting to replica 0: error.ConnectionRefused
error(message_bus): error connecting to replica 0: error.ConnectionRefused
error(message_bus): error connecting to replica 0: error.ConnectionRefused
error(message_bus): error connecting to replica 0: error.ConnectionRefused
error(message_bus): error connecting to replica 0: error.ConnectionRefused
error(message_bus): error connecting to replica 0: error.ConnectionRefused
error(message_bus): error connecting to replica 0: error.ConnectionRefused
error(message_bus): error connecting to replica 0: error.ConnectionRefused
BREAK: (a)bort (A)bort with dump (c)ontinue (p)roc info (i)nfo
(l)oaded (v)ersion (k)ill (D)b-tables (d)istribution
error(message_bus): error connecting to replica 0: error.ConnectionRefused
error(message_bus): error connecting to replica 0: error.ConnectionRefused
error(message_bus): error connecting to replica 0: error.ConnectionRefused
error(message_bus): error connecting to replica 0: error.ConnectionRefused
error(message_bus): error connecting to replica 0: error.ConnectionRefused
error(message_bus): error connecting to replica 0: error.ConnectionRefused
error(message_bus): error connecting to replica 0: error.ConnectionRefused
^Chello (main) $
Steps to reproduce
Error messages shown after running
mix test
Logs shown on the running cluster
./tigerbeetle start --addresses=3000 --development 0_0.tigerbeetle
Screenshot