-
-
Notifications
You must be signed in to change notification settings - Fork 603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Does not reconnect when the TCP connection is broken #4174
Comments
@AlCalzone Does that throws a driver error? |
https://github.com/zwave-js/node-zwave-js/pull/3520/files It should |
@andyboeh Could you attach zwavejs logs please? I always try a restart when there is a driver error |
Here you go - nothing more happens, it just sits there displaying the error although the server is already restarted. |
The driver is also being restarted, but then it doesn't connect... I'll have to check why. |
We had a partial power outage today where both of my Z-Wave controllers lost power but the server running zwave-js stayed online (thanks to its UPS). Once again, I had to manually reconnect to the controllers. |
So i found something, debugging with F11 is very inconsistent, i hate it.
I believe this cause a lack of 'error' that the UI should catch to try a restart. Removing the if sadly still don't emit the error in the log but at least to go downsteam. i'll keep digging when i have some time |
it is re-filtered by
Removing it to does allow the error to come through.
I feel like
|
i have tried a lot of thing but this is overall to much for me. |
Thank-you very much ! |
Checklist
Deploy method
Docker
Zwavejs2Mqtt version
6.4.1
ZwaveJS version
8.11.1
Describe the bug
I'm using a Z-Wave adapter shared via TCP (ser2net on the server side). Today, I had to reboot the device with the dongle and, as expected, the connection broke. However, it is not restored automatically as I had expected. Instead, the following message is displayed:
Driver: Serial port errored: read ETIMEDOUT (ZW0100)
It would be nice if it tried to reconnect every few seconds until the server can be reached again. We already worked on a similar bug in zwave-js/zwave-js-ui#1246 and I saw similar reports in #3509.
To Reproduce
This gives
Driver: Serial port errored: The socket closed unexpectedly! (ZW0100)
, but it doesn't reconnect either!Expected behavior
After 4., the connection should be auto-restored.
Additional context
No response
The text was updated successfully, but these errors were encountered: