node-zwave-js: [bug] tcp://ip:port connection ETIMEDOUT error doesn't match `ZWaveErrorCodes.Driver_Failed`
Checklist:
- [ X ] I am not using Home Assistant.
- [ X ] I have checked the troubleshooting section and my problem is not described there.
- [ X ] I have read the changelog and my problem is not mentioned there.
Build/Run method
- [ X ] Docker
- PKG
- Snap package
- Manually built (git clone - yarn install - yarn run build )
Zwavejs2Mqtt version: 5.8.0 Z-Wave JS version: 8.4.1
Describe the bug
- I am using a tcp connection for zwave, in the form of tcp://192.168.1.5:7676
- on the other end of the connection there’s a ser2net server
- everything works great until the network device reboot
After reboot, the web interface shows
Driver: read ETIMEDOUT
and in MQTT I have (topic and value)
service/zwave_01/_EVENTS/ZWAVE_GATEWAY-zwave_01/driver/driver_error {"data":[{"errno":-110,"code":"ETIMEDOUT","syscall":"read"}]}
and it never works again unless i restart the zwave2mqtt docker image or i save setting again in the web interface
To Reproduce
Steps to reproduce the behavior:
- Go to setting -> zwave, set tcp://<ip>:<port> for ser2net server attached to a zwave stick on a network device
- Save setting
- Check zwave works by turning a device/on/off
- Reboot network device that runs ser2net or pull network cable
- see in web interface “Driver: read ETIMEDOUT”
- see in mqtt
service/zwave_01/_EVENTS/ZWAVE_GATEWAY-zwave_01/driver/driver_error {"data":[{"errno":-110,"code":"ETIMEDOUT","syscall":"read"}]}
Expected behavior
When zwave driver enter that specific error state i expect it to be restarted after some amount of time.
Additional context
- I don’t think it matters but my network device is a vera edge with all it’s vera software turned off and ser2net being started automatically
- I am using docker image with :latest tag pulled one hour ago and i did a zwave config updates then restarted everything
How do i clean up my logs of any private data ? I’d like to post them here but i want to make sure i don’t leak any keys or other information.
Thank you for your time! This is great software!
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 37 (15 by maintainers)
Regarding the initial issue in the ticket: @robertsLando @AlCalzone i have zwave still working since yesterday (about 18 hours) with multiple reboots and ser2net restarts (more than 200 probably). It seems pretty stable.
Then if it fails i see the retry
And then it seems to be working fine. I’ll do some testing over the next 1-2 hours to make sure it’s stable
@AlCalzone @robertsLando please let me know when i can test with any docker image to validate the fix. Also, if you have any other bugs that need docker testing please let me know, i have a couple zwave devices, zwave sticks and other zwave-related things.