-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[network] Network Binding things are slow to start from OH 4.1 #17956
Comments
Waht is your network configuration on your host? Are you using any virtualisation stuff (docker, hyper-v, vmware etc etc) |
I am not using any virtualization system Docker, Hyper-V, VMware, etc. The production and test installations are done on home computers (PCs or thin clients) with a standard Windows installation, with a LAN network interface and a WiFi one. |
Only 1 connected i assume? If not, does it make any difference if you disable one? When you put the log level of the network binding to trace, does it show anythingt usefull? |
In all the cases I have tested, I have always had only the LAN interface active. When I have put the trace mode I have not been able to detect anything useful (to my knowledge) ################################### NETWORK #################################### org.openhab.network:primaryAddress=192.168.0.6/24 A broadcast address (e.g. 192.168.1.255). org.openhab.network:broadcastAddress=192.168.0.255 Use only one IP address per interface and family. org.openhab.network:useOnlyOneAddress=false Use IPv6 Addresses if available. org.openhab.network:useIPv6=true ################################################################################## Thing network:pingdevice:movil_yol "Móvil 1" [ hostname="192.168.0.xx", macAddress="XX:XX:XX:XX:XX:XX", useIOSWakeUp="false" ] I have also tried setting the parameter 'networkInterfaceNames=' , but I have not been able to do so on a Windows installation. |
Not sure if it helps, but try disable ipv6 (useIPv6=false) if your home network is setup using ipv4 and limit to one address (useOnlyOneAddress=true). Be sure that the In that case i think you have a proper configuration. As this only happens at startup, it might be related to Thing discovery. Do you see anything weird in task manager, processes/threads running 100%? Could you post the trace log (or send it private) that runs for those 12 minutes? |
Hi Isiepel! After your second post about whether I found any differences when disabling any of the interfaces, I have performed a series of conclusive tests:
Two additional questions:
Thank you very much for your help TEST 1 Enable ethernet interface Only - Works perfect! starts in 2 minutes Configuración IP de Windows Adaptador de Ethernet Ethernet: Sufijo DNS específico para la conexión. . : TEST 2 Enable ethernet interface and Bluetooth interface - Works good! starts in 3 minutes Configuración IP de Windows Adaptador de Ethernet Ethernet: Sufijo DNS específico para la conexión. . : Adaptador de Ethernet Conexión de red Bluetooth 2: Estado de los medios. . . . . . . . . . . : medios desconectados TEST 3 Enable ethernet interface and WIFI interface - Fail! starts in 9 minutes Configuración IP de Windows Adaptador de Ethernet Ethernet: Sufijo DNS específico para la conexión. . : Adaptador de LAN inalámbrica Wi-Fi: Estado de los medios. . . . . . . . . . . : medios desconectados Adaptador de LAN inalámbrica Conexión de área local* 2: Estado de los medios. . . . . . . . . . . : medios desconectados Adaptador de LAN inalámbrica Conexión de área local* 3: Estado de los medios. . . . . . . . . . . : medios desconectados TEST 4 Enable ethernet interface, Bluetooth interface and WIFI interface - Fail! starts in 10 minutes Adaptador de Ethernet Ethernet: Sufijo DNS específico para la conexión. . : Adaptador de LAN inalámbrica Wi-Fi: Estado de los medios. . . . . . . . . . . : medios desconectados Adaptador de LAN inalámbrica Conexión de área local* 2: Estado de los medios. . . . . . . . . . . : medios desconectados Adaptador de LAN inalámbrica Conexión de área local* 3: Estado de los medios. . . . . . . . . . . : medios desconectados Adaptador de Ethernet Conexión de red Bluetooth 2: Estado de los medios. . . . . . . . . . . : medios desconectados |
Two additional questions:
Linux user here, can't tell.
Perfect, setting it explicitly or d3ependingin on the default doesn;t matter, the result is the same. Maybe i look into the root cause, maybe we can filter the network interfaces on the state (ifUp) |
This issue has been mentioned on openHAB Community. There might be relevant details there: |
Ok lsiepel Thank you for your time! |
This is related to #16810. I still have the same issue with OH 4.3. I have stopped using the network binding since then. The binding seems to interact with every interfaces configured on the OH server during its initialization regardless of having the As I mentioned here, something changed between OH 4.1.0 and 4.1.1. |
There is a small difference, in the other thread docker is used and disabling interfces did not help. In this case, it is about a reguler host with 2 NIC's and disabvleing helps. Nevertheless the interface filtering should work, did not have time today to look into it. |
Ok, looked at the code.
Question: Edit: Can you try this jar https://1drv.ms/u/s!AnMcxmvEeupwj49DlPN-znfkoxHM6w?e=wGfqko it should work on 4.3.0. During discovery, the
|
Since I upgraded from 4.1, without making any changes to my environment, I've started experiencing delays in initializing network stuff. I've checked all the binding information and it's all in accordance with it.
I have a feeling that it only affects OH installations of Windows, but I haven't found much information about complaints in the general forums.
Expected Behavior
In OH 4.1 and earlier, there were no delayed Initializing handler logs, and the full startup of OH was fast (2-3 min)
Current Behavior
Initializing handler is abnormally long. In this log it takes approximately 14 min
Possible Solution
Steps to Reproduce (for Bugs)
Context
In versions higher than 4.1 it was annoying due to the warning logs, in version 4.3 until the initialization of all network bindings is finished it does not load the rest of the rules (this does not always happen). This means that a restart can last 2 minutes (without binding) or 12 minutes due to network binding.
Your Environment
I have performed all possible test combinations:
OH 4.2, 4.2.2, 4.2.3, 4.3
Toshiba Laptop - W10 PRO
HP PC - W10 HOME
Dell Thin Client - W10 PRO
HP Thin Client - W11 PRO
... in all cases with the same result.
The text was updated successfully, but these errors were encountered: