Comments (7)
Ideally the nhaystack service would never allow residual nhaystack objects/facets/components to be left over, and there would be an action that would definitely remove these. I have no idea of the complexity of that. Niagara stations undergoe maintenance or major overhauls from time to time, and being able to clear out nhaystack objects during these events is needed.
Short of a cleanup action button that handles this, if there was documentaiton to explain how to do this without needing platform access, that would be helpful. Again, when we tried to search for the nhaystack components via the Niagara program service, it did not come up with anything. If there are other ways to do this, it would be great to have this documented.
from nhaystack.
Hi Adam,
I'm interested in your use-case here? Could you explain the scenario a little more?
Also, if we could work on a series of steps to recreate the issue that would be great. Happy to work with you in understanding this issue.
from nhaystack.
For sure. So use case is that we needed to uninstall nhaystack cleanly from a Niagara station. The station had performance issues and the station adminstrator wanted to isolate any unknowns during troubleshooting. Prior to that, we had been running nhaystack and sending point overrides (level 8) from a remote haystack server.
We did the following steps in attempt to uninstall:
- remove all nhaystack palette objects (equip, site), and run the removeBrokenRefs and rebuild cache actions.
- disable nhaystack service.
- uninstall nhaystack module through the software manager.
- restart station
Station failed to restart due to it detecting some nhaystack object. We were unable to find any nhaystack objects using the program service. So we opened up the XML bog file and searched for "nh:". That pointed us to a number of points that had a haystackLastWrite component (see pic)
We then manually went into each point that had that component and deleted it. After that tried uninstalling the module and reboot, and it worked!
from nhaystack.
Thanks @arohloff for the clear description. I can see the issue now and it's something I've never given thought to, in terms of uninstalling modules and the cleanup process a module should implement. In Niagara there are ways of doing this using the en masse so that you don't have to go to each point and delete them.
I can evaluate implementing a cleanup action that removes traces of nhaystack prior to removing the service from the station and uninstalling the module but that will take some time. Do you think it would be a better approach to just document in the wiki here so that others can lookup the process for removing the nhaystack module
How many Jaces would you do this on? Is this a once off or do you do it periodically/semi-regularly?
from nhaystack.
@arohloff what do you think? Would some extra documentation do the trick here or is there more needed? Could you provide some insight into how often this sort of cleanup would be needed?
from nhaystack.
@arohloff just as an update to this ticket...I'm currently reviewing the nhaystack code base in order to see if and where this 'haystackLastWrite' slot is used. There is a chance that we may be able to remove it should it not be used. However, let me check further and provide an update later this week.
from nhaystack.
@ci-richard-mcelhinney thanks for the update!
from nhaystack.
Related Issues (20)
- Histories not appearing in HistorySpace HOT 3
- Invalid tag name "ORHum" HOT 3
- Retrieving number facets does not handle incorrectly config'd facet fields
- Use hs:id, handle, ordInSpace, or handleOrd instead of slotPath or slotPathOrd to collect timeseries data into SkySpark HOT 3
- N Haystack 443 port forwarding HOT 2
- Cannot set duration HOT 6
- What is Slot-O-Matic / How do I use it? HOT 1
- Error when discovering points HOT 1
- Circuit Closed Exception when discovering points HOT 4
- nHaystack enum string to Skyspark HOT 2
- Schedule Event Invalid Zinc HOT 1
- Improve workbench NHaystack Service View
- Tag group with name containing "-" hyphen breaks read op HOT 4
- "Cannot load plugin" error HOT 2
- New release
- Authentication Flow HOT 3
- Question: Release planned to include "Added checks for retrieving number facets in case of bad config"? HOT 5
- Batch hisRead Supported? HOT 4
- haystackInvokeAction for Enum point HOT 6
- nhaystack-3.2.0 with Niagara 4.12? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nhaystack.