Openhabian 1.7.1 restore issue

  • Platform information:
    • Hardware: Raspberry Pi 3 Model B Rev 1.2
    • OS: Raspbian GNU/Linux 11 (bullseye)
    • Java Runtime Environment: which java platform is used and what version
    • openHAB version: 3.2.0
  • Issue of the topic: Restore of configuration doesn’t seems to work

In the process of debugging the out of memory error I am trying to set-up a second machine with the same configuration to exclude the configuration I’ve created is causing the issue.

So, took my old RPI3 and took the latest openhabian 1.7.1 release. Installation works perfect :ok_hand:

On the ‘old’ (up to date) machine created a fresh backup and try to restore it on the new machine. But after restoring the backup openhab doesn’t startup anymore.
The openhabian-config tool is creating an error the restore is incorrect. Following the debug guide and set the debugmode=maximum in /etc/openhabian.conf.

Output from /boot/first-boot.log:

2021-10-30_11:30:00_UTC [openHABian] Starting the openHABian initial setup.
2021-10-30_11:30:00_UTC [openHABian] Storing configuration... OK
2021-10-30_11:30:01_UTC [openHABian] Starting webserver with installation log... OK
2022-01-19_21:08:08_UTC [openHABian] Changing default username and password... OK
2022-01-19_21:08:09_UTC [openHABian] Setting up Ethernet connection... OK
2022-01-19_21:08:09_UTC [openHABian] Ensuring network connectivity... OK
2022-01-19_21:08:09_UTC [openHABian] Waiting for dpkg/apt to get ready... OK
2022-01-19_21:08:33_UTC [openHABian] Updating repositories and upgrading installed packages... OK (rebooting)


2022-01-19_21:13:19_GMT [openHABian] Starting the openHABian initial setup.
2022-01-19_21:13:19_GMT [openHABian] Storing configuration... OK
2022-01-19_21:13:19_GMT [openHABian] Starting webserver with installation log... OK
2022-01-19_21:13:24_GMT [openHABian] Changing default username and password... SKIPPED
2022-01-19_21:13:24_GMT [openHABian] Setting up Ethernet connection... OK
2022-01-19_21:13:24_GMT [openHABian] Ensuring network connectivity... OK
2022-01-19_21:13:24_GMT [openHABian] Waiting for dpkg/apt to get ready... OK
2022-01-19_21:13:33_GMT [openHABian] Updating repositories and upgrading installed packages... OK
2022-01-19_21:13:39_GMT [openHABian] Installing git package... OK
2022-01-19_21:14:01_GMT [openHABian] Updating myself from https://github.com/openhab/openhabian, openHAB3 branch... OK
2022-01-19_21:14:08_GMT [openHABian] Starting execution of 'openhabian-config unattended'... OK
2022-01-19_21:14:08_GMT [openHABian] Checking for root privileges... OK
2022-01-19_21:14:08_GMT [openHABian] Updating Linux package information... OK
2022-01-19_21:14:16_GMT [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2022-01-19_21:14:16_GMT [openHABian] Adjusting swap size to 1845 MB... OK (reboot required)
2022-01-19_21:14:17_GMT [openHABian] Setting timezone based on openhabian.conf... OK (Europe/Berlin)
2022-01-19_22:14:17_CET [openHABian] Enabling time synchronization using NTP... OK
2022-01-19_22:14:17_CET [openHABian] Setting locale based on openhabian.conf... OK (reboot required)
2022-01-19_22:15:45_CET [openHABian] Setting hostname of the base system based on openhabian.conf... OK
2022-01-19_22:15:45_CET [openHABian] Setting the GPU memory split down to 16MB for headless system... OK
2022-01-19_22:15:45_CET [openHABian] Enabling Audio output... OK
2022-01-19_22:15:45_CET [openHABian] Installing basic can't-be-wrong packages (screen, vim, ...)... OK
2022-01-19_22:16:44_CET [openHABian] Installing additional needed packages... OK
2022-01-19_22:17:29_CET [openHABian] Installing python3 serial package... OK
2022-01-19_22:17:41_CET [openHABian] Installing pigpio package... OK
2022-01-19_22:17:50_CET [openHABian] Installing additional bluetooth packages... OK
2022-01-19_22:17:58_CET [openHABian] Adding slightly tuned bash configuration files to system... OK
2022-01-19_22:17:58_CET [openHABian] Adding slightly tuned vim configuration file to system... OK
2022-01-19_22:17:58_CET [openHABian] tailscale VPN installation... SKIPPED (no preauthkey defined)
2022-01-19_22:17:58_CET [openHABian] Applying miscellaneous system settings... OK
2022-01-19_22:17:58_CET [openHABian] Downloading FireMotD... OK
2022-01-19_22:17:59_CET [openHABian] Installing FireMotD... OK
2022-01-19_22:18:00_CET [openHABian] Generating FireMotD theme... OK
2022-01-19_22:18:54_CET [openHABian] Setting up FireMotD apt updates count service... OK
2022-01-19_22:19:14_CET [openHABian] Installing cached version of Java to ensure that some form of Java is installed!
2022-01-19_22:19:14_CET [openHABian] Installing Java Zulu prerequisites (libc, libstdc++, zlib1g)... OK
2022-01-19_22:19:14_CET [openHABian] Installing Java Zulu 11 32-Bit OpenJDK... OK
2022-01-19_22:19:17_CET [openHABian] Installing Java Zulu CEK to enable unlimited cipher strength... OK
2022-01-19_22:19:19_CET [openHABian] Beginning install of latest openhab release (stable)... OK
2022-01-19_22:19:19_CET [openHABian] Adding required keys to apt... OK
2022-01-19_22:19:20_CET [openHABian] Installing selected openHAB3 version... OK
2022-01-19_22:22:49_CET [openHABian] Setting up openHAB service... OK
2022-01-19_22:22:50_CET [openHABian] Optimizing openHAB to run on low memory single board computers... OK
2022-01-19_22:22:50_CET [openHABian] Setting openHAB HTTP/HTTPS ports... OK
2022-01-19_22:22:50_CET [openHABian] Creating dependencies to jointly start services that depend on each other... OK
2022-01-19_22:22:51_CET [openHABian] Adding an openHAB dashboard tile for 'openhabiandocs'... OK
2022-01-19_22:22:51_CET [openHABian] Restarting openHAB service to play it safe... OK
2022-01-19_22:22:52_CET [openHABian] Getting initial openHAB configuration... SKIPPED (backup not found at /boot/initial.zip)
2022-01-19_22:22:52_CET [openHABian] Activating the openHAB console on all interfaces... OK
2022-01-19_22:22:52_CET [openHABian] Adding openHAB syntax to vim editor... OK
2022-01-19_22:22:53_CET [openHABian] Adding openHAB syntax to nano editor... OK
2022-01-19_22:22:54_CET [openHABian] Adding openHAB scheme to multitail... OK
2022-01-19_22:22:54_CET [openHABian] Preparing openHAB folder mounts under '/srv/openhab-*'... OK
2022-01-19_22:23:03_CET [openHABian] Installing Samba... OK
2022-01-19_22:24:37_CET [openHABian] Setting up Samba network shares... OK
2022-01-19_22:24:38_CET [openHABian] Setting up Samba service... OK
2022-01-19_22:24:41_CET [openHABian] Installing Frontail prerequsites (NodeJS)... OK
2022-01-19_22:25:39_CET [openHABian] Installing openHAB Log Viewer (frontail)... OK
2022-01-19_22:28:06_CET [openHABian] Setting up openHAB Log Viewer (frontail) service... OK
2022-01-19_22:28:09_CET [openHABian] Adding an openHAB dashboard tile for 'frontail'... OK
2022-01-19_22:28:09_CET [openHABian] Installing zram... OK
2022-01-19_22:28:19_CET [openHABian] Beginning Mail Transfer Agent setup... CANCELED (no configuration provided)
2022-01-19_22:28:19_CET [openHABian] Applying file permissions recommendations... OK
2022-01-19_22:28:21_CET [openHABian] Setting up automated SD mirroring and backup... SKIPPED (no configuration provided)
2022-01-19_22:28:21_CET [openHABian] Cleaning up... OK
2022-01-19_22:29:01_CET [openHABian] Execution of 'openhabian-config unattended' completed.
2022-01-19_22:29:01_CET [openHABian] First time setup successfully finished. Rebooting your system!
2022-01-19_22:29:01_CET [openHABian] After rebooting the openHAB dashboard will be available at: http://openhabianRPI3b:8080
2022-01-19_22:29:01_CET [openHABian] After rebooting to gain access to a console, simply reconnect using ssh.

The command sudo systemctl status openhab shows:

Jan 20 18:17:23 openhabianRPI3b karaf[3072]:         at org.eclipse.osgi.container.Module.start(Module.java:468) [org.eclipse.osgi-3.16.300.jar:?]
Jan 20 18:17:23 openhabianRPI3b karaf[3072]:         at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$2.run(ModuleContainer.java:1849) [org.eclipse.osgi-3.16.300.jar:?]
Jan 20 18:17:23 openhabianRPI3b karaf[3072]:         at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$1$1.execute(EquinoxContainerAdaptor.java:136) [org.eclipse.osgi-3.16.300>
Jan 20 18:17:23 openhabianRPI3b karaf[3072]:         at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1842) [org.eclipse.osgi-3.16.300.j>
Jan 20 18:17:23 openhabianRPI3b karaf[3072]:         at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1785) [org.eclipse.osgi-3.16.300.j>
Jan 20 18:17:23 openhabianRPI3b karaf[3072]:         at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1747) [org.eclipse.osgi-3.>
Jan 20 18:17:23 openhabianRPI3b karaf[3072]:         at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1669) [org.eclipse.osgi-3.16.300.j>
Jan 20 18:17:23 openhabianRPI3b karaf[3072]:         at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1) [org.eclipse.osgi-3.16.300.jar:>
Jan 20 18:17:23 openhabianRPI3b karaf[3072]:         at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234) [org.eclipse.osgi-3.16.300.jar:?]
Jan 20 18:17:23 openhabianRPI3b karaf[3072]:         at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:345) [org.eclipse.osgi-3.16.300.jar:?]

