[SOLVED] Zwave repeatedly initialized

Hello,

I just updated to 2.5. I noticed this my my logs, zwave keeps getting stopped and restarted. Log is continuous and as you notice, it’s about every 1-2 minutes. Is this normal? I run on a Pi with a zwave daughter board.

B2019-12-22 17:19:56.915 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Stopped ZWave serial handler
2019-12-22 17:19:58.463 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing ‘openhab-misc-restdocs’
2019-12-22 17:20:06.212 [INFO ] [zwave.handler.ZWaveControllerHandler] - Attempting to add listener when controller is null
2019-12-22 17:20:06.636 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Connecting to serial port ‘/dev/ttyAMA0’
2019-12-22 17:20:06.679 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Serial port is initialized
2019-12-22 17:20:06.825 [INFO ] [ve.internal.protocol.ZWaveController] - Starting ZWave controller
2019-12-22 17:20:06.828 [INFO ] [ve.internal.protocol.ZWaveController] - ZWave timeout is set to 5000ms. Soft reset is false.
2019-12-22 17:20:47.702 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing ‘openhab-misc-restdocs’
2019-12-22 17:21:54.112 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Stopped ZWave serial handler
2019-12-22 17:21:55.440 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing ‘openhab-misc-restdocs’
2019-12-22 17:22:06.089 [INFO ] [zwave.handler.ZWaveControllerHandler] - Attempting to add listener when controller is null
2019-12-22 17:22:06.365 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Connecting to serial port ‘/dev/ttyAMA0’
2019-12-22 17:22:06.489 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Serial port is initialized
2019-12-22 17:22:06.694 [INFO ] [ve.internal.protocol.ZWaveController] - Starting ZWave controller
2019-12-22 17:22:06.698 [INFO ] [ve.internal.protocol.ZWaveController] - ZWave timeout is set to 5000ms. Soft reset is false.
2019-12-22 17:22:55.996 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Stopped ZWave serial handler
2019-12-22 17:22:58.029 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing ‘openhab-misc-restdocs’
2019-12-22 17:23:09.626 [INFO ] [zwave.handler.ZWaveControllerHandler] - Attempting to add listener when controller is null
2019-12-22 17:23:10.060 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Connecting to serial port ‘/dev/ttyAMA0’
2019-12-22 17:23:10.164 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Serial port is initialized
2019-12-22 17:23:10.363 [INFO ] [ve.internal.protocol.ZWaveController] - Starting ZWave controller
2019-12-22 17:23:10.366 [INFO ] [ve.internal.protocol.ZWaveController] - ZWave timeout is set to 5000ms. Soft reset is false.

Thx!

1 Like

That is your key. The addon restdocs moved to ui as documented in the Release Notes and mentioned in upgrade Warnings…
The loader is reloading all addons every minute, trying to load that invalid one.

1 Like

@Bruce_Osborne, thanks for the reply. That was it. I was trying to resolve that but couldn’t find the correct config file. For anyone else out there, there are two addons.cfg config files one is located here:

/var/lib/openhab2/config/org/openhab

and the other

/etc/openhab2/services

Thx!

2 Likes

FYI to all:
If you make a change to /var/lib/openhab2/config/org/openhab you need to stop OH first, make your change and restart.:wink:

Hi, I have the same problem, could you explain us the solution? where do i find restdocs??

Thank you

It depends on how you installed openHAB. for many people the addons file is /var/lib/openhab2/config/org/openhab/addons.config. The complete answer is it is in the userdatafolder tree.

Stop OpenHAB before editing that file. restdocs should be under ui not misc. It is possible there are other invalid addons too.

Thanks for this reply. I Have found both addons.config but do not know what to do now?
My config looks like this. There is no restdocs. Im actualy on opanhabian (Raspberry pi 3)

Your openhab.log should be telling you something about that.

Could this be the reason:
2020-07-05 14:23:29.170 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing ‘openhab-action-mail’

I believe there were some changes regarding mail.

1 Like

@Lugor --> Thank you! You saved my day :slight_smile:
I was always looking for the wrong addons.cfg file.

I had this ugly problem:

[ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-http1, (…)

Clean Cache, Restart, Reboot, … didn’t help.

For all who have a similar problem with not installing bindings after restart (in my case due to an error with Modbus binding install) and a complete not working OH, you should try to open:

/var/lib/openhab2/config/org/openhab --> nano addons.config

and delete the problematic binding. In my case it was “modbus”. After restarting now everything is finally fine again.

Cheers!

That is your userdata folder. Its location varies depending on how OH was installed. On one of my systems, it is /opt/openhab/userdata, for instance.