After restore: The container is not running

  • Platform information:
    • Hardware: Raspberry PI3
    • OS: Linux raspberrypi 4.14.74-v7+ #1149 SMP Mon Oct 8 17:39:42 BST 2018 armv7l GNU/Linux
    • Java Runtime Environment: java version “1.8.0_191”
    • openHAB version: 2.3.0

My SD Card crashed, so I created an image and copied it to the new SD-card.
When I’m trying to start the service, following appears at syslog:

Oct 20 15:14:39 raspberrypi systemd[1]: Started openHAB 2 - empowering the smart home.
Oct 20 15:14:41 raspberrypi karaf[7163]: #
Oct 20 15:14:41 raspberrypi karaf[7163]: # A fatal error has been detected by the Java Runtime Environment:
Oct 20 15:14:41 raspberrypi karaf[7163]: #
Oct 20 15:14:41 raspberrypi karaf[7163]: #  SIGSEGV (0xb) at pc=0x76452184, pid=7163, tid=0x7628b470
Oct 20 15:14:41 raspberrypi karaf[7163]: #
Oct 20 15:14:41 raspberrypi karaf[7163]: # JRE version: Java(TM) SE Runtime Environment (8.0_191-b12) (build 1.8.0                                                                                                                           _191-b12)
Oct 20 15:14:41 raspberrypi karaf[7163]: # Java VM: Java HotSpot(TM) Client VM (25.191-b12 mixed mode linux-arm )
Oct 20 15:14:41 raspberrypi karaf[7163]: # Problematic frame:
Oct 20 15:14:41 raspberrypi karaf[7163]: # V  [libjvm.so+0x147184]  ClassFileParser::parse_method(bool, AccessFlag                                                                                                                           s*, Thread*)+0xc8c
Oct 20 15:14:41 raspberrypi karaf[7163]: #
Oct 20 15:14:41 raspberrypi karaf[7163]: # Failed to write core dump. Core dumps have been disabled. To enable cor                                                                                                                           e dumping, try "ulimit -c unlimited" before starting Java again
Oct 20 15:14:41 raspberrypi karaf[7163]: #
Oct 20 15:14:41 raspberrypi karaf[7163]: # An error report file with more information is saved as:
Oct 20 15:14:41 raspberrypi karaf[7163]: # /var/lib/openhab2/hs_err_pid7163.log
Oct 20 15:14:41 raspberrypi karaf[7163]: #
Oct 20 15:14:41 raspberrypi karaf[7163]: # If you would like to submit a bug report, please visit:
Oct 20 15:14:41 raspberrypi karaf[7163]: #   http://bugreport.java.com/bugreport/crash.jsp
Oct 20 15:14:41 raspberrypi karaf[7163]: #
Oct 20 15:14:41 raspberrypi systemd[1]: openhab2.service: Main process exited, code=killed, status=6/ABRT
Oct 20 15:14:43 raspberrypi karaf[7294]: Can't connect to the container. The container is not running.
Oct 20 15:14:43 raspberrypi systemd[1]: openhab2.service: Control process exited, code=exited status=1
Oct 20 15:14:43 raspberrypi systemd[1]: openhab2.service: Unit entered failed state.
Oct 20 15:14:43 raspberrypi systemd[1]: openhab2.service: Failed with result 'signal'.
Oct 20 15:14:48 raspberrypi systemd[1]: openhab2.service: Service hold-off time over, scheduling restart.
Oct 20 15:14:48 raspberrypi systemd[1]: Stopped openHAB 2 - empowering the smart home.
Oct 20 15:14:48 raspberrypi systemd[1]: Started openHAB 2 - empowering the smart home.
Oct 20 15:14:48 raspberrypi systemd[1]: Stopping openHAB 2 - empowering the smart home...
Oct 20 15:14:50 raspberrypi karaf[7429]: #
Oct 20 15:14:50 raspberrypi karaf[7429]: # A fatal error has been detected by the Java Runtime Environment:
Oct 20 15:14:50 raspberrypi karaf[7429]: #
Oct 20 15:14:50 raspberrypi karaf[7429]: #  SIGSEGV (0xb) at pc=0x764e7184, pid=7429, tid=0x76320470
Oct 20 15:14:50 raspberrypi karaf[7429]: #
Oct 20 15:14:50 raspberrypi karaf[7429]: # JRE version: Java(TM) SE Runtime Environment (8.0_191-b12) (build 1.8.0                                                                                                                           _191-b12)
Oct 20 15:14:50 raspberrypi karaf[7429]: # Java VM: Java HotSpot(TM) Client VM (25.191-b12 mixed mode linux-arm )
Oct 20 15:14:50 raspberrypi karaf[7429]: # Problematic frame:
Oct 20 15:14:50 raspberrypi karaf[7429]: # V  [libjvm.so+0x147184]  ClassFileParser::parse_method(bool, AccessFlag                                                                                                                           s*, Thread*)+0xc8c
Oct 20 15:14:50 raspberrypi karaf[7429]: #
Oct 20 15:14:50 raspberrypi karaf[7429]: # Failed to write core dump. Core dumps have been disabled. To enable cor                                                                                                                           e dumping, try "ulimit -c unlimited" before starting Java again
Oct 20 15:14:50 raspberrypi karaf[7429]: #
Oct 20 15:14:50 raspberrypi karaf[7429]: # An error report file with more information is saved as:
Oct 20 15:14:50 raspberrypi karaf[7429]: # /var/lib/openhab2/hs_err_pid7429.log
Oct 20 15:14:50 raspberrypi karaf[7429]: #
Oct 20 15:14:50 raspberrypi karaf[7429]: # If you would like to submit a bug report, please visit:
Oct 20 15:14:50 raspberrypi karaf[7429]: #   http://bugreport.java.com/bugreport/crash.jsp
Oct 20 15:14:50 raspberrypi karaf[7429]: #
Oct 20 15:14:50 raspberrypi systemd[1]: openhab2.service: Main process exited, code=killed, status=6/ABRT
Oct 20 15:14:50 raspberrypi karaf[7530]: Can't connect to the container. The container is not running.
Oct 20 15:14:50 raspberrypi systemd[1]: openhab2.service: Control process exited, code=exited status=1
Oct 20 15:14:50 raspberrypi systemd[1]: Stopped openHAB 2 - empowering the smart home.
Oct 20 15:14:50 raspberrypi systemd[1]: openhab2.service: Unit entered failed state.
Oct 20 15:14:50 raspberrypi systemd[1]: openhab2.service: Failed with result 'signal'.

/var/lib/openhab2/hs_err_pid7429.log:

Serial          : 00000000788b4478


Memory: 4k page, physical 949448k(76924k free), swap 102396k(102396k free)

vm_info: Java HotSpot(TM) Client VM (25.191-b12) for linux-arm-vfp-hflt JRE (1.8.0_191-b12), built on Oct  6 2018 09:06:07 by "java_re" with gcc 4.7.2 20120910 (prerelease)

time: Sat Oct 20 15:14:50 2018
elapsed time: 0 seconds (0d 0h 0m 0s)

I dont know what im doing wrong.
Any idea?

Thanks a lot
Tobus

Your SD card is corrupted and by coping the same corrupt image to the new card it now has the error. Need to install a fresh image and restore from your backup. You do have a backup?

Hm, any idea how to fix it without reinstallation?

If the SD card is corrupt no. You try to create a backup using sudo openhab-cli backup it’s worth trying but I doubt it will work. If it work’s, move the backup to your PC, then install a fresh image on the new SD card and use sudo openhab-cli restore backup /var/lib/openhab2/backups after placing the backup zip in /var/lib/openhab2/backups directory.

FYI: There are way’s to try and fix the SD card but doing so will erase everything on it.