Here are somethings that might could help after upgrading OH 2.5 M1 to OH 2.5 M2
About my installation
Please see my first post here: My point of view of Openhab2, stability and a few good to know stuff
Openhab in general
First, to update the APT repo you should check here: The APT/RPM 'testing' (Milestone) repository has moved
After upgrading and reconfigurating Openhab I got some errors like cannot be resolved to an item or type
It got fixed after I set the rights for all files in '/etc/openhab2/'
/bin/chown -R openhab. /etc/openhab2/*
Don’t forget to check the output after upgrading:
[openHAB] Listing important changes for version 2.5.0:
Warning: senseBox Binding: The senseBox binding is now using Units of Measurements, and the channel name for Illuminance has changed. The Items must be reconfigured.
Warning: Vitotronic Binding: The following channels have been renamed: 'outsite_temp' to 'outside_temp', 'pelletburner:power' to 'pelletburner:powerlevel', 'party_temp' to 'party_temp_setpoint' and 'save_temp' to 'save_temp_setpoint'
Warning: OneWire Binding: Some thing types have changed and need to be updated in textual configurations. See documentation for further information.
Warning: REST Docs: This add-on is now part of the UIs. When installing it using textual configuration, update 'services/addons.cfg' by removing 'restdocs' from 'misc' and add it to 'ui' instead.
Warning: EnOcean Binding: Channel 'receivingState' has been removed, because this was a string containing many information. For this, there are three new channels: 'rssi', 'repeatCount' and 'lastReceived'.
Warning: Mail Action: The mail action has been replaced by a new mail binding.
Warning: Homekit: Some tags have been renamed. Old names will not be supported in future versions. Please check documentation.
Warning: Pushbullet Action: The pushbullet action has been replaced by a new pushbullet binding.
Warning: DarkSky Binding: The item type of `rain` and `snow` channels have been changed to `Number:Speed`.
Pushbullet:
Usage has changed so please checkout the documentation: https://www.openhab.org/addons/bindings/pushbullet/
Error message:
2019-08-10 15:19:20.679 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-action-pushbullet'
When moving pushbullet
from action-addons to binding-addons in: '/etc/openhab2/services/runtime.cfg'
org.openhab.addons:binding=pushbullet,<other bindings>,...
org.openhab.addons:action=<other actions>,...
The action configuration line in: '/var/lib/openhab2/config/org/openhab/addons.config'
action="pushbullet"
Is not cleaned up. Also after an cache/tmp cleanup it is still there
I removed the line and Pushbullet got installed and it works again (Don’t forget the new usage)
Restdocs
Rest API has been moved from misc addons to ui addons.
When moving restdocs
from misc-addons to ui-addons in: '/etc/openhab2/services/runtime.cfg'
org.openhab.addons:ui=restdocs,<other bindings>,...
org.openhab.addons:misc=<other actions>,...
If you installed the restdocs using the UI. This should fix it: openHAB Milestone builds
Last observation
When I upgrading one of my openhab 2.5 M1 installations my log got spammed with errors like:
2019-08-11 00:44:51.558 [ERROR] [xbase.resource.BatchLinkableResource] - resolution of uriFragment '|::0.2.0.2.0.0.6.1.1.0.1.0::0::/1' failed.
2019-08-11 00:44:51.748 [ERROR] [xbase.resource.BatchLinkableResource] - resolution of uriFragment '|::0.2.0.2.0.0.6.1.1.0.1.0.7::0::/1' failed.
2019-08-11 00:44:51.939 [ERROR] [xbase.resource.BatchLinkableResource] - resolution of uriFragment '|::0.2.0.2.0.0.6.1.1.0.1.0.7::0::/1' failed.
2019-08-11 00:44:52.137 [ERROR] [xbase.resource.BatchLinkableResource] - resolution of uriFragment '|::0.2.0.2.0.0.6.1.1.0.1.0.7.7::0::/1' failed.
I had to purge the openhab2 package(s) and reinstall it (Remomber to backup your configuration, uuid and secret)
apt purge openhab2 [openhab2-addons]
apt install openhab2 [openhab2-addons]
When purging the package(s) all OH configurations and OH files are removed without warning. So again remember to backup your config
I saved:
'/etc/openhab2/*'
'/var/lib/openhab2/uuid'
'/var/lib/openhab2/openhabcloud/secret'
If you used the PaperUI to configure your OH. You should use:
openhab-cli backup [--full] [filename]
...
<purge/reinstall package(s)>
...
openhab-cli restore filename
I don’t know if this backup could contain something that could break the new installation?
And last but not least, clearing the cache could do wonders
Hope this helps