OH Behaves strange after some time

  • Platform information:
    • Hardware: Rpi4 4Gb
    • OS: RaspiOS 32bit
    • Java Runtime Environment: Docker
    • openHAB version: 3RC1

My OH running as docker for some time now, no issues.
Recently, after some time, OH stop working partially, mainly the rule engine
Restarting the docker fixing it.

In the logs I see some permission denied, and some write errors, but how come its solved with reboot ?
Few weeks ago I had full SSD card issue (Docker json log file was 499GB!) but its solved and no such issues anymore. I’ve deleted the cache and tmp directories and rebooted. it happened again after.
Logs attached.

What should I do ?
All other dockers work flawless so I’m no suspecting the SSD as hardware (Boot from SSD as well)

openhab.logs.txt (245.3 KB)

See if RC2 fixes it first.

Just upgraded. I’ll report back.

Again, Rules not working
This time I don’t see anything in the logs that might suggest what’s the issue.

before reboot

2020-12-20 07:44:01.808 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'dShuttersKRLight' received command RSLH
2020-12-20 07:44:01.814 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'dShuttersKRLight' changed from NULL to RSLH

and now rule should fire

rule “KidsRoomLight”
when
Item dShuttersKRLight received update
then
if (dShuttersKRLight.state.toString.contains(“RSLH”)) {
sendCommand(KRWRS_Shutter, 33)
sendCommand(KRNRS_Shutter, 33)
sendCommand(dShuttersKRLight, “x”)
}
if (dShuttersKRLight.state.toString.contains(“RSDW”)) {
sendCommand(gShuttersKR, DOWN)
sendCommand(dShuttersKRLight, “x”)
}
if (dShuttersKRLight.state.toString.contains(“RSUP”)) {
sendCommand(gShuttersKR, UP)
sendCommand(dShuttersKRLight, “x”)
}
end

and now after reboot

2020-12-20 07:50:54.121 [INFO ] [openhab.event.ItemCommandEvent ] - Item ‘dShuttersKRLight’ received command RSLH
2020-12-20 07:50:54.126 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘dShuttersKRLight’ changed from NULL to RSLH
2020-12-20 07:51:05.545 [INFO ] [openhab.event.ItemCommandEvent ] - Item ‘KRWRS_Shutter’ received command 33
2020-12-20 07:51:05.549 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item ‘KRWRS_Shutter’ predicted to become 33
2020-12-20 07:51:05.626 [INFO ] [openhab.event.ItemCommandEvent ] - Item ‘KRNRS_Shutter’ received command 33
2020-12-20 07:51:05.628 [INFO ] [openhab.event.ItemCommandEvent ] - Item ‘dShuttersKRLight’ received command x
2020-12-20 07:51:05.630 [INFO ] [hab.event.GroupItemStateChangedEvent] - Item ‘gShutters’ changed from 0 to UP through KRWRS_Shutter
2020-12-20 07:51:05.631 [INFO ] [hab.event.GroupItemStateChangedEvent] - Item ‘gShuttersKR’ changed from 0 to UP through KRWRS_Shutter
2020-12-20 07:51:05.632 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘KRWRS_Shutter’ changed from 0 to 33
2020-12-20 07:51:05.637 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item ‘KRNRS_Shutter’ predicted to become 33
2020-12-20 07:51:05.700 [INFO ] [hab.event.GroupItemStateChangedEvent] - Item ‘gShuttersKR’ changed from 0 to DOWN through KRNRS_Shutter
2020-12-20 07:51:05.704 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘KRNRS_Shutter’ changed from 0 to 33
2020-12-20 07:51:05.712 [INFO ] [hab.event.GroupItemStateChangedEvent] - Item ‘gShutters’ changed from 0 to UP through KRNRS_Shutter
2020-12-20 07:51:05.718 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘dShuttersKRLight’ changed from RSLH to x

Since you had a full SD card perhaps there is some file or filesystem corruption too.

Backing up, reformatting, reimaging, and then restoring necessary data may help.

What will be the minimal configuration needed? Conf folder?

For Docker, I would back up all your non-system Volumes. For instance, /etc/localtime does not need to be backed up because it is part of the OS.

What does your Docker run command look like? I have been running Docker for testing but I have customized my environment.