ci-richard-mcelhinney / nhaystack

Niagara module for Project Haystack
https://www.project-haystack.org
Academic Free License v3.0
36 stars 23 forks source link

N Haystack 443 port forwarding #21

Closed marcalanbaker closed 1 year ago

marcalanbaker commented 1 year ago

I am trying to use the nhaystack where the Niagara (4.11.0.11.2) instance is behind a firewall and a J2 Fin instance on the wan side, i have forwarded port 443 which connects without issue, however once you pull points through and start polling them the connector in J2 Fin disconnects after about 2 mins and produces SSL Errors. Anyone else tried to do this and have any hints?

Debug log from Fin Connector

ConnActor is busy; no details available

currentMessage: id: houseKeeping dur: 49sec threadId: 666 dev1-Haystack-Worker-3 [666: RUNNABLE] java.net.SocketInputStream.socketRead0(Native Method) java.net.SocketInputStream.socketRead(SocketInputStream.java:116) java.net.SocketInputStream.read(SocketInputStream.java:171) java.net.SocketInputStream.read(SocketInputStream.java:141) sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:457) sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:165) sun.security.ssl.SSLTransport.decode(SSLTransport.java:108) sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1143) sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1054) sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:394)

Actor pool: dev1-Haystack state: running queue: 9 (peak 14) received: 4624 ticks: 38sec (avg 8ms) curMsg: ConnMsg(houseKeeping) ConnMsg(poll) ConnMsg(callRes a=fan.haystackExt.HaystackCallRes@7c1a10a6 b=fan.haystackExt.GridOrErr@52e610d1) ConnMsg(callRes a=fan.haystackExt.HaystackCallRes@f88426 b=fan.haystackExt.GridOrErr@e3f7a49) ConnMsg(callRes a=fan.haystackExt.HaystackCallRes@1ad2fca b=fan.haystackExt.GridOrErr@f6ad18f) ConnMsg(callRes a=fan.haystackExt.HaystackCallRes@19435910 b=fan.haystackExt.GridOrErr@1be66dbe) ConnMsg(callRes a=fan.haystackExt.HaystackCallRes@784c6452 b=fan.haystackExt.GridOrErr@58f040e6) ConnMsg(callRes a=fan.haystackExt.HaystackCallRes@dd0929e b=fan.haystackExt.GridOrErr@3b437d43) ConnMsg(connDetails) ConnMsg(callRes a=fan.haystackExt.HaystackCallRes@428aea34 b=fan.haystackExt.GridOrErr@3f716739)

ActorPool name: dev1-Haystack maxThreads: 100 maxTime: 1sec hasPending: false pending: 0 idle: 1 workers: 2 dev1-Haystack-Worker-3: HaystackConn "Haystack Conn" [queue: 9] dev1-Haystack-Worker-1: idle

ci-richard-mcelhinney commented 1 year ago

Hi @marcalanbaker ,

The output you have provided is from the FinStack side of things. Unfortunately that doesn't give any clues as to what is happening on the Niagara side.

Can you provide some information or output from the Niagara Application Director please?

ci-richard-mcelhinney commented 1 year ago

Hi @marcalanbaker

If you can provide some more information please feel free to re-open this ticket. In the meantime I'm going to close this ticket for now.