And frontails shows:

2022-01-20 18:04:08.051 [INFO ] [.core.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007

2022-01-20 18:04:10.852 [INFO ] [e.automation.internal.RuleEngineImpl] - Rule engine started.

2022-01-20 18:04:14.544 [INFO ] [org.openhab.ui.internal.UIService   ] - Started UI on port 8080

2022-01-20 18:04:16.367 [WARN ] [.transport.servlet.ServletController] - Can't find the request for http://192.168.0.99:8080/rest/auth/token's Observer 

2022-01-20 18:04:16.427 [WARN ] [.transport.servlet.ServletController] - Can't find the request for http://192.168.0.99:8080/rest/auth/logout's Observer 

2022-01-20 18:04:16.965 [INFO ] [ab.ui.habpanel.internal.HABPanelTile] - Started HABPanel at /habpanel

2022-01-20 18:05:25.340 [INFO ] [org.openhab.ui.internal.UIService   ] - Stopped UI

2022-01-20 18:05:27.918 [INFO ] [ab.ui.habpanel.internal.HABPanelTile] - Stopped HABPanel

2022-01-20 18:05:27.982 [INFO ] [basic.internal.servlet.WebAppServlet] - Stopped Basic UI

2022-01-20 18:05:50.544 [INFO ] [.core.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007

2022-01-20 18:05:55.006 [INFO ] [e.automation.internal.RuleEngineImpl] - Rule engine started.

2022-01-20 18:05:56.064 [INFO ] [org.openhab.ui.internal.UIService   ] - Started UI on port 8080

2022-01-20 18:06:07.118 [INFO ] [org.openhab.ui.internal.UIService   ] - Stopped UI

2022-01-20 18:06:16.290 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-persistence-rrd4j, openhab-ui-basic, openhab-ui-habpanel, openhab-binding-systeminfo': null

2022-01-20 18:06:20.894 [INFO ] [org.openhab.ui.internal.UIService   ] - Started UI on port 8080

2022-01-20 18:06:32.823 [INFO ] [.core.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007

2022-01-20 18:06:35.275 [INFO ] [ab.ui.habpanel.internal.HABPanelTile] - Started HABPanel at /habpanel

2022-01-20 18:06:35.789 [INFO ] [e.automation.internal.RuleEngineImpl] - Rule engine started.

2022-01-20 18:16:16.474 [INFO ] [ab.ui.habpanel.internal.HABPanelTile] - Stopped HABPanel

2022-01-20 18:16:16.580 [INFO ] [basic.internal.servlet.WebAppServlet] - Stopped Basic UI

2022-01-20 18:16:16.751 [INFO ] [org.openhab.ui.internal.UIService   ] - Stopped UI

In /opt the file openHABian-install-successful exists.

Has this problem something to do with the buster to bullseye change as default change?
I was trying to exclude this by trying to install buster as OS, but setting osrelease=buster in the /boot/openhabian.conf wasn’t successful. At least cat /etc/os-release is showing the output:

PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Anybody any clue?
Restoring an empty backup from solves the error again. Does this mean my back-up is corrupt?

was the backup taken on the same openHAB version as the one you restore to ? (3.2)
That’s what you have to do.

Yes, both 3.2 stable.

Small update from my side. Tried to flash a new SD card with openhabian 1.6 so it does install with buster. Afterwards updated with openhabian to 1.7.1.

Now the following error exists:

openhabian@openhabian:~ $ sudo systemctl status openhab
● openhab.service - openHAB instance, reachable at http://openhabian:8080
   Loaded: loaded (/lib/systemd/system/openhab.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/openhab.service.d
           └─override.conf
   Active: activating (auto-restart) (Result: exit-code) since Fri 2022-01-21 17:57:58 CET; 3s ago
     Docs: https://www.openhab.org/docs/
           https://community.openhab.org
  Process: 22263 ExecStart=/usr/share/openhab/runtime/bin/karaf ${OPENHAB_STARTMODE} (code=exited, status=127)
 Main PID: 22263 (code=exited, status=127)

Unfortunately no more time to dive deeper into the issue now and coming week, but afterwards will look further.
It would be a pity if I need to start all over again creating the semantic model, things and items.