After reboot, OpenHab will crash during start

Hardware: Raspberry PI3
OS: Linux raspberrypi 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l GNU/Linux

openjdk version "1.8.0_212"
OpenJDK Runtime Environment (Zulu8.38.0.163-CA-linux_aarch32hf) (build 1.8.0_212-b163)
OpenJDK Client VM (Zulu8.38.0.163-CA-linux_aarch32hf) (build 25.212-b163, mixed mode, Evaluation)


openHAB version: 2.4.0

After rebooting my Rspberry, OpenHab is not able to start anymore. I changed nothing, except my timezone.
Attached are five logfiles, but they doesnt help me :wink:

Does anybody know what to do?

Thanks a lot
Tobias

replay_pid10510.log (166.5 KB) replay_pid10799.log (291.0 KB) replay_pid11217.log (82.7 KB) replay_pid11335.log (155.2 KB) replay_pid11435.log (4.6 KB)

Try cleaning the cache and rebooting. May want to insure OH is not running with sudo systemctl stop openhab2 then:

sudo openhab-cli clean-cache

sudo reboot

hs_err_pid1382.log (68.8 KB) hs_err_pid500.log (73.5 KB)

Thanks H102,
I cleaned the cache, but it doesnt helped much. The exceptions are still raised and OpenHab is not working.

Any ideas what to do?

Is OH running on an SD card or other and if SD card what size and age?

I ask b/c it looks similar to SD card corruption. If you have a spare card try a fresh install and restore your backup to the new install.

I second sd corruption I have had this before on reboots also.

1 Like

I dont using a SD Card. Oy OH is running on a SATA SSD.

After several reboots and cleaned caches, it is working now until the next reboot. Can you see anything at the logfiles?

Think I may have a clue about the issue but please post the output of java --version to verify.

@Tobus never mind the output request above but I would like to see the output of sudo systemctl status openhab2.service

Also, from command line run top to identify what pid 1382 is.

@Tobus From your log and search the best I came up with is from stack trace:

1.Set the following Environment Property on your active Shell. - open bash terminal and type in:

  $ export LD_BIND_NOW=1
  1. Re-Run the Jar or Java File

Note: for superuser in bash type su and press enter

Java:

java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (Zulu8.38.0.163-CA-linux_aarch32hf) (build 1.8.0_212-b163)
OpenJDK Client VM (Zulu8.38.0.163-CA-linux_aarch32hf) (build 25.212-b163, mixed mode, Evaluation)

At the moment its running fine, until the next reboot. Will continue here, when the problem will appears again! Thanks H102!

Maybe something in the boot.sh file that causes a different version of java to load?