Item Issues after upgrade to snapshot 2.2 #1004

Good shout, took a few restarts but eventually it booted successfully with groups!

This is unrelated to the other groups issue, this is a complete lack of groups, rather than groups not updating

Definitely looks like this is a bug of some sorts though, wheres best to report it?

I have this problem on #1020. Can’t get some items to work, same error in the logs. I’ve restarted 10+ times. Any idea how to troubleshoot?

No, sorry, haven’t seen this error again, but am still on #1002.

Any idea who I could ask? I’m stuck with no idea how to troubleshoot, delete the items or fix the issue… who “owns” this part of OH2 (and what part is it)?

I guess it could be an ESH issue:

Update: This issue is intermittent for me on build 1023. Three of four times on an OH2 restart I will get this error - but every once in a while it loads fine.

Currently on snapshot 1043 and I’m still getting these errors on startup. I’d guesss that Openhab is starting up correctly <1 in 10 times. No errors beyond the duplicate item issues.

I experience the same issue on the latest 2.2 build.

I’m seeing this once in a while, restart always fixes it … despite that openHAB snapshot runs great :grinning:

I’m having this annoying issue as well…sometimes when snapshot updating in between builts via apt-get it gets fixed, but after another restart of the service again I loose lables for items that are defined via PaperUI. The items i defined simply in items file are all fine.

Is there anything we could provide in order to get it fixed or know a procedure to repair our systems.
Many Thanks, Norbert

issue persists with snapshot 2.2 #1065:

2017-10-24 08:18:16.713 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.RollershutterItem with key'ZWaveNode6FGRM222RollerShutter_BlindsControl' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.714 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.SwitchItem with key'ZWaveNode16FGSD002SmokeDetector_HeatAlarm' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.717 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.DimmerItem with key'ZWaveNode7FGRM222RollerShutter_LamellaPosition' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.719 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.SwitchItem with key'Christian_iPhone6S_Online' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.722 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.NumberItem with key'ZWaveNode14FGRM222RollerShutter_SensorPower' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.724 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.NumberItem with key'ZWaveNode17FGS213SingleSwitch2_SensorPower' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.727 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.NumberItem with key'ZWaveNode3FGRM222RollerShutter_SensorPower' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.729 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.NumberItem with key'Sonnenstand_Radiation_DirectRadiation' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.732 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.SwitchItem with key'MariaMagdalena_iPhone6S_Online' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.734 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.NumberItem with key'ZWaveNode13FGRM222RollerShutter_SensorPower' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.737 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.StringItem with key'KostalInverter_Status' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.739 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.DimmerItem with key'ZWaveNode13FGRM222RollerShutter_LamellaPosition' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.743 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.RollershutterItem with key'ZWaveNode5FGRM222RollerShutter_BlindsControl' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.745 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.NumberItem with key'ZWaveNode16FGSD002SmokeDetector_BatteryLevel' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.748 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.DimmerItem with key'ZWaveNode12FGRM222RollerShutter_LamellaPosition' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.750 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.NumberItem with key'KostalInverter_DayEnergy' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.752 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.DateTimeItem with key'Christian_iPhone6S_LastSeen' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.755 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.NumberItem with key'ZWaveNode16FGSD002SmokeDetector_TemperatureSensor' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.757 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.NumberItem with key'Christian_iPhone6S_LatencyMs' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.760 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.NumberItem with key'ZWaveNode12FGRM222RollerShutter_SensorPower' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.762 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.RollershutterItem with key'ZWaveNode7FGRM222RollerShutter_BlindsControl' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.764 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.DimmerItem with key'ZWaveNode11FGRM222RollerShutter_LamellaPosition' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.767 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.NumberItem with key'ZWaveNode11FGRM222RollerShutter_SensorPower' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.769 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.RollershutterItem with key'ZWaveNode11FGRM222RollerShutter_BlindsControl' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.772 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.NumberItem with key'MariaMagdalena_iPhone6S_LatencyMs' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.774 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.NumberItem with key'ZWaveNode15FGS213SingleSwitch2_ElectricMeterWatts' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.777 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.NumberItem with key'ZWaveNode2ZW100MultiSensor6_SensorUltraviolet' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.780 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.RollershutterItem with key'ZWaveNode14FGRM222RollerShutter_BlindsControl' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.782 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.NumberItem with key'ZWaveNode2ZW100MultiSensor6_BatteryLevel' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.785 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.NumberItem with key'ZWaveNode6FGRM222RollerShutter_SensorPower' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.787 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.NumberItem with key'ZWaveNode2ZW100MultiSensor6_SensorTemperature' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.789 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.NumberItem with key'KostalInverter_TotalEnergy' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.791 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.NumberItem with key'ZWaveNode2ZW100MultiSensor6_SensorRelativeHumidity' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.794 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.NumberItem with key'ZWaveNode17FGS213SingleSwitch2_ElectricMeterKWh' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.796 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.SwitchItem with key'ZWaveNode17FGS213SingleSwitch2_Switch' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.798 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.NumberItem with key'ZWaveNode5FGRM222RollerShutter_SensorPower' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.801 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.DimmerItem with key'ZWaveNode3FGRM222RollerShutter_LamellaPosition' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.803 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.NumberItem with key'ZWaveNode10FGRM222RollerShutter_SensorPower' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.805 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.RollershutterItem with key'ZWaveNode13FGRM222RollerShutter_BlindsControl' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.808 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.SwitchItem with key'ZWaveNode16FGSD002SmokeDetector_SmokeAlarm' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.810 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.DimmerItem with key'ZWaveNode10FGRM222RollerShutter_LamellaPosition' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.812 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.RollershutterItem with key'ZWaveNode3FGRM222RollerShutter_BlindsControl' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.815 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.RollershutterItem with key'ZWaveNode12FGRM222RollerShutter_BlindsControl' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.817 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.DimmerItem with key'ZWaveNode6FGRM222RollerShutter_LamellaPosition' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.819 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.DateTimeItem with key'Sonnenstand_CivilDawn_StartTime' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.822 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.RollershutterItem with key'ZWaveNode10FGRM222RollerShutter_BlindsControl' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.824 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.DimmerItem with key'ZWaveNode14FGRM222RollerShutter_LamellaPosition' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.827 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.NumberItem with key'ZWaveNode2ZW100MultiSensor6_SensorLuminance' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.829 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.SwitchItem with key'ZWaveNode16FGSD002SmokeDetector_LowBatteryAlarm' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.832 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.DateTimeItem with key'MariaMagdalena_iPhone6S_LastSeen' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.834 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.NumberItem with key'ZWaveNode7FGRM222RollerShutter_SensorPower' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.836 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.DateTimeItem with key'Sonnenstand_CivilDusk_StartTime' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.839 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.NumberItem with key'ZWaveNode17FGS213SingleSwitch2_ElectricMeterWatts' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.841 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.DimmerItem with key'ZWaveNode5FGRM222RollerShutter_LamellaPosition' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.843 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.NumberItem with key'ZWaveNode15FGS213SingleSwitch2_SensorPower' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.845 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.SwitchItem with key'ZWaveNode15FGS213SingleSwitch2_Switch' already exists! Failed to add a second with the same UID!
2017-10-24 08:18:16.847 [WARN ] [ore.common.registry.AbstractRegistry] - org.eclipse.smarthome.core.library.items.NumberItem with key'KostalInverter_ACPower' already exists! Failed to add a second with the same UID!

