-
Notifications
You must be signed in to change notification settings - Fork 782
Metadata with key already exists from provider GenericMetadataProvider Error #5502
Comments
Isn't this warning fully correct? If you define certain metadata textually, this is expected to be present - therefore you cannot change it. |
@kaikreuzer Thanks for getting back to me. I am not sure to follow what you are saying. I just trying to make changes to the metadata of a specific item the same way I would to change any other item settings. Each time I refresh an item file, I get these warnings for any items that have metadata configured even though I haven't change that data. It looks to me that the refresh logic isn't able to process metadata updates or deletes and just tries to add new items to which it complains since the metadata key already exists. Am I missing something? |
Ok, so you are saying you see this warning even though you are not using the REST API at all? |
@SJKA Could you have a look? |
You are correct on both counts. I just mentioned the REST API as a way to show that metadata deletes don't seem to be processed either after updating an items file since that warning isn't generated in that case. |
...on model update. fixes eclipse-archived#5502 Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>
Looks like indeed the |
...on model update. fixes #5502 Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>
In which version of openHAB / ESH should this solution be?
I'm running
|
@SJKA do you want a new issue for this, is there specific information which would help? |
@martinvw from my perspective, I was able to confirm that this fix was included in an early 2.3 snapshot version which I will assume was rolled into official 2.3. |
@jsetton thanks! Since I upgrade on the to the 2.4.0 snapshot it seems broken, maybe an other change came after this, although it seems that somehow some of my manual defined items where also defined in the json-db. I don't know for sure how they came there, but after removing I can start without any errors. Lets see whether my broken sensors also report again... |
I got my new measurement, imho something changed maybe duplicates where not a problem before... |
…chived#5510) ...on model update. fixes eclipse-archived#5502 Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>
While testing the newly added metadata infrastructure (#4390) in openHAB 2.3.0-SNAPSHOT Build #1263, there seems to be a bug with refreshing/deleting metadata on already configured item. Each time I tried to update the metadata, it is failing with the below error and if I delete it, I can still see it present on that item when querying though the rest api. The only way to flush that information is to remove and re-add the item with the proper metadata.
Error
[WARN ] [ore.common.registry.AbstractRegistry] - Metadata with key 'foo:TestSwitch' already exists from provider GenericMetadataProvider! Failed to add a second with the same UID from provider GenericMetadataProvider!
Items Config
Switch TestSwitch "Test Switch" {foo="bar" [baz=42]}
The text was updated successfully, but these errors were encountered: