This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-04
Channels
- # architecture (13)
- # bangalore-clj (1)
- # beginners (174)
- # boot (25)
- # cider (65)
- # cljs-dev (10)
- # cljsjs (4)
- # cljsrn (3)
- # clojure (169)
- # clojure-berlin (27)
- # clojure-brasil (32)
- # clojure-greece (3)
- # clojure-russia (31)
- # clojure-sg (4)
- # clojure-spec (6)
- # clojure-uk (74)
- # clojurescript (186)
- # code-reviews (5)
- # css (12)
- # cursive (17)
- # datascript (1)
- # datomic (45)
- # dirac (33)
- # funcool (42)
- # hoplon (25)
- # jobs (6)
- # jobs-discuss (114)
- # lambdaisland (6)
- # leiningen (1)
- # luminus (24)
- # off-topic (86)
- # om (13)
- # om-next (14)
- # onyx (75)
- # perun (2)
- # protorepl (19)
- # re-frame (2)
- # reagent (17)
- # ring-swagger (2)
- # rum (1)
- # slack-help (2)
- # specter (31)
- # test-check (5)
- # timbre (1)
- # untangled (34)
- # vim (8)
I am using the datomic read-log plugin and getting this exception
Handling uncaught exception thrown inside task lifecycle - killing this job. -> Exception type: clojure.lang.ExceptionInfo. Exception message: Unfreezable type: class clojure.lang.Delay
Also this might be related, running the dashboard, this is all in local dev mode with an embedded zookeeper, I get these messages on the dashboard console
org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /onyx/2/log-parameters/log-parameters
code: -101
path: "/onyx/2/log-parameters/log-parameters"
17-01-04 10:31:29 mung WARN [onyx.log.zookeeper:207] - Log parameters couldn't be discovered. Backing off 500ms and trying again...
@len I believe we saw the Delay thing pop up before. @robert-stuttaford Do you recall what was happening there?
@len Re: dashboard. The dashboard needs a ZooKeeper connection to hold onto permanently. Local-dev uses embedded ZooKeeper and trashes the state and connection everytime.
Yeah, that’s familiar. Let me try searching the Slack logs.
What version of onyx-datomic and Onyx are you using?
Im not exactly sure where we landed with this one to be honest: https://clojurians-log.clojureverse.org/datomic/2016-10-04.html
thanks thats interesting - I have the latest datomic and will wait for @robert-stuttaford to achieve enlightenment 🙂
terribly sorry, but i believe we never got to the bottom of that
is there a workaround @robert-stuttaford ?
so, it usually only happened because we were mucking about somehow - restarting things in the wrong order, that sort of thing
we haven’t had it in a long while
@len The dashboard message you’re seeing is unrelated. It’s having trouble connecting to a valid ZK tenancy.
@robert-stuttaford Are you still rebooting the peers nightly?
it sounds like you have a fairly reproducible case, @len. i’d put something together for Lucas to chew on
no, we stopped that a while ago 🙂
Right, I remember now. We couldn’t figure out exactly where the Delay was coming from because we can’t see Datomic’s source. 😛
yep. it was something to do with trying to read outside of the available range, or something
i believe we filed a bug with Datomic actually
Strange how it only comes up sometimes
by ‘we’ i mean we told them about it over in #datomic and one of the guys said ‘oh, right, cool, we’ll look into that'
i do know that the 3 txes in an ‘empty’ db don’t show up in tx-range
the ones at the epoch
but nil as a start-t is documented as valid
good luck 🙂
ok so if I start the datomic log with a recent t then all is fine and I dont get the Delay
@len What is “recent” in your case?
it looks like the initial txns in datomic from when we started last year august have the issue, not sure which ones, I will only need the t from when we start in production so looks ok for me
Okie doke. I really wish we had some visibility into that one slice of code. 😕
Can you describe your set up once more? You said you’re running embedded ZooKeeper. Is that through with-test-env
?
dashboard start looks good
java -jar onyx-dashboard-0.9.15.0.jar 127.0.0.1:2188
=================================
Starting Dashboard components ...
Starting Sente
Starting Channels
Starting ZKClient
Trying connect ZK 5s ...
Starting Deployments
ZK connection state: CONNECTED
Starting HTTP Server
Http-kit server is running at
Okay, that’s helpful. So you’re leaving that running and not taking it down, right?
I’m only asking because doing that would also stop the ZooKeeper server, which is required for the dashboard.
Are you sure the tenancies match?
Sorry, a few more questions. Which version of the dashboard are you running?
Everything is 0.9.15.x I presume?
Yeah those versions need to be upgraded. The template project.clj was too difficult to get into our auto-release process.
Yeah. Keep me posted, we’ll get you up and running.
Okay. So the next thing you can do is pop open a ZooKeeper console and verify that the error is valid. It’s taking it can’t find a znode on /onyx/2/log-parameters. You can check if that exists with zkCli
, then ls /onyx/2
If you were hopping between versions, you might want to start with a brand new tenancy ID.
rmr /onyx
in zkCli
ok cleaned out and restarted everything and found and issue on my side - had differents tennacy ids for the env and peer configs !
@len For sure 🙂