Impact:
sendcommand to zwave devices not working.

Workaround:

sudo systemctl stop openhab2.service 
sudo systemctl start openhab2.service 

until error is not shown during start-up

Occurrence of issue: 9/10 restarts

Hard to believe… Version 2.2 after more than two years development and we have to start openhab2 9-12 times until it works. I’ve tried OH2 since the first alpha-version but i’m still on OH1 due to such errors.

Don’t talk in general, I’m seeing this issue only once in a while (about one in 10 restarts).
openHAB 2.2 runs extremely stable since around builds #980 and up. And I always upgrade as soon as an ESH update is pushed into the distro (about every two weeks)

May be not in general, but with my zwave devices only one of 10 restarts doesn’t need further restarts and if the problem occurs, then at least 6 restarts are necessary (more than 10 are also possible). It took me a long time to realize, that restarting openhab resolves the problem.

I’m pretty sure there is some other problem with your system which causes this.
Either related to a hardware issue (weak power supply, …) or maybe from tinkering around with different settings there may be some leftovers in the cache or whatever. Also dead nodes may cause this or nodes which were not properly excluded from the network.
If it were a general problem we would read a lot more of similar issues in this forum.

I’m pretty sure, that neither hardware issues nor setting are causing this problem. Even after a new setup and with a new power supply everything between one and 15 restarts can happen.

@sihui forgive my ignorance on this, but why would a dead node cause this error.
2 observations:

  1. The duplicate item error comes up for ALL items held in the jsondb not just a singular item
  2. At the point where the jsondb is initialised/items are loaded the binding doesn’t know if an item is dead or not

It is beyond my scope to explain this. I was referring to posts from the zwave maintainer who mentioned this a while ago.
Maybe the binding has been improved meanwhile regarding those problems, I don’t know.
Btw, I haven’t seen those error messages since weeks, currently on #1070.
I guess it is a special binding/settings combination.

Off topic: I had some circular reference errors in my openhab.log since about two weeks. I did remember I installed the experimental rule engine for testing at that time. After uninstalling it the errors are gone …

I am still seeing this issue with the latest build. FWIW, I don’t run Z-wave. With upgrades and adding bindings, it seems to get worse. I can hardly restart without the message appearing anymore. I opened an issue #4565.