Update to openhab 2.3 kinda broke everything

Top!

ESHD is pretty much dead. It hasnā€™t been updated since OH 2.0 and even that version was incomplete. I highly recommend VSCode with the openHAB extension which actually passes the code to your running OH to parse it meaning itā€™s always up to date with the syntax.

Thanks Rich, I will do that.
Am going through my test itemsfile and already came across some items that would not load eventhough for the life of me I cant see a problem.
Will try some moreā€¦ with VS

I went through the same martyrdom you did when upgrading from 2.3 snapshot to 2.4 snapshot.
I finally did it the way you proposed, clean install and copying the config back: worked right out of the box.

Maybe I will do that then. might be faster. tnx

1 Like

Slight update:
I copied my entire unaltered backup Itemsfile into a new itemsfileā€¦ and suddenly things come to life, eventhough I still miss some stuff that I can see is present in the file (Like an entire room), but wont show up anyway, there is progress.
I just hope that this doesnā€™t suggest my new 3 weeks old SD card is corrupted
Will post updates

So there are two ways an SD card can become corrupted:

  1. Power failure during a write
  2. SD care wears out

The solution to both is the same, rebuild the system. However, with 2 you need to rebuild on a new card. Because the solution to both is the same, and I tend to value peopleā€™s time or highly, with a lack of information to tell me otherwise, I always have people rebuild on a new SD card.

In your case, 2 is highly unlikely but 1 could have happened. Did you yank the plug on the Pi or otherwise lose power recently?

Thanks Rich. I am always very careful with shutting down the raspberry, always issue a shutdown now command and wait a while before I remove power

@Dim @sihui @rlkoshak
And suddenly, after messing a bit more with my main items file, it all started working again, even some sitemap/item comboā€™ s that were completely separate.

neverthelessā€¦ I still may do a fresh install on a new SD card, just to be sure.
All thank you for your help

3 Likes

This morning not a single error message left. Albeit there were 3 items somewhere in a completely unrelated file that still woudnt load. Redid that file and its OK now

Noticed that some of my Transformation services had not survived the transfer, so needed a re-install of those services in paper UI. Not a biggie.

on the plus side after all (your and) my troubles: the AirQuality binding that had given me lots of trouble before seems to work flawlessly now. :slight_smile:
Iā€™ d say thatā€™s a plus and I am again a happy camper

1 Like

my story. was running openhab2 2.0. trying to get some bindings to work but they wouldnā€™t. upgraded to openhab 2.3. ā€˜broke everythingā€™. full sitemap wouldnā€™t load, and what loaded didnā€™t all work. damn.

with upgrade noticed the message that I was running on ua net install. read about it. workaround didnā€™t work. damn.

bit the bullet. took my conf backups and installed latest openhabian. installed bindings. restored confs. huge hopes that magically everything would work. nope. same problems and now with new fresh build I had to reinstall and configure all my non openhab stuff. still, that was for later.

read, read, and read some more including this thread.

at least all the bindings I wanted were available and loading. set about debugging items and sitemap. cut to the end of the story: a ) instead of a } in the items file for the network binding (though not a network binding specific issue I suspect). Thatā€™s it. Didnā€™t complain in 2.0 but barfed in 2.3.

No complaints or grumbles from me about openhab though as was my silly mistake, small font, older eyes.

just leaving this here in case it helps anyone in the future.

2 Likes

Yep, in 2.2 or 2.3 (I forget which) the syntax checking got a little more strict. Before, if there was a syntax error, nothing would be loaded after the line where the syntax error occurred. But later we got a trade off. We now get much more useful error logs for syntax errors (i.e. line and column numbers in the logs) but the behavior is more stringent. Instead of loading everything up to the error point, the entire file is rejected.

This new behavior is really the more correct behavior, but it has hit a number of upgrade users who have had latent syntax errors in their files that were not necessarily noticed before. Though there should have been error log entries even back in OH 2.0 mentioning these errors in openhab.log.

Iā€™m glad you figured your problem out and am sorry it took so much time.

2 Likes