Closed lolodomo closed 1 month ago
The first OH restart with timeout set to 15s works. Will see after more restarts if this is "stable".
Another possible fix could be to adjust the delay of the scheduled task? Set it to 10 seconds or so?
Why delaying more should change something ? You think it could be Jetty being too much used at this time ?
In the original binding, the timeout is set to 10s.
A first restart with timeout set to 10s (instead of default 8s) succeeded. Will keep this value and see if this is OK at each restart.
@lsiepel : your link concerns the other binding, freebox and not freeboxos.
In the new binding, it is even run without any delay: https://github.com/openhab/openhab-addons/blob/main/bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/handler/FreeboxOsHandler.java#L70
@lsiepel : your link concerns the other binding, freebox and not freeboxos.
In the new binding, it is even run without any delay: https://github.com/openhab/openhab-addons/blob/main/bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/handler/FreeboxOsHandler.java#L70
Oops, in my phone it is not so easy to navigate GitHub. my suggestion would be the same to delay the task. Answering the why question, delaying the scheduled task could give room to jetty to finish other tasks that are started at system startup. As this issue only occurs at system start.
Almost all times I restart oipenHAB, the bridge thing will be OFFLINE / CONFIGURATION_ERROR / Exception while calling https://mafreebox.freebox.fr/api_version. If I restart the binding or disable/re-enalbe the brtidge thing, this is OK and the bridge is then ONLINE.
I just added a log and the problem is a timeout:
I don't know why it happens only at OH startup. I will try with a bigger timeout.