Fork me on GitHub
#datomic
<
2023-11-23
>
magnars10:11:45

Anybody know of any resources on how to "decant" a Datomic database? My google-fu is failing me.

souenzzo13:11:41

what does decant means? I could not find anything about "decant a database" in general

magnars14:11:42

I'm not sure where I first heard it - possibly Day of Datomic? - but it has been used to mean pouring a filtered version of all transactions in order into a new Datomic database.

wevrem00:11:18

@U09R86PA4 mentioned it briefly on a recent episode of the ClojureStream podcast. That was the first time I’d heard the word used that way.

twashing17:11:59

My Transactor is successfully running on host 0.0.0.0.

####
protocol=sql
host=0.0.0.0
port=4334
But when trying to connect to the Transactor, the Peer still gives the error AMQ219007: Cannot connect to server(s) (B). And I’m running with the command (A). How can I troubleshoot this? The report in /tmp/clojure-13766960021124183670.edn is just a Stacktrace of the ActiveMQNotConnectedException.
# A
./bin/run -m datomic.peer-server \
    -h 0.0.0.0 \
    -p 8998 \
    -a $PEER_ACCESSKEY,$PEER_SECRET \
    -d "$DATOMIC_DB_DB,datomic:"
# B
Execution error (ActiveMQNotConnectedException) at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl/createSessionFactory (ServerLocatorImpl.java:701).
AMQ219007: Cannot connect to server(s). Tried with all available servers.

Full report at:
/tmp/clojure-13766960021124183670.edn

favila17:11:23

0.0.0.0 is a bind address only not a destination address. The transactor must have a routeable host or alt-host for peers to connect to

favila17:11:24

The host and alt-host values are written to storage, peers use those values to connect to the transactor

twashing03:11:03

@U09R86PA4 Got things solved finally. Your input helped a great deal. Didn’t want to forget to say thanks 👏:skin-tone-6: