Update to openhab 2.3 kinda broke everything

Was quite happy with my openhabian 2.2, but did upgrade to 2.3.
did that via the openhabian-config utility.
afterwards everything went south.
The main issue seems to be that none of my items can be found anymore.

My logs are full of error messages of items that cant be found:

2018-05-28 15:04:46.518 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Group
2018-05-28 15:04:46.520 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Dynamic group with label 'Aantal radiatoren aan' will be ignored, because its item 'HeatingNo' does not exist.
2018-05-28 15:04:46.530 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'CV_IP' for widget org.eclipse.smarthome.model.sitemap.Text
2018-05-28 15:04:46.532 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'CV_IP' for widget org.eclipse.smarthome.model.sitemap.Text
2018-05-28 15:04:46.534 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Text
2018-05-28 15:04:46.537 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Text
2018-05-28 15:04:46.540 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Dynamic group with label 'Begane grond' will be ignored, because its item 'gGF' does not exist.
2018-05-28 15:04:46.542 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Dynamic group with label 'Eerste verdieping' will be ignored, because its item 'gFF' does not exist.
2018-05-28 15:04:46.545 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Dynamic group with label 'Garage' will be ignored, because its item 'GF_Garage' does not exist.
2018-05-28 15:04:46.547 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Dynamic group with label 'Carport' will be ignored, because its item 'gCP' does not exist.
2018-05-28 15:04:46.549 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Dynamic group with label 'Buitenlicht' will be ignored, because its item 'gGFl' does not exist.
2018-05-28 15:04:46.552 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Dynamic group with label 'Tuin' will be ignored, because its item 'gGA' does not exist.
2018-05-28 15:04:46.554 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Dynamic group with label 'Energie & water' will be ignored, because its item 'Utilities' does not exist.
2018-05-28 15:04:46.557 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Dynamic group with label 'Devices' will be ignored, because its item 'Machines' does not exist.
2018-05-28 15:04:46.559 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Dynamic group with label 'Security' will be ignored, because its item 'Security' does not exist.
2018-05-28 15:04:46.561 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Dynamic group with label 'null' will be ignored, because its item 'Status' does not exist.
2018-05-28 15:04:46.564 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'gGF' for widget org.eclipse.smarthome.model.sitemap.Group
2018-05-28 15:04:46.567 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'gGF' for widget org.eclipse.smarthome.model.sitemap.Group
2018-05-28 15:04:46.569 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Group

there seems to be a KARAF problem

2018-05-28 15:20:29.074 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-exec, openhab-binding-yahooweather, openhab-binding-gpio, openhab-binding-airquality, openhab-misc-openhabcloud, openhab-binding-network, openhab-ui-habpanel, openhab-binding-mqttitude1, openhab-binding-mqtt1, openhab-binding-feed, openhab-action-nma, openhab-transformation-map, openhab-ui-classic, openhab-ui-habmin, openhab-action-mqtt, openhab-transformation-exec, openhab-binding-systeminfo, openhab-ui-paper, openhab-action-twitter, openhab-transformation-scale, openhab-binding-http1, openhab-transformation-javascript, openhab-transformation-RegEx, openhab-binding-weather1, openhab-transformation-regex, openhab-misc-ruleengine, openhab-transformation-XSLT, openhab-transformation-jsonpath, openhab-binding-onewire1, openhab-binding-ipp, openhab-binding-wifiled, openhab-persistence-mqtt, openhab-misc-dropbox1, openhab-misc-gcal1, openhab-persistence-rrd4j, openhab-ui-basic, openhab-binding-ntp, openhab-action-mail, openhab-binding-astro, openhab-binding-openenergymonitor1, openhab-binding-expire1': Error:

2018-05-28 15:21:29.022 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-exec, openhab-binding-yahooweather, openhab-binding-gpio, openhab-binding-airquality, openhab-misc-openhabcloud, openhab-binding-network, openhab-ui-habpanel, openhab-binding-mqttitude1, openhab-binding-mqtt1, openhab-binding-feed, openhab-action-nma, openhab-transformation-map, openhab-ui-classic, openhab-ui-habmin, openhab-action-mqtt, openhab-transformation-exec, openhab-binding-systeminfo, openhab-ui-paper, openhab-action-twitter, openhab-transformation-scale, openhab-binding-http1, openhab-transformation-javascript, openhab-transformation-RegEx, openhab-binding-weather1, openhab-transformation-regex, openhab-misc-ruleengine, openhab-transformation-XSLT, openhab-transformation-jsonpath, openhab-binding-onewire1, openhab-binding-ipp, openhab-binding-wifiled, openhab-persistence-mqtt, openhab-misc-dropbox1, openhab-misc-gcal1, openhab-persistence-rrd4j, openhab-ui-basic, openhab-binding-ntp, openhab-action-mail, openhab-binding-astro, openhab-binding-openenergymonitor1, openhab-binding-expire1': Error:

and apparently a manifest I never heard of seems missing

Resource mvn:org.openhab.binding/org.openhab.binding.wifiled/2.3.0 does not contain a manifest
2018-05-28 15:22:28.979 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-exec, openhab-binding-yahooweather, openhab-binding-gpio, openhab-binding-airquality, openhab-misc-openhabcloud, openhab-binding-network, openhab-ui-habpanel, openhab-binding-mqttitude1, openhab-binding-mqtt1, openhab-binding-feed, openhab-action-nma, openhab-transformation-map, openhab-ui-classic, openhab-ui-habmin, openhab-action-mqtt, openhab-transformation-exec, openhab-binding-systeminfo, openhab-ui-paper, openhab-action-twitter, openhab-transformation-scale, openhab-binding-http1, openhab-transformation-javascript, openhab-transformation-RegEx, openhab-binding-weather1, openhab-transformation-regex, openhab-misc-ruleengine, openhab-transformation-XSLT, openhab-transformation-jsonpath, openhab-binding-onewire1, openhab-binding-ipp, openhab-binding-wifiled, openhab-persistence-mqtt, openhab-misc-dropbox1, openhab-misc-gcal1, openhab-persistence-rrd4j, openhab-ui-basic, openhab-binding-ntp, openhab-action-mail, openhab-binding-astro, openhab-binding-openenergymonitor1, openhab-binding-expire1': Error:

and on ip:8080, I see no user interfaces anymore, just grafana, find and help, so there isn’t much I can check.
Kinda lost at this

check this out first (to get rid of the wifiled manifest story):

thanks, I saw that thread, but was wondering as my addons cfg states that it is only run on first run… so if I change anything… is that even seen?
Also, I may remember a few bindings I installed but not all and even if I remember, I may not know the exact name as needs to be filled out there

If you have installed your addons via PaperUI, all the names can be found in $OPENHAB_USERDATA/config/org/openhab/addons.config (/var/lib/openhab2/config/org/openhab/addons.config)

You can take the info from there and create the binding = line in your $OPENHAB_CONF/services/addons.cfg (/etc/openhab2/services/addons.cfg) file

1 Like

Thanks,
did that, but don’t see much change

did you get rid of that FeatureInstaller error?
does the OH 2.3 system come up?

I do not know if the system core comes up, I still get lots and lots of errors like before that my items cant be found, which is reflected in my app:
only see itemnames, no labelnames, no values and no icons
Don’t know if I got rid of the featue install error. didn’t see it pass by yet

2018-05-28 16:06:24.518 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Machines' for widget org.eclipse.smarthome.model.sitemap.Group
2018-05-28 16:06:24.520 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Group
2018-05-28 16:06:24.521 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Machines' for widget org.eclipse.smarthome.model.sitemap.Group
2018-05-28 16:06:24.522 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Dynamic group with label 'Begane grond' will be ignored, because its item 'gGF' does not exist.
2018-05-28 16:06:24.525 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Group
2018-05-28 16:06:24.525 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'gFF' for widget org.eclipse.smarthome.model.sitemap.Group
2018-05-28 16:06:24.528 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'gFF' for widget org.eclipse.smarthome.model.sitemap.Group
2018-05-28 16:06:24.528 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Dynamic group with label 'Devices' will be ignored, because its item 'Machines' does not exist.
2018-05-28 16:06:24.531 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Group
2018-05-28 16:06:24.531 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Security' for widget org.eclipse.smarthome.model.sitemap.Group
2018-05-28 16:06:24.534 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Security' for widget org.eclipse.smarthome.model.sitemap.Group
2018-05-28 16:06:24.533 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Dynamic group with label 'Eerste verdieping' will be ignored, because its item 'gFF' does not exist.
2018-05-28 16:06:24.537 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'GF_Garage' for widget org.eclipse.smarthome.model.sitemap.Group
2018-05-28 16:0

also, in my app, most of my menu choices don’t work, no doubt because openhab cant find the group… but it is there
But what I do see is that now my UI’ s came up on ip:8080 again

maybe the *.items files are not being loaded correctly… (no errors about syntax validation?)

I have to ask this: are you running on a Raspberry with a SD Card?

yes, running from an SDcard in a raspberry
I didn’t see any syntax validation errors pass by, but there are so many error messages that I might have missed them, but everything was working fine before the update and my eclipse files didn’t give any errors before

I don’t know what could be wrong… I certainly hope that you are not experiencing any kind of file system corruption.

Make a backup of everything first.

Try to remove some *.items files and start adding them back slowly to see which one is giving you troubles.

It would be quite a coincidence if it was an SD card problem that immediately popped up after an update. Also, some 3 weeks ago, I experienced some trouble with rules with crontabs. Advice ‘new SD card’.
Did that, top brand new SD card… still the same rule problem.
If now again it is a corrupted SD card, then I might as well stop.

I have 3 item files… They all experience trouble, so how to find ot what kind of problem they have. They were all recently syntax checked in eclipse smart designer and they all were fine.

Also… I checked some other sitemao files that use completely unrelated items files, same problem.
Only my Airquality sitemap seems to correctly load the Airquality items file

I didn’t see any major breaking change on OH 2.3 with regards to items that would cause the issues that you are experiencing.

Other users are also not complaining about Cannot retrieve item errors… (which are usually related to problematic/erroneous items files)

I would try to copy the files and rename them to see if they load up correctly.

Do you see any items being listed in the console with the command items list ?

I will try that.
What console are you referring to?

https://www.openhab.org/docs/administration/console.html

ah yes that one.
yes see many many items pass by

give this a try: Clear the Cache

(just to check)

and then monitor the logs again

rlkoshak:
/var/lib/openhab2/tmp
did that, same result.
yes got some errors like

018-05-28 16:44:42.026 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-gpio, openhab-transformation-RegEx, openhab-transformation-XSLT': Error restarting bundles:
	Unable to acquire the state change lock for the module: osgi.identity; type="osgi.bundle"; version:Version="0.10.0.oh230"; osgi.identity="org.eclipse.smarthome.model.script.runtime"; singleton:="true" [id=139] STARTED [STARTED]
	
	2018-05-28 16:44:49.664 [ERROR] [org.openhab.binding.gpio            ] - FrameworkEvent ERROR - org.openhab.binding.gpio

But they may be the result of what I added to the addons.cfg.
Furthermore ofcourse the massive errors about not being able to find items and groups.
well, yes the problem is persisting.Dont seemuch use in reopening it in new thread.
Anyway, I sincerely appreciate your help, but I think I just go back to 2.2 and maybe, if I feel like it in future, will do a clean install of 2.3 and just copy my sitemap and itemfiles, see how that goes.

Just a small addition… you might be on to something with errors in my itemsfile. Eventhough I rechecked with eclipse smartdesigner and saw no errors and eventhough they never gave me problems in 2.2… I recreated a small itemsfile containing some of the missing groups and items…and those started to pop up. So lets see what I can do with copying parts of the one file to another and see where it goes bust.
Anyay, again thanks for yr help

1 Like

btw: this tool is a bit outdated… I would try to switch to VSCode which is much better

1 Like

yes so I heard. I may do that.If that immediately spots an error in my itemsfile it might be worth it.

Anyway, might be a good moment to restructure my itemsfile in much smaller sections.
So, I may hold on to 2.3 a bit longer and see what I can ’ fix’
Did I understand correctly that I can remove the bindings I added from the addons.cfg again?

1 Like

yes, you can remove that line (comment it out)
it should work fine

1 Like