-
Notifications
You must be signed in to change notification settings - Fork 780
Duplicate items #5112
Comments
@jowi24 can you please add some details on your report:
Thanks. |
I have seen similar warnings in my production system and have had a closer look: In my case, I had an item with the same name within the jsondb (i.e. one that had been created once through the Paper UI) and within an items-file. |
@jowi24, please also inspect your setup for the issue Kai described above. |
Here is the log-extract showing the warning messages:
These items have been all added via Paper UI, no items of my item-files do appear. Also, every n-th restart or so the warnings do not appear in the log. I also double checked that there is no item duplication of jsondb items and items from item-files, as Kai suggested. |
relates to eclipse-archived#5112, eclipse-archived#4565 and others Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>
One interesting observation: These are different log entries - they can be (accidentally) distinguished by the missing space character in front of the item name. The version with the space is logged when individual items are attempted to be added to the registry: The version without the space gets logged then a whole provider is added and its items are attempted to be bulk-added to the registry: It is not impossible, but highly unlikely that the ManagedItemProvider (i.e. the one backed by the JSON DB) adds items individually, especially as it could create items of the same type (which are added as bulk). To me it looks like there is a high chance that another provider is involved. Btw: I have created #5121 to make them distinguishable properly and also include the provider names for better debugging. |
It seems I'm experiencing the same issue here. openHAB 2.3.0 build 1238. The items involved have been created via PaperUI, there are not same items in my .items files. See attached. |
Thanks for the report @nesys. I extracted the relevant part of your log:
|
@SJKA we have to rethink the ChannelItemProvider logic. |
It appears mine shows up when I have multiple channels sited on a given item.
Any help would be appreciated. I tried the work around sited in the other bug report, but it does not work for me. |
This is a follow up on #4565.
The original Error message is
The initial report states that only items from the ManagedItemProvider (i.e. added through Paper UI) have this Problem.
The initial analysis pointed to a load order issue between the ChannelItemProvider (creating items for ChannelLinks from the database) and the ManagedItemProvider (loading the actual items for the former processed links).
This issue was addressed by #4580 which informs the ChannelItemProvider before another item is added to the registry, so the ChannelItemProvider can remove its temporary item.
The text was updated successfully, but these errors were encountered: