Fork me on GitHub
#datomic
<
2015-07-19
>
robert-stuttaford05:07:22

@a.espolov: you have the sql service and the transactor running, i assume?

robert-stuttaford05:07:41

i recommend looking at the docs to see how the rest service is logged and then review those logs

robert-stuttaford05:07:57

bin/logback.xml has a bunch of commented out loggers you can turn on, maybe one is for REST service

robert-stuttaford15:07:01

@a.espolov: psql isn’t getting your password. sorry. @bkamphaus can help you tomorrow, i think simple_smile

a.espolov15:07:58

@robert-stuttaford: bin/transcator datomic:sql://{db-name}?{jdbc-url} it's working

a.espolov15:07:27

as I did not try to run datomic rest service

a.espolov15:07:28

It gets only with dev

Ben Kamphaus15:07:58

@a.espolov: does the rest command work if you wrap the jdbc url in quotes or escape any characters that may need it?

Ben Kamphaus15:07:44

I’m assuming in this case the transactor URL is specified by base + user + password, i.e.

sql-url=jdbc:
sql-user=datomic
sql-password=datomic

Ben Kamphaus15:07:31

I believe sql passwords may also have to be url encoded i.e. if there’s a %, %25

a.espolov15:07:46

@bkamphaus: It is not difficult to show the full startup command datomic rest service using sql as storage?

Ben Kamphaus15:07:18

In general, most likely culprit for this error is that the creds are missing, or somehow malformed in how the jdbc url is being supplied to bin/rest

a.espolov15:07:10

@bkamphaus bin/rest -p 8001 sql datomic:sql://?jdbc:<postgresql://localhost:5432/datomic?user=datomic&password=datomic>

Ben Kamphaus15:07:41

bin/rest -p 8001 sql "datomic:sql://?jdbc:<postgresql://localhost:5432/datomic?user=datomic&password=datomic>"

Ben Kamphaus15:07:45

just tested and this works for me

timothypratley23:07:20

loving the reverse lookup capabilities of Datomic, I was able to make a basic entity browser in a weekend:

timothypratley23:07:20

being able to answer “what is everything that relates to x?” is really powerful.