finally after a months long journey of upgrading from 3.x to 4.2 everything is running just fine. So far. The only thing that bothers me is this nasty Health Check message. 125 orphan links seem to be waiting for action.
I did not check the items in the list versus names and titles under things and/or items to confirm they simply do not exist. Last time I deleted the links as suggested by the software and afterwards I did setup everything again.
Anyone an idea how to proceed with these orphan links safely?
If they are orphaned that means that one side or both sides of the link don’t exist. That means you can safely delete them.
There is a known bug I saw reported and worked on (I’m not sure when/if it has been merged but am pretty sure it’s post 4.2 release) where links were not being deleted property for .items files users.
Orphaned links can cause some problems but that was more the case before OH 4.2. You can ignore the warning or you can click on the warning and delete the links.
This was merged yesterday and should be in the latest snapshot
This PR only fixes in the case when you edited the link inside an .items file at runtime.
When you haven’t touched the .items file since openhab boot, then this PR doesn’t apply.
@Lehmann can you post a screenshot of the health check? Do the items have a lock icon next to them? If not, did you tell it to fix the problem (remove orphaned links)?
Screenshot should be available through upload. Item status remains same since first boot of OH4.2.
And to answer the question about the orphans, no I did not purge the items as I had trouble after last time purging. Some items simply were not responding any longer and I did the entire setup once again.
the PR is related to .items file. From your screenshot, it seems that the health issues are NOT related to items file, so the PR is irrelevant to you.
The message in your health checks are saying “The item does not exist”. What happened to the items? Did you delete them in the past?
Indeed, if you tell Health Checks to purge the links, and you still want the items / links, then you’d have to recreate them - not fun to do.
It’s one of the reasons why I prefer using .items file or create my items programmatically instead of using the UI. Sure, you can have syntax errors, but they are easy to fix and once fixed, it’s fixed.
all items are used in the now working setup. It appears as if the upgrade tool more or less made copies and at least one part of it is not pointing anywhere now.
The items were created using the OH functionality. No creation by manually setting up .items files. That’s what I had done way in the past with older versions. Since OH offered the creation process all items were transferred and worked for quite some time now.
Nooooo, and did a check on another one which also is not showing. Basically all thermostat things do not use the equipment identifier in their names .items
Would be nice to have all .items out of the orphan list side by side with the .items in the running setup. Names are fairly close / pretty much the same. And then it would need a solution to at least manually delete all items. Maybe nothing is left in the end. Which I do not really believe when looking at this Schaltuhr item.
finally I did get a chance to work on those health issues. There were a few items which did have an undefined link to whatever. Clicking on the arrow shown on the right side for the health issue items opens the item and allows for deleting the one without any connection.
Next step was clicking through some more of the listed items. None of the showed anything similar to what has been mentioned above. I made sure that really none of the items are used anywhere. Basically by checking my rules and diagrams whether the names show in anyplace. Did that for about 10 items and finally decided to give it a go and hit the delete button.
Everything did work fine. Unexpectedly but yes it did. Did another restart of the raspi together with a proper stop of openhab and still it works. YES since then no issues with openhab.
By the way, I did do another new install because after trying to setup the backup version I used with openhab3 the system completely got stuck. The backup function is the one from GitHub using dd Linux function. I’ll give it another try the next rainy days.