OH 2.5 Release Notes

Hi all,
My OH system updated overnight and broke.
A reboot this morning go some things working but much is still not functioning correctly.
I fixed a lot of things by forcing all .items files to be reloaded after a reboot as if the reboot had failed to load them up correctly.

I have seen the post regarding the need to reinstall REST interface so I have done that now and I think I now need to reboot again.
I would like to go through the ‘breaking’ section of the release notes but cannot seem to locate them, normally I though a link to them was posted in the announcement thread but could not see it.

it looks like I need to add an exception to my auto update to exclude openhab going forward, lesson learnt on that one.

Thanks
Paul

The link was in the announcement.

1 Like

This sounds like an issue I and a few others have seen before. There is an issue open. When OH first starts after an update it’s like none of your Items exist. Restarting OH clears the problem for me.

Definitely, you should not allow anything “mission critical” to autoupdate. You want to do it deliberately and when you have time to deal with problems. And you want to have a rollback plan if you can’t manage to complete the upgrade in one sitting.

That is one reason I do not like Ubuntu. They try forcing auto update and give dire warnings even after disabling it.

1 Like

I’ve never felt pressured to upgrade or update Ubuntu. I never had to disable anything m And the warnings are no different on CentOS or Debian in my experience. I never had to disable anything to prevent auto updates and I know it doesn’t because I also run Tripwire. I know about every file change.

Thanks, could not see it in the announcement thread.

Here is the announcement.

Hi all, some good suggestions and I hopefully have covered them all off. still no support from OH2.5 to my MQTT devices.

  • I have un-installed MQTT 1.x actions
  • I have clear–cache
  • I restarted OH system a few more times :slight_smile:

The log on startup only has this when I filter for mqtt

2019-12-18 11:03:47.226 [INFO ] [penhab.io.transport.mqtt.MqttService] - Stopping broker connection 'MQTT'
2019-12-18 11:03:47.226 [INFO ] [penhab.io.transport.mqtt.MqttService] - Stopping broker connection 'MQTT'
2019-12-18 11:03:47.226 [INFO ] [penhab.io.transport.mqtt.MqttService] - Stopping broker connection 'MQTT'
2019-12-18 11:04:31.975 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'mqtt-rooms.items'
2019-12-18 11:04:32.580 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'mqtt-POW.items'
2019-12-18 11:05:27.775 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'mqtt-local.rules'
2019-12-18 11:08:05.809 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'mqtt-rooms.items'
2019-12-18 11:08:06.429 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'mqtt-POW.items'
2019-12-18 11:08:59.253 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'mqtt-local.rules'
2019-12-18 11:18:15.207 [INFO ] [penhab.io.transport.mqtt.MqttService] - MQTT Service initialization completed.
2019-12-18 11:18:15.207 [INFO ] [penhab.io.transport.mqtt.MqttService] - MQTT Service initialization completed.
2019-12-18 11:18:15.207 [INFO ] [penhab.io.transport.mqtt.MqttService] - MQTT Service initialization completed.

