Onewire stops reading sensor values after some time

I upgraded onewire1 to onewire2, which was quite diffculty for me. But now it works, but only for approximately one day. I need to restart the “complete” openhab server to reactivate the onewire sensors reading.

Right now, at the moment my onewire things are online:


But no sensor values are read from owserver. Just as an example some temperature sensors:

2019-04-25 02:02:19.640 [vent.ItemStateChangedEvent] - Temperatur_1 changed from 21.625 to 21.75
2019-04-25 02:49:00.028 [vent.ItemStateChangedEvent] - Temperatur_2 changed from 21.75 to 21.875
2019-04-25 02:50:00.564 [vent.ItemStateChangedEvent] - Temperatur_2 changed from 21.875 to 21.75
2019-04-25 02:51:05.105 [vent.ItemStateChangedEvent] - Temperatur_2 changed from 21.75 to 21.875
2019-04-25 02:51:35.807 [vent.ItemStateChangedEvent] - Temperatur_2 changed from 21.875 to 21.75
2019-04-25 02:52:08.229 [vent.ItemStateChangedEvent] - Temperatur_2 changed from 21.75 to 21.875
2019-04-25 03:01:41.263 [vent.ItemStateChangedEvent] - Temperatur_2 changed from 21.875 to 21.75
2019-04-25 03:02:13.273 [vent.ItemStateChangedEvent] - Temperatur_2 changed from 21.75 to 21.875
2019-04-25 03:09:13.337 [vent.ItemStateChangedEvent] - Temperatur_1 changed from 21.75 to 21.875
2019-04-25 03:12:20.203 [vent.ItemStateChangedEvent] - Temperatur_1 changed from 21.875 to 21.75
2019-04-25 03:13:21.060 [vent.ItemStateChangedEvent] - Temperatur_1 changed from 21.75 to 21.875
2019-04-25 06:02:45.945 [vent.ItemStateChangedEvent] - Temperatur_1 changed from 21.875 to UNDEF
2019-04-25 06:02:46.946 [vent.ItemStateChangedEvent] - Temperatur_2 changed from 21.875 to UNDEF

In the morning at about 6 o’clock the binding stopped reading my sensors. My owserver is up and running right now:

owdir / -s onewire
/20.8C40B7180000
/28.004B92030000
/28.38CD56050000
/28.821257050000
/28.EAD155050000
/28.EE4A92030000
/28.B90856050000
/28.F90656050000
/28.0DA256050000
/28.234C56050000
/28.DB9655050000
/28.9F54AD040000
/12.C03BB6000000
/12.8136B6000000
/12.3130B6000000
/12.133CB6000000
/12.2F38B6000000
/26.D0E356010000
/26.DCE356010000
/bus.0
/uncached
/settings
/system
/statistics
/structure
/simultaneous
/alarm

A bundle restart leads to this (all things are offline) and doesnt’ solve the problem:

An openhab restart (service openhab2 restart) solves this problem, the things are online again in the paperUI:

2019-04-25 17:41:40.977 [temChannelLinkRemovedEvent] - Link ‘Temperatur_2 => onewire:basic:bridge:28_B90856050000:temperature’ has been removed.
2019-04-25 17:41:41.033 [temChannelLinkRemovedEvent] - Link ‘Temperatur_1 => onewire:basic:bridge:28_0DA256050000:temperature’ has been removed.
2019-04-25 17:43:09.963 [vent.ItemStateChangedEvent] - Temperatur_1 changed from NULL to 22.5
2019-04-25 17:43:11.659 [vent.ItemStateChangedEvent] - Temperatur_2 changed from NULL to 22.5

My thing definition (an excerpt):

Bridge onewire:owserver:bridge [ network-address=“192.168.2.6”, port=4304 ]
{
Thing basic 28_0DA256050000 “Temperatur 1” [id=“28.0DA256050000”, refresh=30]
{ Type temperature-por-res : temperature [ignorepor=true, resolution=“11”] }
Thing basic 28_B90856050000 “Temperatur 2” [id=“28.B90856050000”, refresh=30]
{ Type temperature-por-res : temperature [ignorepor=true, resolution=“11”] }
Thing basic 12_C03BB6000000 “Enthärtungsanlage” [id=“12.C03BB6000000”, refresh=600]
{ Type dio : digital0 [mode=“input”, logic=“inverted”] }
Thing basic 12_2F38B6000000 “Galeriefenster” [id=“12.2F38B6000000”, refresh=30]
{ Type dio : digital0 [mode=“input”, logic=“normal”] }
Channels:
Type owfs-number : crc8errors [path=“statistics/errors/CRC8_errors”]
Type owfs-number : crc16errors [path=“statistics/errors/CRC16_errors”]
}

I needed to autodiscover my ms-tx things, as I didn’t get a running thing configuration for them. The docu is not clear enough for me, so their definition is somewhere in another config.

I hope anyone can help. Otherwise I need to downgrade to onewire1, which ran more relyable for me, but will cost me further time :frowning:
Thanks!

What version? OH and binding.

openhab2 2.5.0~S1566-1
2.5.0.201904202137 org.openhab.binding.onewire
on debian stretch

Ok. And there is nothing in the logs from org.openhab.binding.onewire? That‘s strange. Can you set the binding to DEBUG and see what happens?

@staehler67 have you cleaned the cache since upgrading to onewire2?

sudo systemctl stop openhab2

sudo openhab-cli clean-cache

sudo systemctl start openhab2
or reboot if you prefer
sudo reboot

Yes I have done it more than once.