Richard - I am creating a new topic for the issue that Eric was talking about in the AX post. I am the systems integrator that is working with Eric to get nhaystack to work. We are running the haystack driver with N4.3.58.18. We were able to get the nhaystack to work in N4.2 but somehow we only got it to work with the encrypted authentication (digest not http basic) which I have no idea how we did that. We have tried multiple things to get this to work including creating new users both basic and digest, turning off the secure HTTPS port and only looking at the HTTP port. We known the user is setup as basic because we are able to connect SkySpark with OBIX. I am also able to run the https://IP/haystack/read?filter=point after logging in via the browser. I was able to get logs from the jetty web service and will post them. Thanks for the help!
Richard,
We are using the 2.0.1 driver on N4, version 4.3. However, we don't seem to be able to get past the Authentication Failed 302 error. The user we have created is using basic authentication and works with the oBix driver but not with nHaystack 2.0.1 on 4.3 Niagara.
Has the 2.0.1 driver been tested on 4.3, are are there any thoughts on helping debug?
Eric
Melissa TeBockhorstWed 2 Aug 2017
Melissa TeBockhorstWed 2 Aug 2017
Melissa TeBockhorstWed 2 Aug 2017
Gabe SandovalWed 2 Aug 2017
We've been able to get 4.3 to work for us. I don't know if this helps but I've noticed that we have had to restart Skyspark service before the connection was successful. I don't know why that helps, it could be coincidental but it worked for us.
Gabe
Richard McElhinneyThu 3 Aug 2017
Hi Melissa,
thanks for posting and providing all the information.
As I've posted before in the forum it is important to understand that the authentication issue is not something that is under my control in the nhaystack module. The nhaystack servlet is mounted in the Niagara web server and sits behind Tridium's authentication procedure.
The process for getting it working does seem a bit random from the feedback I've had which makes it difficult to diagnose individual situations. It is encouraging though that Gabe managed to get it to work under 4.3.
If you're using SkySpark perhaps try Gabe's suggestion and see if that makes a difference.
Cheers, Richard
Eric LoewThu 3 Aug 2017
Thanks Richard,
We are going to try a few more things, but the restart of SkySpark did not help. (-;
Eric
Eric LoewThu 3 Aug 2017
Reviewing a different but related post (http://project-haystack.org/forum/topic/375), I tried testing the connection at the command line, and get the following. It looks like it is presenting some sort of Java Login page ...
Anyone more familiar with Niagara N4 and the nHaystack driver have any suggestions? We seem to be at a loss.
Christian TremblayMon 7 Aug 2017
@Richard
I think we really need to consider using another forum than project-haystack for direct support of nhaystack (or any other 3rd party module/program/etc).
I'm used to Github and I really like the way it works.
Maybe Bitbucket can work fine for that need too...
But this forum doesn't fit for that.
It's hard to keep track of bugs and work related to bugs ... and code format just don't look good.
Richard McElhinneyTue 8 Aug 2017
Hi Christian,
Thanks for your thoughts.
I'm not fussed by either Github or Bitbucket. Like most developers I use both Mercurial and Git in my regular day job so it's of no consequence to me personally.
For what it's worth Bitbucket does have an issue tracker and it's open for everyone to use as long as you have a Bitbucket account which is free.
However, moving the repo around isn't going to solve the issue.
Neither is moving the discussion away from this forum where most people in the Haystack community get their updates from...and neither is tracking a bug in another online system going to assist either.
The reason I say this is that to the best of my knowledge and as far as I can see the issue that everyone is experiencing is not a bug with nhaystack.
It is an issue with the Niagara authentication mechanism not conforming to the standard published by Matt Giannini. nhaystack has no direct control over authentication as far as I can tell.
I have posted to this effect several times.
Believe me I am equally frustrated as those who are trying to use this Niagara module, this is not the sort of feedback I want to be seeing.
I have been following up with Tridium offline via email but have not yet received any responses, if I had I would have updated everyone via this forum immediately.
As you know Christian, and others also do, I'm more than happy to take input from the community for the nhaystack module, whether by submitting code through Pull Requests or any other way that is appropriate. So if there are other suggestions on how we as a community can solve this issue without requiring support from Tridium then I'm happy to take all ideas on board.
Cheers, Richard
Gabe SandovalWed 9 Aug 2017
I established another connection with a new jace that is running 4.3 and didn't have any issues. We have 3 connections with 4.3 stations plus many other 4.2 stations with no issues.
I'm assuming you are completing all the necessary steps that need to be done to setup this connection but I can explain the steps we take to create the connection. But being that you have established connection with 4.2 jaces you should know these steps.
Gabe
Richard McElhinneyWed 9 Aug 2017
Gabe!!
What's your secret? Can you share any more detailed steps with the community that might assist everyone?
Cheers,
Richard
Eric LoewWed 9 Aug 2017
Yes, I would certainly like to know what steps you take and any issues you have worked through. We have many nHaystack drivers out there working for us (both AX and N4) but the few that fail can be really troubling.
Eric
Gabe SandovalThu 10 Aug 2017
Jace setup:
-Install jar file. (This should require a reboot) -Add Nhaystack service to services container. -Initialize haystack. -Make sure web service http port or https port is open depending on which you use. -Add a Http Basic Scheme to Authentification Service/Authentification Scheme container. -Create a user account and set the Authentification Scheme to use the Http Basic Scheme.
We don't do anything different than what is already specified for a Haystack connection other than I recommend using the ip address and not the host name of the Jace. We use ssl cert and we notice that we have to stop Skyspark service after running the "fan tools::KeyMgr trust -uri https://example.com" in command prompt, and then start the service. The connection should work after that.
Gabe
Melissa TeBockhorstThu 10 Aug 2017
All,
Thanks for responding!!! It is very encouraging that others have got it to work. I am already using basic authentication as described above. Sorry about posting the logs. I didn't realize this was not the place to post it but I do appreciate the feedback.
This issue is difficult to troubleshoot because we are essentially trying to integrate 3 vendors(Tridium, Haystack, SkySpark) and each are pointing fingers at the other.
Eduardo PartidaFri 11 Aug 2017
Followed Gabe's instructions to a T and I still couldn't get it to work. We went back to 4.2 and I works fine. Also tried a new clean install without haystack jar file then reinstalled it. Still no bueno.
John PotpolakWed 23 Aug 2017
I have been having a similar issue with 4.3.58. what i did was test using HTTPbasic and chrome with the ARC plugin which allows to send restfull commands to Nhastack i can send the user and password with the get command and get a 200 response which is good and get the about info. I also was able to get Nhaystack point info with curl. that being said i still get a 302 authorization error in FIN4 so that would lead me to believe that Niagara and Nhaystack are ok but the client software is an issue ?
Alper ÜzmezlerThu 24 Aug 2017
I forgot to mention 4.3 has implemented java security policies. Could it be why it is not communicating anymore...
Ricky VillaThu 24 Aug 2017
Hi guys,
After receiving multiple emails regarding this, I got the latest N4.3 from John to help check this. Below is what I did to make this work with SkySpark v2.1.15, which is likely what most of you might have. If you have the newer SkySpark v3.0 version, it should just work (I have v3.0.12) because mine connected without issue after doing the Niagara steps below.
To make this work, I followed Gabes setup on the Niagara side.
-Install jar files. (This should require a reboot)
-Add Nhaystack service to services container.
-Initialize haystack.
-Make sure web service http port or https port is open depending on which you use.
-Add a Http Basic Scheme to Authentification Service/Authentification Scheme container. (Rebooted)
-Create a user account and set the Authentification Scheme to use the Http Basic Scheme.
Then on the SkySpark side.
- Install this haystack.pod (https://www.dropbox.com/s/g74a2qkyt2k2j0j/haystack.pod?dl=0)
- Restart the service and done.
Note: However, with this pod the haystack connections to N3.8 or older will no longer work. So if you have projects that have a combination of N3.8 and N4.3, this will be an issue.
Melissa TeBockhorst Wed 2 Aug 2017
Richard - I am creating a new topic for the issue that Eric was talking about in the AX post. I am the systems integrator that is working with Eric to get nhaystack to work. We are running the haystack driver with N4.3.58.18. We were able to get the nhaystack to work in N4.2 but somehow we only got it to work with the encrypted authentication (digest not http basic) which I have no idea how we did that. We have tried multiple things to get this to work including creating new users both basic and digest, turning off the secure HTTPS port and only looking at the HTTP port. We known the user is setup as basic because we are able to connect SkySpark with OBIX. I am also able to run the https://IP/haystack/read?filter=point after logging in via the browser. I was able to get logs from the jetty web service and will post them. Thanks for the help!
Richard,
We are using the 2.0.1 driver on N4, version 4.3. However, we don't seem to be able to get past the Authentication Failed 302 error. The user we have created is using basic authentication and works with the oBix driver but not with nHaystack 2.0.1 on 4.3 Niagara.
Has the 2.0.1 driver been tested on 4.3, are are there any thoughts on helping debug?
Eric
Melissa TeBockhorst Wed 2 Aug 2017
Melissa TeBockhorst Wed 2 Aug 2017
Melissa TeBockhorst Wed 2 Aug 2017
Gabe Sandoval Wed 2 Aug 2017
We've been able to get 4.3 to work for us. I don't know if this helps but I've noticed that we have had to restart Skyspark service before the connection was successful. I don't know why that helps, it could be coincidental but it worked for us.
Gabe
Richard McElhinney Thu 3 Aug 2017
Hi Melissa,
thanks for posting and providing all the information.
As I've posted before in the forum it is important to understand that the authentication issue is not something that is under my control in the nhaystack module. The nhaystack servlet is mounted in the Niagara web server and sits behind Tridium's authentication procedure.
The process for getting it working does seem a bit random from the feedback I've had which makes it difficult to diagnose individual situations. It is encouraging though that Gabe managed to get it to work under 4.3.
If you're using SkySpark perhaps try Gabe's suggestion and see if that makes a difference.
Cheers, Richard
Eric Loew Thu 3 Aug 2017
Thanks Richard,
We are going to try a few more things, but the restart of SkySpark did not help. (-;
Eric
Eric Loew Thu 3 Aug 2017
Reviewing a different but related post (http://project-haystack.org/forum/topic/375), I tried testing the connection at the command line, and get the following. It looks like it is presenting some sort of Java Login page ...
IP Addresses and passwords changed..
Eric Loew Mon 7 Aug 2017
Anyone more familiar with Niagara N4 and the nHaystack driver have any suggestions? We seem to be at a loss.
Christian Tremblay Mon 7 Aug 2017
@Richard
I think we really need to consider using another forum than project-haystack for direct support of nhaystack (or any other 3rd party module/program/etc).
I'm used to Github and I really like the way it works.
Maybe Bitbucket can work fine for that need too...
But this forum doesn't fit for that.
It's hard to keep track of bugs and work related to bugs ... and code format just don't look good.
Richard McElhinney Tue 8 Aug 2017
Hi Christian,
Thanks for your thoughts.
I'm not fussed by either Github or Bitbucket. Like most developers I use both Mercurial and Git in my regular day job so it's of no consequence to me personally.
For what it's worth Bitbucket does have an issue tracker and it's open for everyone to use as long as you have a Bitbucket account which is free.
However, moving the repo around isn't going to solve the issue.
Neither is moving the discussion away from this forum where most people in the Haystack community get their updates from...and neither is tracking a bug in another online system going to assist either.
The reason I say this is that to the best of my knowledge and as far as I can see the issue that everyone is experiencing is not a bug with nhaystack.
It is an issue with the Niagara authentication mechanism not conforming to the standard published by Matt Giannini. nhaystack has no direct control over authentication as far as I can tell.
I have posted to this effect several times.
Believe me I am equally frustrated as those who are trying to use this Niagara module, this is not the sort of feedback I want to be seeing.
I have been following up with Tridium offline via email but have not yet received any responses, if I had I would have updated everyone via this forum immediately.
As you know Christian, and others also do, I'm more than happy to take input from the community for the nhaystack module, whether by submitting code through Pull Requests or any other way that is appropriate. So if there are other suggestions on how we as a community can solve this issue without requiring support from Tridium then I'm happy to take all ideas on board.
Cheers, Richard
Gabe Sandoval Wed 9 Aug 2017
I established another connection with a new jace that is running 4.3 and didn't have any issues. We have 3 connections with 4.3 stations plus many other 4.2 stations with no issues.
I'm assuming you are completing all the necessary steps that need to be done to setup this connection but I can explain the steps we take to create the connection. But being that you have established connection with 4.2 jaces you should know these steps.
Gabe
Richard McElhinney Wed 9 Aug 2017
Gabe!!
What's your secret? Can you share any more detailed steps with the community that might assist everyone?
Cheers,
Richard
Eric Loew Wed 9 Aug 2017
Yes, I would certainly like to know what steps you take and any issues you have worked through. We have many nHaystack drivers out there working for us (both AX and N4) but the few that fail can be really troubling.
Eric
Gabe Sandoval Thu 10 Aug 2017
Jace setup:
-Install jar file. (This should require a reboot) -Add Nhaystack service to services container. -Initialize haystack. -Make sure web service http port or https port is open depending on which you use. -Add a Http Basic Scheme to Authentification Service/Authentification Scheme container. -Create a user account and set the Authentification Scheme to use the Http Basic Scheme.
We don't do anything different than what is already specified for a Haystack connection other than I recommend using the ip address and not the host name of the Jace. We use ssl cert and we notice that we have to stop Skyspark service after running the "fan tools::KeyMgr trust -uri https://example.com" in command prompt, and then start the service. The connection should work after that.
Gabe
Melissa TeBockhorst Thu 10 Aug 2017
All,
Thanks for responding!!! It is very encouraging that others have got it to work. I am already using basic authentication as described above. Sorry about posting the logs. I didn't realize this was not the place to post it but I do appreciate the feedback.
This issue is difficult to troubleshoot because we are essentially trying to integrate 3 vendors(Tridium, Haystack, SkySpark) and each are pointing fingers at the other.
Eduardo Partida Fri 11 Aug 2017
Followed Gabe's instructions to a T and I still couldn't get it to work. We went back to 4.2 and I works fine. Also tried a new clean install without haystack jar file then reinstalled it. Still no bueno.
John Potpolak Wed 23 Aug 2017
I have been having a similar issue with 4.3.58. what i did was test using HTTPbasic and chrome with the ARC plugin which allows to send restfull commands to Nhastack i can send the user and password with the get command and get a 200 response which is good and get the about info. I also was able to get Nhaystack point info with curl. that being said i still get a 302 authorization error in FIN4 so that would lead me to believe that Niagara and Nhaystack are ok but the client software is an issue ?
Alper Üzmezler Thu 24 Aug 2017
I forgot to mention 4.3 has implemented java security policies. Could it be why it is not communicating anymore...
Ricky Villa Thu 24 Aug 2017
Hi guys,
After receiving multiple emails regarding this, I got the latest N4.3 from John to help check this. Below is what I did to make this work with SkySpark v2.1.15, which is likely what most of you might have. If you have the newer SkySpark v3.0 version, it should just work (I have v3.0.12) because mine connected without issue after doing the Niagara steps below.
To make this work, I followed Gabes setup on the Niagara side.
Then on the SkySpark side.
Note: However, with this pod the haystack connections to N3.8 or older will no longer work. So if you have projects that have a combination of N3.8 and N4.3, this will be an issue.