Fork me on GitHub
#onyx
<
2017-06-14
>
michaeldrogalis15:06:25

Hello new people!

georgek19:06:36

Hi, I’m experiencing an error when trying to use Onyx within Arachne. Basically I’m using it in-memory and have taken code that works from another project. What I’m seeing when starting the PeerGroup: 15:17:09.520 INFO - o.a.c.f.imps.CuratorFrameworkImpl Starting 15:17:09.520 INFO - org.apache.zookeeper.ZooKeeper Initiating client connection, connectString=127.0.0.1:2188 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@6ae34b1 15:17:09.520 INFO - org.apache.zookeeper.ClientCnxn Opening socket connection to server 127.0.0.1/127.0.0.1:2188. Will not attempt to authenticate using SASL (unknown error) 15:17:09.521 INFO - o.a.z.server.NIOServerCnxnFactory Accepted socket connection from /127.0.0.1:55855 15:17:09.521 INFO - org.apache.zookeeper.ClientCnxn Socket connection established to 127.0.0.1/127.0.0.1:2188, initiating session 15:17:09.521 INFO - o.a.zookeeper.server.ZooKeeperServer Client attempting to establish new session at /127.0.0.1:55855 15:17:09.522 INFO - o.a.zookeeper.server.ZooKeeperServer Established session 0x15ca80995360001 with negotiated timeout 60000 for client /127.0.0.1:55855 15:17:09.522 INFO - org.apache.zookeeper.ClientCnxn Session establishment complete on server 127.0.0.1/127.0.0.1:2188, sessionid = 0x15ca80995360001, negotiated timeout = 60000 15:17:09.522 INFO - o.a.c.f.state.ConnectionStateManager State change: CONNECTED 15:17:09.525 INFO - o.a.z.server.PrepRequestProcessor Got user-level KeeperException when processing sessionid:0x15ca80995360001 type:create cxid:0x2 zxid:0x16 txntype:-1 reqpath:n/a Error Path:/onyx Error:KeeperErrorCode = NodeExists for /onyx From the peer group map returned: {:zookeeper/address “127.0.0.1:2188”, :onyx.peer/job-scheduler :onyx.job-scheduler/greedy, :onyx.messaging/impl :aeron, :onyx.messaging/peer-port 40200, :onyx.messaging/bind-addr “localhost”, :onyx/tenancy-id #uuid “c6aa17e4-1596-4a50-9812-584b2de56388”}, :send-idle-strategy #object[15:17:09.539 INFO - o.a.z.server.PrepRequestProcessor Got user-level KeeperException when processing sessionid:0x15ca80995360001 type:create cxid:0x14 zxid:0x28 txntype:-1 reqpath:n/a Error Path:/onyx/c6aa17e4-1596-4a50-9812-584b2de56388/origin/origin Error:KeeperErrorCode = NodeExists for /onyx/c6aa17e4-1596-4a50-9812-584b2de56388/origin/origin org.agrona.concurrent.BackoffIdleStrategy 0x2ccfd7a1 “org.agrona.concurrent.BackoffIdleStrategy@2ccfd7a1"], Which hangs right before the usual: 17-06-14 18:43:34 UnknownHost INFO [onyx.messaging.acking-daemon:78] - Starting Acking Daemon Is this a port-related issue?

georgek19:06:27

For those that don’t know Arachne is a server-builder framework that elaborates on component.

lucasbradstreet19:06:24

@georgek hmm. These things are generally due to ZK connection issues, but it does look like it’s starting up OK, and the port looks right? You may want to try telnet localhost 2188 when it starts up, and type ruok into it

lucasbradstreet19:06:28

just to check whether it’s up

georgek19:06:39

Wierd, just was assured that arachne doesn’t restrict ports, etc. did the telnet and it said: imokConnection closed by foreign host.

lucasbradstreet19:06:34

Cool, yep, looks good there then.

lucasbradstreet19:06:15

Maybe check lein deps :tree and see if you’re ending up with some different dependencies as a result of including arachne?

georgek19:06:47

Thanks checking that out

georgek19:06:01

I believe you nailed it. There’s a bit of a rat’s nest of conflicting dependencies to sort and, given the simplicity of the code that works outside of arachne, that’s looking good as an answer - thanks!

lucasbradstreet19:06:32

Cool, fingers crossed!