openhab-core icon indicating copy to clipboard operation
openhab-core copied to clipboard

Serial Ports getting blocked - issue on OpenHab 3.4.0 Build #3029. The Zwave process stops at:

Open Mr-jreeves opened this issue 3 years ago • 1 comments

I am experiencing this same issue on OpenHab 3.4.0 Build #3029. The Zwave process stops at:

2022-08-03 07:02:21.029 [DEBUG] [ing.zwave.handler.ZWaveSerialHandler] - Connecting to serial port '/dev/ttyUSB0'

and the syslog at the same time shows:

Aug 3 07:02:21 openhabian karaf[955]: initialise_event_info_struct: eis->fd >= FD_SETSIZE!

I have found that this problem is intermittent. I have only seen this when rebooting. Sometimes it happens, sometimes it does not. I doubt this is related, but the times, so far, that I have made it work is when I disconnect the Pi4 from power, and remove the Ethernet cable and let the system sit for 5 minutes ... (sounds like black magic so likely just coincidental)

This never happened when running OpenHab 3.2.0.M4.

I have confirmed I am running:

308 │ Active │ 80 │ 5.2.1.OH1 │ nrjavaserial

This is very repeatable (and annoying since it can take some tries to get the system up) ... I can help with some logs if more information is needed.

This problem has been discussed in this case:

https://community.openhab.org/t/zwave-bridge-wont-go-online/137521

Originally posted by @Mr-jreeves in https://github.com/openhab/openhab-core/issues/1842#issuecomment-1204295200

Mr-jreeves avatar Aug 23 '22 17:08 Mr-jreeves

Apparently https://github.com/NeuronRobotics/nrjavaserial/pull/216 didn't fix the issue completely.

wborn avatar Aug 24 '22 06:08 wborn

This problem is still around (Openhabian 3.4.4) with zwave on a Pi. After a bunch of testing discovered

/var/lock/LCK..ttyACM0 doesn't get cleared out on a system or OH restart. Problem is 100% reproducible with a hard reset and doesn't clear.

Zwave library maintainer tells me this is a core serial library problem to clean up stale lock files on restart.

This thread has event logs in great detail.

https://github.com/openhab/org.openhab.binding.zwave/issues/1871#issuecomment-1562041633

awaldfogel avatar May 24 '23 23:05 awaldfogel