Raspi4 4GB
openHab 4.01
First of all, this has nothing to do with openHAB4. I have this problem for a longer time.
Also a new installation with latest openhabian 1.8 did not solve this (but with imported openHAB-Backup).
Problem:
Sometimes when I restart openHAB-Service (sudo systemctl restart openhab.service) the Thing does not go ONLINE anymore and remains in status “Initializing”. Disable/Enable does not help. TRACE of Binding only shows this:
|4|07:44:45.583|WARN|core.thing.internal.ThingManagerImpl|Initializing handler for thing 'systeminfo:computer:openhabian' takes more than 5000ms.
|3|07:44:40.582|DEBUG|eminfo.internal.model.OSHISysteminfo|OSHISysteminfo service starts initializing|
|2|07:44:40.582|TRACE|o.internal.handler.SysteminfoHandler|Restoring channel configurations|
|1|07:44:40.580|TRACE|o.internal.handler.SysteminfoHandler|Initializing thing openhabian with thing type computer|
But if I restart the Raspi completely, everything is OK again.
So…not really critical. But it is the last open item I have in openHAB 4.01 and I want to solve this
Does anyone have any idea what is causing this problem? Or how I can get more info from Log? But TRACE is already max I think.
Update:
Now I have just realized that after 20 minutes the Thing goes Online:
||08:02:14.949|DEBUG|o.internal.handler.SysteminfoHandler|Start reading Thing configuration.|
|10|08:02:14.947|DEBUG|o.internal.handler.SysteminfoHandler|Properties updated!|
|9|08:02:14.946|DEBUG|o.internal.handler.SysteminfoHandler|Refresh time for high priority channels set to 5 s|
|8|08:02:14.945|DEBUG|o.internal.handler.SysteminfoHandler|Refresh time for medium priority channels set to 60 s|
|7|08:02:14.944|DEBUG|o.internal.handler.SysteminfoHandler|Start reading Thing configuration.|
|6|08:02:14.944|DEBUG|o.internal.handler.SysteminfoHandler|Systeminfo implementation is instantiated!|
|5|08:02:14.938|DEBUG|o.internal.handler.SysteminfoHandler|Systeminfo implementation is instantiated!|
|4|07:44:45.583|WARN|core.thing.internal.ThingManagerImpl|Initializing handler for thing 'systeminfo:computer:openhabian' takes more than 5000ms.|
|3|07:44:40.582|DEBUG|eminfo.internal.model.OSHISysteminfo|OSHISysteminfo service starts initializing|
|2|07:44:40.582|TRACE|o.internal.handler.SysteminfoHandler|Restoring channel configurations|
|1|07:44:40.580|TRACE|o.internal.handler.SysteminfoHandler|Initializing thing openhabian with thing type computer|
But still strange. Any idea why this takes so long?