The tags for my managed tag provider module “disappear” on module restart on Ignition 8.0.14 and up. (I’ve tested with 8.0.12 and 8.0.13, and it doesn’t happen with those versions. I’ve also confirmed it does happen for versions 8.0.14, 8.0.15, 8.0.16, 8.0.17, and 8.1.0).
Here is how to reproduce it:
- Install the managed tag provider module
- Have the managed tag provider create tags when instructed (with ManagedTagProvider.configureTag(String, DataType))
- Observe the new tags in the tag browser
- Restart the module
- Observe the tags have disappeared from the tag browser
This is problematic, since we have hundreds of tags created with our tag provider, and every time the module restarts, they all disappear. Any folder structure remains – it is only the tags that go missing.
There are many different times that our managed tag provider module might be restarted, and any of these occurrences result in the loss of all of its tags. Restarts of the module happen when:
- the gateway is restarted
- the configuration of the module is updated
- a new version of the module is installed
- the same version of the module is reinstalled
- the gateway is upgraded (this is when we noticed it)
The most frustrating aspect is that we are unable to make any configuration changes without losing all of our tags, since our module restarts when new configurations are applied.
One strange thing I’ve noticed is that on the problematic Ignition versions, information about the tags created by the tag provider isn’t stored in the internal
TAGCONFIG table, unlike in earlier versions. Information for newly-created folders is stored there, but information for the tags inside those folders is not. Perhaps since tag information is not being persisted in
TAGCONFIG, any restart of the module loses all tag information.
I even tried to wire the tag into the
TAGCONFIG table myself after it was created, based on the tag configuration when right-clicking on the tag and choosing “Copy JSON”. This only resulted in this error from Ignition as it tried to create the tags for my tag provider:
Cannot configure tag '1ab6a6b2-2a2c-44de-b8ac-1b3e47e25156', no type id specified.
So, it seems there is additional metadata stored somewhere for the tags, including type information, but I couldn’t find where that was stored in order to investigate further.
Any clues on how I might remedy this behavior? This “tag disappearance” problem has rendered our module almost unusable on versions of Ignition >= 8.0.14, which is problematic since we have upgraded to Ignition 8.0.16 (where we noticed the problem, but too late) and are looking to move to Ignition 8.1.0 LTS soon.