Fork me on GitHub
#datomic
<
2016-05-15
>
jonaskello09:05:52

I just started experimenting with datomic today so I don’t known much about it.. I’m having some trouble getting the rest service to work with postgres… .. what I don’t understand is what URI I should provide to the rest service..

jonaskello09:05:16

The transactor says: System started datomic:sql://<DB-NAME>?jdbc:<postgresql://localhost:5432/datomic?user=datomic&password=datomic>, you may need to change the user and password parameters to work with your jdbc driver

jonaskello09:05:16

What is the <DB-NAME> part? Is it a datomic database name or a postgres database name?

jonaskello09:05:54

I guess it is a datomic database name…. but then I could only start the REST service for a specific datomic database, not for all of them at the storage service?

jonaskello09:05:17

Did some more experiments and it looks like I could just leave the <DB-NAME> part out when starting the REST service...

jonaskello09:05:25

Now I’m having trouble with the console…. I can start it and access the web page but when I click something or type a character it just reloads… no error messages or anything, just a reload of the whole web-page

jonaskello09:05:26

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

jonaskello09:05:34

Console started on port: 8080

jonaskello09:05:43

sql = datomic:sql://?jdbc:<postgresql://localhost:5432/datomic?user=datomic&password=datomic>

jonaskello09:05:58

Open http://localhost:8080/browse in your browser (Chrome recommended)

jonaskello09:05:34

Same issue if I try it with dev storage

jonaskello09:05:40

Anyone seen this before?

val_waeselynck09:05:30

@jonaskello: I know that at least one version of Datomic was released with a broken console, would recommend downloading another version and try the console of that one (just the console, you don't have to change the version you're running the transactor with)

jonaskello10:05:14

@val_waeselynck: Thanks, I’m currently running datomic-pro-0.9.5359.. will try another version of the console..

jonaskello10:05:34

Downloaded console v0.1.206 (which was the only version I could find in http://my.datomic.com)… I just pasted those files into the datomic-pro-0.9.5359 directory replacing any duplicates.. not sure if that is the correct way to do it? When I try to start the console now it says "Error: Could not find or load main class clojure.main"

jonaskello10:05:33

@val_waeselynck: Downloaded the full package for 0.9.5350 and now the console works! Thanks for the tip!