#692 Nhaystack for Niagara 4.6.96

Nagesh Narvekar Wed 24 Apr 2019

I have N 4.6.96 along with nhaystack 2.0.0 . But I get an error on connection between these 2. The Error is as follow:

id: 245312fe-fbbf9e97 dis: Haystack Conn status: down connPollFreq: null connLinger: 30sec lingering: 26sec openPins [,] actorTimeout: 1min lastPing: never lastConnOk: never lastConnFail: 3sec ago lastPoll: never pollFreq: 1sec points: 0 pointsInWatch: 0 curErr:

sys::IOErr: java.net.ConnectException: Connection refused: connect
  java.net.DualStackPlainSocketImpl.waitForConnect (Unknown)
  java.net.DualStackPlainSocketImpl.socketConnect (Unknown)
  java.net.AbstractPlainSocketImpl.doConnect (Unknown)
  java.net.AbstractPlainSocketImpl.connectToAddress (Unknown)
  java.net.AbstractPlainSocketImpl.connect (Unknown)
  java.net.PlainSocketImpl.connect (Unknown)
  java.net.SocksSocketImpl.connect (Unknown)
  java.net.Socket.connect (Unknown)
  inet::TcpSocketPeer.connect (TcpSocketPeer.java:157)
  inet::TcpSocket.connect (TcpSocket.fan)
  inet::TcpSocket.connect (TcpSocket.fan)
  web::WebClient.writeReq (WebClient.fan:408)
  haystack::ClientAuth.send (ClientAuth.fan:164)
  haystack::ClientAuth.post (ClientAuth.fan:137)
  haystack::ClientAuth.authHaystack (ClientAuth.fan:51)
  haystack::Client.openx (Client.fan:39)
  haystackExt::HaystackConn.onOpen (HaystackConn.fan:60)
  connExt::Conn.open (Conn.fan:150)
  connExt::Conn.openLinger (Conn.fan:116)
  connExt::Conn.openLinger (Conn.fan)
  connExt::Conn.ping (Conn.fan:204)
  connExt::Conn.receive (Conn.fan:318)
  haystackExt::HaystackConn.receive (HaystackConn.fan:44)
  connExt::ConnActor.receive (ConnActor.fan:131)
  concurrent::Actor._dispatch (Actor.java:230)
  3 More...

pollBuckets:

uri: http://10.1.2.33/haystack/ product: null null module: null null watchId: null watchLeaseReq: null watchLeaseRes: null

currentMessage: none

Actor

pool:      demo-Haystack
submitted: false
queue:     0

ActorPool

name:       demo-Haystack
maxThreads: 100
pending:    0
idle:       3
workers:    3
demo-Haystack-Worker-6: idle
demo-Haystack-Worker-3: idle
demo-Haystack-Worker-0: idle

Please suggest to resolve this.

Paul Quinn Thu 25 Apr 2019

I would try upgrading to nhaystack version 2.1.2. There were security changes in both nhaystack and Niagara.

Nagesh Narvekar Fri 26 Apr 2019

After Upgrading nhaystack to 2.1.2, I am getting error as Follow :

id: 2455ad57-a6dfe46f dis: Secutech_HQ status: fault connPollFreq: null connLinger: 30sec lingering: 25sec openPins [,] actorTimeout: 1min lastPing: never lastConnOk: never lastConnFail: 4sec ago lastPoll: never pollFreq: 1sec points: 0 pointsInWatch: 0 curErr:

sys::IOErr: Invalid HTTP response: 
  web::WebClient.readRes (WebClient.fan:484)
  haystack::ClientAuth.send (ClientAuth.fan:160)
  haystack::ClientAuth.get (ClientAuth.fan:133)
  haystack::ClientAuthAlgorithm.get (ClientAuth.fan:239)
  haystack::NiagaraScramAuthAlgorithm.upgradeInsecureReqs (ClientAuth.fan:537)
  haystack::NiagaraScramAuthAlgorithm.auth (ClientAuth.fan:478)
  haystack::ClientAuth.authHaystack (ClientAuth.fan:79)
  haystack::Client.openx (Client.fan:39)
  haystackExt::HaystackConn.onOpen (HaystackConn.fan:60)
  connExt::Conn.open (Conn.fan:150)
  connExt::Conn.openLinger (Conn.fan:116)
  connExt::Conn.openLinger (Conn.fan)
  connExt::Conn.ping (Conn.fan:204)
  connExt::Conn.receive (Conn.fan:318)
  haystackExt::HaystackConn.receive (HaystackConn.fan:44)
  connExt::ConnActor.receive (ConnActor.fan:131)
  concurrent::Actor._dispatch (Actor.java:230)
  concurrent::Actor._work (Actor.java:201)
  concurrent::ThreadPool$Worker.run (ThreadPool.java:262)
Cause:
  sys::IOErr: java.net.SocketTimeoutException: Read timed out
    java.net.SocketInputStream.socketRead0 (Unknown)
    java.net.SocketInputStream.socketRead (Unknown)
    java.net.SocketInputStream.read (Unknown)
    java.net.SocketInputStream.read (Unknown)
    java.io.BufferedInputStream.fill (Unknown)
    java.io.BufferedInputStream.read (Unknown)
    fan.sys.SysInStream.r (SysInStream.java:63)
    fan.sys.Charset$Utf8Decoder.decode (Charset.java:120)
    fan.sys.InStream.rChar (InStream.java:78)
    fan.sys.InStream.readLine (InStream.java:466)
    fan.sys.InStream.readLine (InStream.java:451)
    web::WebClient.readRes (WebClient.fan:472)
    haystack::ClientAuth.send (ClientAuth.fan:160)
    haystack::ClientAuth.get (ClientAuth.fan:133)
    haystack::ClientAuthAlgorithm.get (ClientAuth.fan:239)
    haystack::NiagaraScramAuthAlgorithm.upgradeInsecureReqs (ClientAuth.fan:537)
    haystack::NiagaraScramAuthAlgorithm.auth (ClientAuth.fan:478)
    haystack::ClientAuth.authHaystack (ClientAuth.fan:79)
    haystack::Client.openx (Client.fan:39)
    haystackExt::HaystackConn.onOpen (HaystackConn.fan:60)
    connExt::Conn.open (Conn.fan:150)
    connExt::Conn.openLinger (Conn.fan:116)
    connExt::Conn.openLinger (Conn.fan)
    connExt::Conn.ping (Conn.fan:204)
    connExt::Conn.receive (Conn.fan:318)
    6 More...

pollBuckets:

uri: http://localhost/haystack/ product: null null module: null null watchId: null watchLeaseReq: null watchLeaseRes: null

currentMessage: none

Actor

pool:      demo-Haystack
submitted: false
queue:     0

ActorPool

name:       demo-Haystack
maxThreads: 100
pending:    0
idle:       2
workers:    3
demo-Haystack-Worker-30: fan.connExt.ConnPoller@19cc606 [queue: 1]
demo-Haystack-Worker-27: idle
demo-Haystack-Worker-26: idle

Please Help on this.

Nagesh Narvekar Mon 6 May 2019

Please provide the steps to resolve this ASAP

Nagesh Narvekar Tue 14 May 2019

Please help to resolve this at earliest.

Thanks.

Richard McElhinney Tue 28 May 2019

Hi Nagesh,

I replied to your other post as well. The issue is the same, I can't tell what's happening on the Niagara side. If you can provide the output of the Application Director from your Niagara instance then it might provide further information.

Login or Signup to reply.