Fork me on GitHub
#datomic
<
2018-04-02
>
igrishaev09:04:39

Hi! I’ve got a Datomic Pro Starter Edition account at registered about a year and a half ago. When I try to use an up-to-date Datomic release, the transactor says your License Key cannot be used with that version. My key expires at Sep 21, 2017 and there is no any button or a link to update it. So the question is, how can I use the latest release of Datomic with my account? Thanks.

jaret13:04:01

@igrishaev That’s the intention of Starter. To give users 1 year from signup worth of Datomic use (perpetually) to try it out. The next step would be purchasing pro or continuing to use the versions released prior to your expiration date.

Datomic Platonic15:04:18

Has anyone needed more than 4GB RAM for the transactor or 4GB RAM for the peer? How many datoms did you have when you reached those limits?

magra15:04:54

Hi, I have datomic free on my laptop. 0.9.5697 worked fine, I can't connect to 0.9.5697 though. I keep getting:

JdbcSQLException Falscher Benutzer Name oder Passwort
Wrong user name or password [28000-171]  org.h2.engine.SessionRemote.done (SessionRemote.java:568) 
In the .properties file I tried both
storage-datomic-password=my-password
and
storage-datomic-password="my-password"
I tried try to get databases with:
(d/get-database-names "datomic:)
What am I missing?

marshall15:04:21

if it’s a remote peer you need to enable remote storage access https://docs.datomic.com/on-prem/configuring-embedded.html#sec-2-2

magra15:04:36

@marshall It is localhost.

marshall15:04:03

you can access localhost without setting a password (https://docs.datomic.com/on-prem/configuring-embedded.html#sec-1)

magra15:04:04

ok. I will settle for that then. Still, should the password in .properties be written with single quotes or just the letters. I followed the manual you mentioned and it is just blank there?

magra15:04:00

Sorry, double quotes or just the letters. Single quotes produce a stack trace.

marshall15:04:17

you shouldnt need quotes

robert-stuttaford15:04:40

you must actually use “localhost” and not some other name even if it resolves to your local, right?

marshall15:04:07

@robert-stuttaford not sure. I’d have to doublecheck

joshkh16:04:28

i'm running into an odd problem possibly datomic related and was hoping someone could offer a clue. i have a pretty basic ring based project as well as an API project that makes use of com.datomic/client-cloud. as soon as i include the API project as a dependency i get the following error:

Compiling auth.server
2018-04-02 17:09:39.333:INFO::main: Logging initialized @14043ms
java.lang.NoClassDefFoundError: org/eclipse/jetty/util/thread/NonBlockingThread, compiling:(repl.clj:16:21)
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/jetty/util/thread/NonBlockingThread, compiling:(repl.clj:16:21)
	at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3700)
	at clojure.lang.Compiler$DefExpr.eval(Compiler.java:457)
	at clojure.lang.Compiler.compile1(Compiler.java:7609)
	at clojure.lang.Compiler.compile(Compiler.java:7676)
	at clojure.lang.RT.compile(RT.java:413)
	at clojure.lang.RT.load(RT.java:458)
	at clojure.lang.RT.load(RT.java:426)
	at clojure.core$load$fn__6548.invoke(core.clj:6046)
	at clojure.core$load.invokeStatic(core.clj:6045)
	at clojure.core$load.doInvoke(core.clj:6029)
	at clojure.lang.RestFn.invoke(RestFn.java:408)
	at clojure.core$load_one.invokeStatic(core.clj:5848)
	at clojure.core$load_one.invoke(core.clj:5843)
	at clojure.core$load_lib$fn__6493.invoke(core.clj:5888)
	at clojure.core$load_lib.invokeStatic(core.clj:5887)
	at clojure.core$load_lib.doInvoke(core.clj:5868)
	at clojure.lang.RestFn.applyTo(RestFn.java:142)
	at clojure.core$apply.invokeStatic(core.clj:659)
	at clojure.core$load_libs.invokeStatic(core.clj:5925)
	at clojure.core$load_libs.doInvoke(core.clj:5909)
	at clojure.lang.RestFn.applyTo(RestFn.java:137)
	at clojure.core$apply.invokeStatic(core.clj:659)
	at clojure.core$require.invokeStatic(core.clj:5947)
	at clojure.core$require.doInvoke(core.clj:5947)
	at clojure.lang.RestFn.invoke(RestFn.java:703)
	...
	at clojure.main.main(main.java:37)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/jetty/util/thread/NonBlockingThread
	at org.eclipse.jetty.io.SelectorManager.doStart(SelectorManager.java:258)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)

marshall16:04:29

@joshkh looks like a deps conflict (likely jetty); client-cloud requires a version that may be newer than the version included with some other dependency in your project

joshkh16:04:42

that's what i was thinking. i guess i'll play around with exclusions until i find the magic combination. thanks @marshall

marshall16:04:36

np. sorry i cant be more help - you can use your build tool to track it down potentially (i.e. https://maven.apache.org/plugins/maven-dependency-plugin/examples/resolving-conflicts-using-the-dependency-tree.html for maven, lein deps :tree for lein, https://github.com/boot-clj/boot/wiki/Boot-for-Leiningen-Users#lein-deps-tree for boot)

marshall16:04:56

right…. or that ^

joshkh16:04:01

cheers, thank you!

souenzzo17:04:01

I'm trying to do an or-join with multiple db's but it throws IllegalArgumentException Cannot resolve key: $$ datomic.datalog/resolve-id (datalog.clj:272)

;; this query works
(d/q '[:find ?c ?tx
       :in $ $$ ?params ...
       :where
       [...]
       [$$ ?c ?i _ ?tx]]
     db history params ...)
;; but when I try to make a or-join
(d/q '[:find ?c ?tx
       :in $ $$ ?params ...
       :where
       [...]
       (or-join [$$ ?c ?tx]
                [$$ ?c ?i _ ?tx]
                [$$ _ :notification/origins ?c ?tx])]
     db history params ...)
I'm not sure if I really need to put the $$ and the ?c in the join. The join is just on ?tx

marshall19:04:37

the or-join vars are only vars, not data-sources

marshall19:04:25

or-join-clause = [ src-var? 'or-join' rule-vars (clause | and-clause)+ ]

marshall19:04:10

rule-vars = [variable+ | ([variable+] variable*)]

marshall19:04:00

so it should be: ($$ or-join [?c ?tx] [?c ?i _ ?tx]...

👍 4
souenzzo20:04:28

Wired place to put the $$ but now it's working 😄 thnx

marshall20:04:10

all the clauses in a single or-join must use the same data src