Then after unistalling mqtt actions (I think I now get a failure).

	Line 17576: 2019-12-18 11:33:25.958 [INFO ] [penhab.io.transport.mqtt.MqttService] - MQTT Service initialization completed.
	Line 17576: 2019-12-18 11:33:25.958 [INFO ] [penhab.io.transport.mqtt.MqttService] - MQTT Service initialization completed.
	Line 17576: 2019-12-18 11:33:25.958 [INFO ] [penhab.io.transport.mqtt.MqttService] - MQTT Service initialization completed.
	Line 17577: 2019-12-18 11:33:25.959 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'MQTT'
	Line 17577: 2019-12-18 11:33:25.959 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'MQTT'
	Line 17577: 2019-12-18 11:33:25.959 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'MQTT'
	Line 17577: 2019-12-18 11:33:25.959 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'MQTT'
	Line 17578: 2019-12-18 11:33:26.061 [ERROR] [penhab.io.transport.mqtt.MqttService] - Error starting broker connection
	Line 17578: 2019-12-18 11:33:26.061 [ERROR] [penhab.io.transport.mqtt.MqttService] - Error starting broker connection
	Line 17579: org.eclipse.paho.client.mqttv3.MqttPersistenceException: MqttException
	Line 17579: org.eclipse.paho.client.mqttv3.MqttPersistenceException: MqttException
	Line 17579: org.eclipse.paho.client.mqttv3.MqttPersistenceException: MqttException
	Line 17580: 	at org.eclipse.paho.client.mqttv3.persist.MqttDefaultFilePersistence.open(MqttDefaultFilePersistence.java:80) ~[org.eclipse.paho.client.mqttv3-1.1.0.jar:?]
	Line 17580: 	at org.eclipse.paho.client.mqttv3.persist.MqttDefaultFilePersistence.open(MqttDefaultFilePersistence.java:80) ~[org.eclipse.paho.client.mqttv3-1.1.0.jar:?]
	Line 17580: 	at org.eclipse.paho.client.mqttv3.persist.MqttDefaultFilePersistence.open(MqttDefaultFilePersistence.java:80) ~[org.eclipse.paho.client.mqttv3-1.1.0.jar:?]
	Line 17580: 	at org.eclipse.paho.client.mqttv3.persist.MqttDefaultFilePersistence.open(MqttDefaultFilePersistence.java:80) ~[org.eclipse.paho.client.mqttv3-1.1.0.jar:?]
	Line 17581: 	at org.eclipse.paho.client.mqttv3.MqttAsyncClient.<init>(MqttAsyncClient.java:304) ~[org.eclipse.paho.client.mqttv3-1.1.0.jar:?]
	Line 17581: 	at org.eclipse.paho.client.mqttv3.MqttAsyncClient.<init>(MqttAsyncClient.java:304) ~[org.eclipse.paho.client.mqttv3-1.1.0.jar:?]
	Line 17581: 	at org.eclipse.paho.client.mqttv3.MqttAsyncClient.<init>(MqttAsyncClient.java:304) ~[org.eclipse.paho.client.mqttv3-1.1.0.jar:?]
	Line 17581: 	at org.eclipse.paho.client.mqttv3.MqttAsyncClient.<init>(MqttAsyncClient.java:304) ~[org.eclipse.paho.client.mqttv3-1.1.0.jar:?]
	Line 17582: 	at org.eclipse.paho.client.mqttv3.MqttAsyncClient.<init>(MqttAsyncClient.java:185) ~[org.eclipse.paho.client.mqttv3-1.1.0.jar:?]
	Line 17582: 	at org.eclipse.paho.client.mqttv3.MqttAsyncClient.<init>(MqttAsyncClient.java:185) ~[org.eclipse.paho.client.mqttv3-1.1.0.jar:?]
	Line 17582: 	at org.eclipse.paho.client.mqttv3.MqttAsyncClient.<init>(MqttAsyncClient.java:185) ~[org.eclipse.paho.client.mqttv3-1.1.0.jar:?]
	Line 17582: 	at org.eclipse.paho.client.mqttv3.MqttAsyncClient.<init>(MqttAsyncClient.java:185) ~[org.eclipse.paho.client.mqttv3-1.1.0.jar:?]
	Line 17583: 	at org.eclipse.paho.client.mqttv3.MqttClient.<init>(MqttClient.java:226) ~[org.eclipse.paho.client.mqttv3-1.1.0.jar:?]
	Line 17583: 	at org.eclipse.paho.client.mqttv3.MqttClient.<init>(MqttClient.java:226) ~[org.eclipse.paho.client.mqttv3-1.1.0.jar:?]
	Line 17583: 	at org.eclipse.paho.client.mqttv3.MqttClient.<init>(MqttClient.java:226) ~[org.eclipse.paho.client.mqttv3-1.1.0.jar:?]
	Line 17583: 	at org.eclipse.paho.client.mqttv3.MqttClient.<init>(MqttClient.java:226) ~[org.eclipse.paho.client.mqttv3-1.1.0.jar:?]
	Line 17584: 	at org.openhab.io.transport.mqtt.internal.MqttBrokerConnection.openConnection(MqttBrokerConnection.java:316) ~[bundleFile:?]
	Line 17584: 	at org.openhab.io.transport.mqtt.internal.MqttBrokerConnection.openConnection(MqttBrokerConnection.java:316) ~[bundleFile:?]
	Line 17584: 	at org.openhab.io.transport.mqtt.internal.MqttBrokerConnection.openConnection(MqttBrokerConnection.java:316) ~[bundleFile:?]
	Line 17585: 	at org.openhab.io.transport.mqtt.internal.MqttBrokerConnection.start(MqttBrokerConnection.java:101) ~[bundleFile:?]
	Line 17585: 	at org.openhab.io.transport.mqtt.internal.MqttBrokerConnection.start(MqttBrokerConnection.java:101) ~[bundleFile:?]
	Line 17585: 	at org.openhab.io.transport.mqtt.internal.MqttBrokerConnection.start(MqttBrokerConnection.java:101) ~[bundleFile:?]
	Line 17586: 	at org.openhab.io.transport.mqtt.MqttService.updated(MqttService.java:126) [bundleFile:?]
	Line 17586: 	at org.openhab.io.transport.mqtt.MqttService.updated(MqttService.java:126) [bundleFile:?]
	Line 17586: 	at org.openhab.io.transport.mqtt.MqttService.updated(MqttService.java:126) [bundleFile:?]

I also checked netstat to make sure the broker is running:

[16:44:09] root@openhab:~# netstat -tulpn | grep 1883
tcp        0      0 0.0.0.0:1883            0.0.0.0:*               LISTEN      818/mosquitto
tcp6       0      0 :::1883                 :::*                    LISTEN      818/mosquitto

Removing all commented out lines of my mqtt.cfg file leaves only the below:

MQTT.url=tcp://localhost:1883
MQTT.user=openhab

I will reboot a couple more times and see if the removal of the mqtt actions invoked the change in the log to include an exception.

Thanks
Paul

Hi. Have a RPi4B with OH 2.5.0 and Z-Stick running using the extra USB2 hub dongle. Installed 5 of my 30 Things and added files, but puff, no items loaded. Rebooted, Shutdown, Restarted, no success. Is there another temporary workaround I can try, or just wait for the open issue to be worked? Have been running OH a year without major issues, except for the homemade.
Also, how will I know when a fix is in place?

It’s best to open a new thread and add a lot more details. For example, what do you see in openhab.log? Did you clear the cache? The usual stuff.

If the Issue is in openhab-core I really doubt there will be a fix for 2,5 (or 2.X). They would likely fix it for openHAB 3 which is currently unusable.