ZWave Controller stopped working after using zwave-js

I had used zwave-js-ui to update the firmware of some of my Jasco dimmers. After doing so, I turned off zwave-js-ui and restarted openhab. Since then my ZWave Controller has remained offline. The only thing I see in the logs are:

2022-12-26 18:55:33.629 [DEBUG] [g.zwave.internal.ZWaveConfigProvider] - No bridgeUID found in getConfigDescription thing:zwave:serial_zstick:737356779e
2022-12-26 18:55:33.675 [DEBUG] [ing.zwave.handler.ZWaveSerialHandler] - Disposing receive thread
2022-12-26 18:55:33.676 [DEBUG] [ing.zwave.handler.ZWaveSerialHandler] - Receive thread dispose
2022-12-26 18:55:33.676 [DEBUG] [ing.zwave.handler.ZWaveSerialHandler] - Disposing serial connection
2022-12-26 18:55:33.677 [DEBUG] [ing.zwave.handler.ZWaveSerialHandler] - Serial connection disposed
2022-12-26 18:55:33.678 [DEBUG] [ing.zwave.handler.ZWaveSerialHandler] - Stopped ZWave serial handler
2022-12-26 18:55:33.679 [DEBUG] [ing.zwave.handler.ZWaveSerialHandler] - Initializing ZWave serial controller.
2022-12-26 18:55:33.679 [DEBUG] [zwave.handler.ZWaveControllerHandler] - Initializing ZWave Controller zwave:serial_zstick:737356779e.
2022-12-26 18:55:33.789 [DEBUG] [g.zwave.internal.ZWaveConfigProvider] - No bridgeUID found in getConfigDescription thing:zwave:serial_zstick:737356779e

The controller shows up properly in zwave-js-ui and I’m able to control the nodes from there but in openhab the controller just remains offline. I’m using Aotec Z-stick gen5 in case that helps. Any ideas?

EDIT: It seems to work now. Not sure what exactly the issue was. Things I did:

  1. Upgraded zwave stick firmware from 1.0 to 1.2.
  2. Set the S0 and S2 security keys using zwave-js-ui.
  3. Completely restarted host device again (not just openhab docker container, which had no effect after restarting multiple times).

Most likely it was this. If zwave-js never gave up the lock on the controller openHAB didn’t have the ability to use it. Restarting cleared any locks.

You have to be very careful that and program that uses a serial device like this completely shuts down properly without error before starting another one or else there will be conflicts.