This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-07-24
Channels
- # admin-announcements (21)
- # announcements (1)
- # beginners (36)
- # boot (48)
- # cider (21)
- # clojure (61)
- # clojure-italy (4)
- # clojure-japan (5)
- # clojure-norway (2)
- # clojure-russia (2)
- # clojure-sg (2)
- # clojure-uk (3)
- # clojurescript (33)
- # core-async (5)
- # core-typed (1)
- # cursive (13)
- # datomic (34)
- # devops (38)
- # editors (24)
- # events (10)
- # ldnclj (14)
- # off-topic (31)
- # onyx (4)
- # re-frame (84)
@a.espolov: I would suggest trying your transaction from the web UI to ensure your data and parameters are correct. Also, errors from the REST service will be in the transactor logs and/or the peer logs
@a.espolov: Finally, for a transaction, you don’t use the :query-params, just the :tx-data map: http://docs.datomic.com/rest.html#transact
@a.espolov: ah, sorry, misread
@a.espolov: Can you verify your txn works from the web UI?
@a.espolov: the transactor logs should include additional information about the error. Also, can you build the transaction as a URL-encoded string directly and see if that works (instead of through http-kit)
guys, I’m trying to restore a datomic backup to transactor with psql as backend
org.postgresql.util.PSQLException: The server requested password-based authentication, but no password was provided
My URI looks like datomic:<sql://example?jdbc:postgresql://datomic.example.com:5432/datomic?user=datomic&password=datomic>
What’s wrong with my restore-db command?
@lowl4tency: As a first step, I would suggest looking at the output of the Transactor when you start it. It prints the Datomic URI with a placeholder for the database name. Make sure that matches your URL in restore-db.
@lowl4tency: Also, make sure to quote the URI to prevent the shell from interpreting characters like ?
and &
double quote?
Either double-quote or single-quote should work in Unix-style shells, double-quote only in Windows.
"Starting datomic:sql://<DB-NAME>?jdbc:<postgresql://datomic.example.com:5432/datomic?user=datomic&password=datomic>
I’ve got clean transactor and psql, I’ve created only datomic and datomic_kv dbs.
So I don’t need to pass datomic db name? only postgresql db?
Or my transactor working incorrect?
@lowl4tency: In the restore-db
command, replace <DB-NAME>
in that URI with the name of the (Datomic) database you want to restore into.
it was done
stuartsierra: is it critical? I’ve got CNAME for my postgresql rds instance
Oh, passed the A record for the db and quoted the address
So, just for clarify, CNAMEs are not working?
@lowl4tency: I don't know the answer to that. I do know that the Transactor's configuration file should have the correct URL to access the SQL database as the sql-url
property.
As far as I know, if you can connect to the JDBC URI using Java's JDBC libraries, then Datomic should be able to connect to the same URI.
Will experiment so
Just it’s important for me, I’ve got a cname for RDS and if application are not able to use the cname for connect to datomic db is sad
stuartsierra: okay, got it, thanks a lot!
You're welcome.