Starting from Scratch on a Raspberry Pi 4 8GB

This statement was about the 8GB card.
The 32 GB card does have OH installed but it’s not running.
That’s my major issue and debugging is this was I currently try.

So I left it do its thing without touching it and I got to zram install.

http://openhab/
Shows

2020-05-27_08:25:02_BST [openHABian] Starting the openHABian initial setup.
2020-05-27_08:25:02_BST [openHABian] Storing configuration... OK
2020-05-27_08:25:02_BST [openHABian] Starting webserver with installation log... OK
2020-09-20_11:02:38_BST [openHABian] Changing default username and password... OK
2020-09-20_11:02:53_BST [openHABian] Setting up Ethernet connection... OK
2020-09-20_11:02:53_BST [openHABian] Ensuring network connectivity... OK
2020-09-20_11:02:54_BST [openHABian] Waiting for dpkg/apt to get ready... OK
2020-09-20_11:09:08_BST [openHABian] Updating repositories and upgrading installed packages... Rebooting to reconfigure kernel ... 


2020-09-20_11:35:39_BST [openHABian] Starting the openHABian initial setup.
2020-09-20_11:35:40_BST [openHABian] Storing configuration... OK
2020-09-20_11:35:40_BST [openHABian] Starting webserver with installation log... OK
2020-09-20_11:35:45_BST [openHABian] Changing default username and password... SKIPPED
2020-09-20_11:35:45_BST [openHABian] Setting up Ethernet connection... OK
2020-09-20_11:35:45_BST [openHABian] Ensuring network connectivity... OK
2020-09-20_11:35:45_BST [openHABian] Waiting for dpkg/apt to get ready... OK
2020-09-20_11:35:51_BST [openHABian] Updating repositories and upgrading installed packages... 2020-09-20_11:36:30_BST [openHABian] Installing git package... OK
2020-09-20_11:37:29_BST [openHABian] Updating myself from https://github.com/openhab/openhabian, stable branch... OK
2020-09-20_11:37:33_BST [openHABian] Starting execution of 'openhabian-config unattended'... OK
2020-09-20_11:37:33_BST [openHABian] Checking for root privileges... OK
2020-09-20_11:37:34_BST [openHABian] Updating Linux package information... OK
2020-09-20_11:37:39_BST [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2020-09-20_11:37:46_BST [openHABian] Beginning setup of timezone based on IP geolocation... OK
2020-09-20_11:37:46_BST [openHABian] Installing Python for needed packages... OK
2020-09-20_11:40:43_BST [openHABian] Setting timezone based on IP geolocation... OK (Australia/Brisbane)
2020-09-20_20:40:53_AEST [openHABian] Enabling time synchronization using NTP... OK
2020-09-20_20:40:53_AEST [openHABian] Setting locale based on openhabian.conf... OK (reboot required)
2020-09-20_20:41:41_AEST [openHABian] Setting hostname of the base system based on openhabian.conf... OK
2020-09-20_20:41:41_AEST [openHABian] Setting the GPU memory split down to 16MB for headless system... OK
2020-09-20_20:41:41_AEST [openHABian] Enabling Audio output... OK
2020-09-20_20:41:41_AEST [openHABian] Installing basic can't-be-wrong packages (screen, vim, ...)... OK
2020-09-20_20:43:34_AEST [openHABian] Installing additional needed packages... OK
2020-09-20_20:44:27_AEST [openHABian] Installing additional bluetooth packages... OK
2020-09-20_20:44:46_AEST [openHABian] Adding slightly tuned bash configuration files to system... OK
2020-09-20_20:44:51_AEST [openHABian] Adding slightly tuned vim configuration file to system... OK
2020-09-20_20:44:52_AEST [openHABian] Installing FireMotD required packages (bc, sysstat, jq, moreutils)... OK
2020-09-20_20:45:08_AEST [openHABian] Downloading FireMotD... OK
2020-09-20_20:45:08_AEST [openHABian] Setting up FireMotD... OK
2020-09-20_20:46:12_AEST [openHABian] Generating FireMotD theme... OK
2020-09-20_20:46:15_AEST [openHABian] Setting up FireMotD apt updates count service... OK
2020-09-20_20:46:24_AEST [openHABian] Installing Java Zulu prerequisites (libc, libstdc++, zlib1g)... OK
2020-09-20_20:46:24_AEST [openHABian] Downloading Java Zulu 8 32-Bit OpenJDK... OK
2020-09-20_20:48:01_AEST [openHABian] Installing Java Zulu 8 32-Bit OpenJDK... OK
2020-09-20_20:48:24_AEST [openHABian] Installing Java Zulu CEK to enable unlimited cipher strength... OK
2020-09-20_20:48:24_AEST [openHABian] Beginning install of latest openHAB release (stable)... OK
2020-09-20_20:48:24_AEST [openHABian] Adding required keys to apt... OK
2020-09-20_20:48:26_AEST [openHABian] Installing selected openHAB version... OK
2020-09-20_20:58:39_AEST [openHABian] Setting up openHAB service... OK
2020-09-20_20:58:40_AEST [openHABian] Optimizing openHAB to run on low memory single board computers... OK
2020-09-20_20:58:40_AEST [openHABian] Creating dependencies to jointly start services that depend on each other... OK
2020-09-20_20:58:40_AEST [openHABian] Adding delay on loading openHAB rules... OK
2020-09-20_21:00:40_AEST [openHABian] Adding an openHAB dashboard tile for 'openhabiandocs'... OK
2020-09-20_21:00:40_AEST [openHABian] Adding openHAB syntax to vim editor... OK
2020-09-20_21:00:46_AEST [openHABian] Adding openHAB syntax to nano editor... OK
2020-09-20_21:00:50_AEST [openHABian] Adding openHAB scheme to multitail... OK
2020-09-20_21:00:50_AEST [openHABian] Preparing openHAB folder mounts under '/srv/openhab2-*'... OK
2020-09-20_21:00:53_AEST [openHABian] Applying miscellaneous system settings... OK
2020-09-20_21:00:53_AEST [openHABian] Installing Samba... OK
2020-09-20_21:02:55_AEST [openHABian] Setting up Samba network shares... OK
2020-09-20_21:02:55_AEST [openHABian] Setting up Samba service... OK
2020-09-20_21:02:58_AEST [openHABian] Applying file permissions recommendations... OK
2020-09-20_21:03:01_AEST [openHABian] Installing Frontail prerequsites (NodeJS)... OK
2020-09-20_21:04:11_AEST [openHABian] Installing openHAB Log Viewer (frontail)... OK
2020-09-20_21:04:44_AEST [openHABian] Configuring openHAB Log Viewer (frontail)... OK
2020-09-20_21:04:44_AEST [openHABian] Setting up openHAB Log Viewer (frontail) service... OK
2020-09-20_21:04:45_AEST [openHABian] Adding an openHAB dashboard tile for 'frontail'... OK
2020-09-20_21:04:56_AEST [openHABian] Installing ZRAM... 

Gets to ZRAM

In ssh it looks like

                                                                                                                                                                                                                              20:44
Message from syslogd@openhab at Sep 20 12:05:22 ...
 kernel:[ 1784.717714] 3d60: c043e7cc c043d304 00000000 c12a4d90 c1204fb4 d4a8a7d0 c03818b0 00000002

Message from syslogd@openhab at Sep 20 12:05:22 ...
 kernel:[ 1784.717726] 3d80: d0cc2010 ffffffff ffffffff c0440001 d8f24180 d0cc3ec0 d4a8a7d0 00000c00

Message from syslogd@openhab at Sep 20 12:05:22 ...
 kernel:[ 1784.717737] 3da0: d0cc3e14 d0cc3db0 c0376b58 c0384318 00000c00 00000c00 d8f24180 3b7d533c

Message from syslogd@openhab at Sep 20 12:05:22 ...
 kernel:[ 1784.717749] 3dc0: c1204f88 d0cc2030 00000c00 b0447516 00001000 d4a8a7d0 c1204f88 d0cc3e60

Message from syslogd@openhab at Sep 20 12:05:22 ...
 kernel:[ 1784.717760] 3de0: 7fffffff 00000000 00000000 00000001 d0cc3e34 d0cc3e00 c03831dc c0382d00

Message from syslogd@openhab at Sep 20 12:05:22 ...
 kernel:[ 1784.717771] 3e00: d0cc3e00 d0cc3e00 d0cc3e08 d0cc3e08 c0000000 b0447516 d0cc3e14 d0cc3e60

Message from syslogd@openhab at Sep 20 12:05:22 ...
 kernel:[ 1784.717783] 3e20: d4a8a7d0 d4a8a6c8 d0cc3e44 d0cc3e38 c04430d0 c0383184 d0cc3e5c d0cc3e48

Message from syslogd@openhab at Sep 20 12:05:22 ...
 kernel:[ 1784.717794] 3e40: c0385210 c04430c4 d4a8a7d0 c1204f88 d0cc3ed4 d0cc3e60 c037b0b0 c03851ec

Message from syslogd@openhab at Sep 20 12:05:22 ...
 kernel:[ 1784.717806] 3e60: 7fffffff 00000000 00000000 00000000 ffffffff 7fffffff 00000001 00000000

Message from syslogd@openhab at Sep 20 12:05:22 ...
 kernel:[ 1784.717817] 3e80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

Message from syslogd@openhab at Sep 20 12:05:22 ...
 kernel:[ 1784.717828] 3ea0: d0cc3f2c b0447516 c03f87c8 ffffffff d4a8a7d0 d2d03840 00000000 00000000

Message from syslogd@openhab at Sep 20 12:05:22 ...
 kernel:[ 1784.717840] 3ec0: 00000000 00000076 d0cc3f0c d0cc3ed8 c037c544 c037afcc ffffffff 7fffffff

Message from syslogd@openhab at Sep 20 12:05:22 ...
 kernel:[ 1784.717851] 3ee0: 00000001 00000000 00000000 ffffffff 7fffffff d4a8a6c8 c02011c4 d0cc2000

Message from syslogd@openhab at Sep 20 12:05:22 ...
 kernel:[ 1784.717863] 3f00: d0cc3f34 d0cc3f10 c0442adc c037c4f0 ffffffff 7fffffff d0cc2000 d2d03840

Message from syslogd@openhab at Sep 20 12:05:22 ...
 kernel:[ 1784.717874] 3f20: 00000000 00000000 d0cc3f64 d0cc3f38 c043704c c0442abc ffffffff 7fffffff

Message from syslogd@openhab at Sep 20 12:05:22 ...
 kernel:[ 1784.717886] 3f40: 00000000 c041d0b8 d2d03840 d2d03840 00000000 00000076 d0cc3f94 d0cc3f68

Message from syslogd@openhab at Sep 20 12:05:22 ...
 kernel:[ 1784.717897] 3f60: c0437104 c0436ff0 ffffffff 7fffffff 00000000 00000c00 b6f538f8 00000000

Message from syslogd@openhab at Sep 20 12:05:22 ...
 kernel:[ 1784.717909] 3f80: 00000003 be9d4ef7 d0cc3fa4 d0cc3f98 c0437410 c04370c4 00000000 d0cc3fa8

Message from syslogd@openhab at Sep 20 12:05:22 ...
 kernel:[ 1784.717920] 3fa0: c0201000 c0437400 00000000 00000003 00000003 b6e76808 0000006c 00000000

Message from syslogd@openhab at Sep 20 12:05:22 ...
 kernel:[ 1784.717931] 3fc0: 00000000 00000003 be9d4ef7 00000076 00000000 00000000 00000000 00033c98

Message from syslogd@openhab at Sep 20 12:05:22 ...
 kernel:[ 1784.717943] 3fe0: 00033dd0 be9d4798 00012cf0 b6dfc8a4 60000010 00000003 00000000 00000000

Message from syslogd@openhab at Sep 20 12:05:22 ...
 kernel:[ 1784.718519] Code: e0844084 e1a04204 e0883004 e5939018 (e5991000) 

It looks to be a hardware issue with the Kernel so not a openhabian issue but it is failing.

Heard about this from someone else seem to be specific about 8GB RPi
(never a good idea to use latest’n greatest, in particular when it comes to HW you cannot change)

Try zraminstall=disable in /boot/openhabian.conf

I installed a new Raspi4 with 8 GB RAM from scratch.
When installing ZRAM using openhabian-config tool I got:

Internal error: Oops: 207 [#1] SMP ARM

…and I got the same kernel messages as described by @denominator.
Is this related to the 8GB RAM?

Thanks.
I did this and the zram messages disappeared.

Starting OH still does not work (openhab.log):

2020-09-20 19:28:25.611 [SEVERE] [org.apache.karaf.main.Main] - Could not launch framework
java.lang.RuntimeException: Error initializing storage.
        at org.eclipse.osgi.internal.framework.EquinoxContainer.<init>(EquinoxContainer.java:70)
        at org.eclipse.osgi.launch.Equinox.<init>(Equinox.java:31)
        at org.eclipse.osgi.launch.EquinoxFactory.newFramework(EquinoxFactory.java:24)
        at org.apache.karaf.main.Main.launch(Main.java:256)
        at org.apache.karaf.main.Main.main(Main.java:178)
Caused by: java.io.FileNotFoundException: /var/lib/openhab2/cache/org.eclipse.osgi/.manager/.fileTableLock (Permission denied)
        at java.io.RandomAccessFile.open0(Native Method)
        at java.io.RandomAccessFile.open(RandomAccessFile.java:316)
        at java.io.RandomAccessFile.<init>(RandomAccessFile.java:243)
        at org.eclipse.osgi.internal.location.Locker_JavaNio.lock(Locker_JavaNio.java:36)
        at org.eclipse.osgi.storagemanager.StorageManager.lock(StorageManager.java:388)
        at org.eclipse.osgi.storagemanager.StorageManager.open(StorageManager.java:701)
        at org.eclipse.osgi.storage.Storage.getChildStorageManager(Storage.java:1776)
        at org.eclipse.osgi.storage.Storage.getInfoInputStream(Storage.java:1793)
        at org.eclipse.osgi.storage.Storage.<init>(Storage.java:132)
        at org.eclipse.osgi.storage.Storage.createStorage(Storage.java:85)
        at org.eclipse.osgi.internal.framework.EquinoxContainer.<init>(EquinoxContainer.java:68)
        ... 4 more

This is the only entry whenever I restart the raspi or try to start OH.

I see :slight_smile:clear the cache…

After that openhab still does not start:

[20:42:51] openhabian@homer:/$ sudo systemctl start openhab2.service
Job for openhab2.service failed because the control process exited with error code.
See "systemctl status openhab2.service" and "journalctl -xe" for details.
[20:44:57] openhabian@homer:/$ ^C
[21:14:20] openhabian@homer:/$ sudo systemctl status openhab2.service
[sudo] password for openhabian:
● openhab2.service - openHAB2 instance, reachable at http://homer:8080
   Loaded: loaded (/usr/lib/systemd/system/openhab2.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/openhab2.service.d
           └─override.conf
   Active: activating (start-post) (Result: exit-code) since Sun 2020-09-20 21:14:16 CEST; 15s ago
     Docs: https://www.openhab.org/docs/
           https://community.openhab.org
  Process: 4483 ExecStartPre=/bin/bash -c /usr/bin/find ${OPENHAB_CONF} -name "*.rules" -exec /usr/bin/rename.ul .rules .x {} \; (
  Process: 4484 ExecStart=/usr/share/openhab2/runtime/bin/karaf ${OPENHAB_STARTMODE} (code=exited, status=255/EXCEPTION)
 Main PID: 4484 (code=exited, status=255/EXCEPTION); Control PID: 4485 (sleep)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/openhab2.service
           └─4485 /bin/sleep 120

Sep 20 21:14:20 homer karaf[4484]:         at org.eclipse.osgi.storage.Storage.getChildStorageManager(Storage.java:1776)
Sep 20 21:14:20 homer karaf[4484]:         at org.eclipse.osgi.storage.Storage.getInfoInputStream(Storage.java:1793)
Sep 20 21:14:20 homer karaf[4484]:         at org.eclipse.osgi.storage.Storage.<init>(Storage.java:132)
Sep 20 21:14:20 homer karaf[4484]:         at org.eclipse.osgi.storage.Storage.createStorage(Storage.java:85)
Sep 20 21:14:20 homer karaf[4484]:         at org.eclipse.osgi.internal.framework.EquinoxContainer.<init>(EquinoxContainer.java:68
Sep 20 21:14:20 homer karaf[4484]:         at org.eclipse.osgi.launch.Equinox.<init>(Equinox.java:31)
Sep 20 21:14:20 homer karaf[4484]:         at org.eclipse.osgi.launch.EquinoxFactory.newFramework(EquinoxFactory.java:24)
Sep 20 21:14:20 homer karaf[4484]:         at org.apache.karaf.main.Main.launch(Main.java:256)
Sep 20 21:14:20 homer karaf[4484]:         at org.apache.karaf.main.Main.main(Main.java:178)
Sep 20 21:14:20 homer systemd[1]: openhab2.service: Main process exited, code=exited, status=255/EXCEPTION



[21:16:01] openhabian@homer:/$ sudo journalctl -xe
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A stop job for unit frontail.service has begun execution.
--
-- The job identifier is 3483.
Sep 20 21:16:21 homer systemd[1]: frontail.service: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit frontail.service has successfully entered the 'dead' state.
Sep 20 21:16:21 homer systemd[1]: Stopped Frontail openHAB instance, reachable at http://homer:9001.
-- Subject: A stop job for unit frontail.service has finished
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A stop job for unit frontail.service has finished.
--
-- The job identifier is 3483 and the job result is done.
Sep 20 21:16:21 homer systemd[1]: Stopped openHAB2 instance, reachable at http://homer:8080.
-- Subject: A stop job for unit openhab2.service has finished
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A stop job for unit openhab2.service has finished.
--
-- The job identifier is 3421 and the job result is done.
Sep 20 21:16:21 homer systemd[1]: Starting openHAB2 instance, reachable at http://homer:8080...
-- Subject: A start job for unit openhab2.service has begun execution
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit openhab2.service has begun execution.
--
-- The job identifier is 3421.
Sep 20 21:16:23 homer karaf[4634]: java.io.FileNotFoundException: /var/lib/openhab2/tmp/karaf.pid (Permission denied)
Sep 20 21:16:23 homer karaf[4634]:         at java.io.FileOutputStream.open0(Native Method)
Sep 20 21:16:23 homer karaf[4634]:         at java.io.FileOutputStream.open(FileOutputStream.java:270)
Sep 20 21:16:23 homer karaf[4634]:         at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
Sep 20 21:16:23 homer karaf[4634]:         at java.io.FileOutputStream.<init>(FileOutputStream.java:101)
Sep 20 21:16:23 homer karaf[4634]:         at org.apache.karaf.main.InstanceHelper.writePid(InstanceHelper.java:127)
Sep 20 21:16:23 homer karaf[4634]:         at org.apache.karaf.main.Main.launch(Main.java:243)
Sep 20 21:16:23 homer karaf[4634]:         at org.apache.karaf.main.Main.main(Main.java:178)
Sep 20 21:16:25 homer karaf[4634]: !SESSION 2020-09-20 21:16:25.065 -----------------------------------------------
Sep 20 21:16:25 homer karaf[4634]: eclipse.buildId=unknown
Sep 20 21:16:25 homer karaf[4634]: java.version=1.8.0_265
Sep 20 21:16:25 homer karaf[4634]: java.vendor=Azul Systems, Inc.
Sep 20 21:16:25 homer karaf[4634]: BootLoader constants: OS=linux, ARCH=arm, WS=gtk, NL=en_GB
Sep 20 21:16:25 homer karaf[4634]: !ENTRY org.eclipse.osgi 4 0 2020-09-20 21:16:25.066
Sep 20 21:16:25 homer karaf[4634]: !MESSAGE Error reading configuration: Unable to create lock manager.
Sep 20 21:16:25 homer karaf[4634]: !STACK 0
Sep 20 21:16:25 homer karaf[4634]: java.io.IOException: Unable to create lock manager.
Sep 20 21:16:25 homer karaf[4634]:         at org.eclipse.osgi.storagemanager.StorageManager.open(StorageManager.java:698)
Sep 20 21:16:25 homer karaf[4634]:         at org.eclipse.osgi.storage.Storage.getChildStorageManager(Storage.java:1776)
Sep 20 21:16:25 homer karaf[4634]:         at org.eclipse.osgi.storage.Storage.getInfoInputStream(Storage.java:1793)
Sep 20 21:16:25 homer karaf[4634]:         at org.eclipse.osgi.storage.Storage.<init>(Storage.java:132)
Sep 20 21:16:25 homer karaf[4634]:         at org.eclipse.osgi.storage.Storage.createStorage(Storage.java:85)
Sep 20 21:16:25 homer karaf[4634]:         at org.eclipse.osgi.internal.framework.EquinoxContainer.<init>(EquinoxContainer.java:68
Sep 20 21:16:25 homer karaf[4634]:         at org.eclipse.osgi.launch.Equinox.<init>(Equinox.java:31)
Sep 20 21:16:25 homer karaf[4634]:         at org.eclipse.osgi.launch.EquinoxFactory.newFramework(EquinoxFactory.java:24)
Sep 20 21:16:25 homer karaf[4634]:         at org.apache.karaf.main.Main.launch(Main.java:256)
Sep 20 21:16:25 homer karaf[4634]:         at org.apache.karaf.main.Main.main(Main.java:178)
Sep 20 21:16:25 homer systemd[1]: openhab2.service: Main process exited, code=exited, status=255/EXCEPTION
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStart= process belonging to unit openhab2.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 255.
Sep 20 21:16:36 homer sshd[4739]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=61.177.1
Sep 20 21:16:38 homer sudo[4742]: openhabian : TTY=pts/0 ; PWD=/ ; USER=root ; COMMAND=/bin/journalctl -xe
Sep 20 21:16:38 homer sudo[4742]: pam_unix(sudo:session): session opened for user root by openhabian(uid=0)
lines 2460-2533/2533 (END)

The only thing catching my mind is

/var/lib/openhab2/tmp/karaf.pid (Permission denied)

Because I deleted tmp before, shouldn’t the file karaf.pid be created on the new start?

Try permissions corrections from the openhabian-config menu. If that does not work chown/chmod -R the tmp and cache dirs.
It’s likely because you started OH as root.

In SSH run the sudo openhabian-config menu

Then unistall zram then openhab will start.

Thank you.
I did this after starting up with @mstormi recommendation using
zraminstall=disable in /boot/openhabian.conf to be on the safe side :wink:

I still get the
[org.apache.karaf.main.Main] - Could not launch framework

Anyway, maybe I messed the installation up too much and will do ut again with a new image with your recommendation (@mstormi & @denominator).

Thanks to both of you for your great support.

EDIT:
Actually this seems to work so far (OH is running). :slight_smile:

Now another rookie question:
I always used to do a restart of OH after significant changes like this:
sudo systemctl restart openhab2.service

Does this mean starting as root is not a good idea?
If so, how to do it instead?

I have a similar problem with my rasp. When I reboot, it normally start but without ethernet connection and if I take off and put back the ethernet cable it load normally the ip from the dhcp. I though it was because I updated the firmware to a Stable version to boot on SSD. I solved the problem adding a reset command on /etc/rc.local

(sleep 30s; ethtool -r eth0;) &

I read somewhere that it could be an hardware issue or a not good power supply but I have an original power supply and never had this problem before to boot from USB

So you mean with a RPi 4?

Thanks, I will try this.

Do not ever do this interactively.
Let the OS handle it for you => systemctl [start|status|stop] openhab2

Yes, sorry, I use a raspberry 4, 4GB. But you say you have black screen, so your rasp don’t (re)boot. I had your problem with a raspberry 3 with a usb-sata adapter. I solved changing the adapter

Thanks, it turned out, that the major issue was potentially the zram problem with 8GB.
At least since deactivation of zram a reboot worked (at least once) - which did never work before (200+ attempts)

Thanks for jumping in with your feedback though!

sorry for the stupid question , but isn’t this the same like:
sudo systemctl start openhab2.service

Because your command above requires sudo execution as well.

yes it is.
but you said you ran openhab-cli start. That you mustn’t.

Alright - got it. Thank you.
I just tried whatever to start OH :wink:
But I only used:
sudo systemctl start openhab2.service
in the past.

By the way:
OH starts properly with both of your recommendations:

and

Now I will try to reestablish my things, items and such.

Again - thank you for your patience with me and your tremendous help.
Any upcoming issues along the way I will post here (of course) :wink:

Ok I have done some poking around and now have zram working. (I think)

I installed the v1.6-alpha/openhabian-pi-raspios64beta-202007302224-git0290f04-crc93729328.img
Edited the /boot/openhabian.conf file and put in pi.

First Boot Log

2020-09-23_15:59:47_AEST [openHABian] Installing ZRAM... 
e[90;01m$ init_zram_mounts install e[39;49;00m
2020-09-23_15:59:47_AEST [openHABian] Installing ZRAM required packages (make, libattr1-dev)... 
e[90;01m$ apt-get install --yes make libattr1-dev e[39;49;00m
Reading package lists...
Building dependency tree...
Reading state information...
make is already the newest version (4.2.1-1.2).
make set to manually installed.
The following packages were automatically installed and are no longer required:
  pi-language-support rpi-eeprom-images triggerhappy
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
  libattr1-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 35.3 kB of archives.
After this operation, 90.1 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/main arm64 libattr1-dev arm64 1:2.4.48-4 [35.3 kB]
Fetched 35.3 kB in 0s (103 kB/s)
Selecting previously unselected package libattr1-dev:arm64.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 100%
(Reading database ... 100073 files and directories currently installed.)
Preparing to unpack .../libattr1-dev_1%3a2.4.48-4_arm64.deb ...
Unpacking libattr1-dev:arm64 (1:2.4.48-4) ...
Setting up libattr1-dev:arm64 (1:2.4.48-4) ...
Processing triggers for man-db (2.8.5-2) ...
Updating FireMotD available updates count ... 
OK
2020-09-23_16:00:00_AEST [openHABian] Installing ZRAM code... 
e[90;01m$ mkdir -p /opt/zram e[39;49;00m

e[90;01m$ git clone https://github.com/kmxz/overlayfs-tools /opt/zram/overlayfs-tools e[39;49;00m
Cloning into '/opt/zram/overlayfs-tools'...

e[90;01m$ git clone https://github.com/mstormi/openhabian-zram /opt/zram/openhabian-zram e[39;49;00m
Cloning into '/opt/zram/openhabian-zram'...
OK
2020-09-23_16:00:05_AEST [openHABian] Setting up OverlayFS... 
e[90;01m$ make --always-make --directory=/opt/zram/overlayfs-tools e[39;49;00m
make: Entering directory '/opt/zram/overlayfs-tools'
gcc -Wall -std=c99 -c main.c
gcc -Wall -std=c99 -c logic.c
gcc -Wall -std=c99 -c sh.c
gcc -lm main.o logic.o sh.o -o overlay
make: Leaving directory '/opt/zram/overlayfs-tools'

e[90;01m$ install -m 755 /opt/zram/overlayfs-tools/overlay /usr/local/lib/zram-config/overlay e[39;49;00m
OK
2020-09-23_16:00:07_AEST [openHABian] Setting up ZRAM... 
e[90;01m$ install -m 755 /opt/zram/openhabian-zram/zram-config /usr/local/sbin e[39;49;00m

e[90;01m$ install -m 755 /opt/zram/openhabian-zram/zramsync /usr/local/sbin e[39;49;00m

e[90;01m$ install -m 644 /opt/openhabian/includes/ztab /etc/ztab e[39;49;00m

e[90;01m$ install -m 644 /opt/zram/openhabian-zram/ro-root.sh /usr/local/share/zram-config/ro-root.sh e[39;49;00m

e[90;01m$ install -m 644 /opt/zram/openhabian-zram/zram-config.logrotate /etc/logrotate.d/zram-config e[39;49;00m
OK
2020-09-23_16:00:07_AEST [openHABian] Setting up ZRAM service... 
e[90;01m$ install -m 644 /opt/zram/openhabian-zram/zram-config.service /etc/systemd/system/zram-config.service e[39;49;00m

e[90;01m$ install -m 644 /opt/zram/openhabian-zram/zramsync.service /etc/systemd/system/zramsync.service e[39;49;00m

e[90;01m$ systemctl enable --now zram-config.service zramsync.service e[39;49;00m
Created symlink /etc/systemd/system/basic.target.wants/zram-config.service → /etc/systemd/system/zram-config.service.
Created symlink /etc/systemd/system/basic.target.wants/zramsync.service → /etc/systemd/system/zramsync.service.
OK

e[90;01m$ systemctl mask unattended-upgrades.service e[39;49;00m
Created symlink /etc/systemd/system/unattended-upgrades.service → /dev/null.
OK
OK

So you say it does not happen with the 64bit version but with the 32bit one it does ?
Interesting.

But don’t use 64bit image in production. It’s completely untested.

Yeah can confirm it did all install properly with the 64bit version.

My production openhab is on rpi3 b+ with msata drive.
I going to run the pi4 with oh3 to do testing and learn more so I can be more helpfull.

Kernel version tested

hostnamectl | grep Kernel
            Kernel: Linux 5.4.51-v8+
1 Like

Won’t do :smiley: