-
Notifications
You must be signed in to change notification settings - Fork 1
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
Critical HA error on socket teardown #1
Comments
could be an issue with base client class implementation of socket connector.
and this connector
we may need to wrap our own try method to catch socket errors. we should find out common causes of socket errors and determine best path forward |
So when attempting to connect to a port that doesn't exist on the end-point you get the following error. In this case the component fails to load (all hubs and sensors), but home assistant continues to load.
|
If we wrap the setup connect in a try (maybe best to put the try in the connect directive) then we get an error and other hubs continue to connect. When trying to connect to a UA server where security policy is not "none" then another warning is generated but HA continues to load. Both messages are not overly useful in describing which UA sever connection was to fault for the error. maybe we can intercept and add to the error message to make it more useful. |
…efused/torn down by target opc ua server.
provided a commit to wrap the connect methods in a try and it will raise an error and hopefully not crash HA errors do still lead to all OPC UA targets and the component not being loaded. we should address that as well |
appears that a critical error occurs while opcua attempts to connect to an opc ua server and it is rejected. in this case due to incorrect security configuration. first reported at HA Community Forum
That said it shouldn't crash HA or prevent further loading. additional investigation required.
Home-assistant.log file :
The text was updated successfully, but these errors were encountered: