Platform information:
Hardware: Raspberry Pi4 4GB SD:32GB
Openhabian 1.6-alpha (openhabian-pi-raspios32-202201271414-git08bc4ff-crcdd86375a.img.xz)
Decided to move from OH2.5 to OH3 - seems that a fresh install would be the best way to go, but ran into a problem.
I encountered this problem so started over a second time with the same result.
- Flashed the zip file onto a brand new sanDisk micro SD
- No modifications made to the flashed card
- Inserted into the Pi4 connected to my router via cable
- and started the Pi4
- Install seems to have been successful except for the ZRAM.
openHABIP:8080 up and running: create a login page
openHAB log viewer also up and running
From my PC logon using SSH
Result of cat /boot/first-boot.log:
2022-02-19_12:36:15_GMT [openHABian] Starting the openHABian initial setup.
2022-02-19_12:36:15_GMT [openHABian] Storing configuration... OK
2022-02-19_12:36:15_GMT [openHABian] Starting webserver with installation log... OK
2022-02-19_12:36:21_GMT [openHABian] Changing default username and password... OK
2022-02-19_12:36:21_GMT [openHABian] Setting up Ethernet connection... OK
2022-02-19_12:38:40_GMT [openHABian] Ensuring network connectivity... OK
2022-02-19_12:38:40_GMT [openHABian] Waiting for dpkg/apt to get ready... OK
2022-02-19_12:38:56_GMT [openHABian] Updating repositories and upgrading installed packages... OK
2022-02-19_12:39:37_GMT [openHABian] Installing git package... OK
2022-02-19_12:39:47_GMT [openHABian] Updating myself from https://github.com/openhab/openhabian, openHAB3 branch... OK
2022-02-19_12:39:59_GMT [openHABian] Starting execution of 'openhabian-config unattended'... OK
2022-02-19_12:39:59_GMT [openHABian] Checking for root privileges... OK
2022-02-19_12:39:59_GMT [openHABian] Updating Linux package information... OK
2022-02-19_12:40:15_GMT [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2022-02-19_12:40:15_GMT [openHABian] Adjusting swap size to 7677 MB... OK (reboot required)
2022-02-19_12:40:16_GMT [openHABian] Setting timezone based on openhabian.conf... OK (Europe/Berlin)
2022-02-19_13:40:16_CET [openHABian] Enabling time synchronization using NTP... OK
2022-02-19_13:40:16_CET [openHABian] Setting locale based on openhabian.conf... OK (reboot required)
2022-02-19_13:40:53_CET [openHABian] Setting hostname of the base system based on openhabian.conf... OK
2022-02-19_13:40:53_CET [openHABian] Setting the GPU memory split down to 16MB for headless system... OK
2022-02-19_13:40:53_CET [openHABian] Enabling Audio output... OK
2022-02-19_13:40:53_CET [openHABian] Installing basic can't-be-wrong packages (screen, vim, ...)... OK
2022-02-19_13:41:47_CET [openHABian] Installing additional needed packages... OK
2022-02-19_13:42:23_CET [openHABian] Installing python3 serial package... OK
2022-02-19_13:42:37_CET [openHABian] Installing pigpio package... OK
2022-02-19_13:42:51_CET [openHABian] Installing additional bluetooth packages... OK
2022-02-19_13:43:06_CET [openHABian] Adding slightly tuned bash configuration files to system... OK
2022-02-19_13:43:06_CET [openHABian] Adding slightly tuned vim configuration file to system... OK
2022-02-19_13:43:06_CET [openHABian] tailscale VPN installation... SKIPPED (no preauthkey defined)
2022-02-19_13:43:06_CET [openHABian] Applying miscellaneous system settings... OK
2022-02-19_13:43:06_CET [openHABian] Downloading FireMotD... OK
2022-02-19_13:43:08_CET [openHABian] Installing FireMotD... OK
2022-02-19_13:43:08_CET [openHABian] Generating FireMotD theme... OK
2022-02-19_13:43:36_CET [openHABian] Setting up FireMotD apt updates count service... OK
2022-02-19_13:43:48_CET [openHABian] Fetching OpenJDK 11... OK
2022-02-19_13:43:50_CET [openHABian] Installing OpenJDK 11... OK
2022-02-19_13:44:17_CET [openHABian] Beginning install of latest openhab release (stable)... OK
2022-02-19_13:44:17_CET [openHABian] Adding required keys to apt...
2022-02-19_13:44:28_CET [openHABian] Installing selected openHAB3 version... OK
2022-02-19_13:45:06_CET [openHABian] Setting up openHAB service... OK
2022-02-19_13:45:06_CET [openHABian] Optimizing openHAB to run on low memory single board computers... OK
2022-02-19_13:45:06_CET [openHABian] Setting openHAB HTTP/HTTPS ports... OK
2022-02-19_13:45:06_CET [openHABian] Creating dependencies to jointly start services that depend on each other... OK
2022-02-19_13:45:07_CET [openHABian] Adding an openHAB dashboard tile for 'openhabiandocs'... OK
2022-02-19_13:45:07_CET [openHABian] Restarting openHAB service to play it safe... OK
2022-02-19_13:45:07_CET [openHABian] Getting initial openHAB configuration... SKIPPED (backup not found at /boot/initial.zip)
2022-02-19_13:45:07_CET [openHABian] Activating the openHAB console on all interfaces... OK
2022-02-19_13:45:07_CET [openHABian] Adding openHAB syntax to vim editor... OK
2022-02-19_13:45:28_CET [openHABian] Adding openHAB syntax to nano editor... OK
2022-02-19_13:45:28_CET [openHABian] Adding openHAB scheme to multitail... OK
2022-02-19_13:45:29_CET [openHABian] Preparing openHAB folder mounts under '/srv/openhab-*'... OK
2022-02-19_13:45:35_CET [openHABian] Installing Samba... OK
2022-02-19_13:46:34_CET [openHABian] Setting up Samba network shares... OK
2022-02-19_13:46:35_CET [openHABian] Setting up Samba service... OK
2022-02-19_13:46:38_CET [openHABian] Installing Frontail prerequsites (NodeJS)... OK
2022-02-19_13:47:33_CET [openHABian] Installing openHAB Log Viewer (frontail)... OK
2022-02-19_13:48:14_CET [openHABian] Setting up openHAB Log Viewer (frontail) service... OK
2022-02-19_13:48:16_CET [openHABian] Adding an openHAB dashboard tile for 'frontail'... OK
2022-02-19_13:48:16_CET [openHABian] Installing zram... FAILED
2022-02-19_13:48:32_CET [openHABian] Beginning Mail Transfer Agent setup... CANCELED (no configuration provided)
2022-02-19_13:48:32_CET [openHABian] Applying file permissions recommendations... OK
2022-02-19_13:48:32_CET [openHABian] Setting up automated SD mirroring and backup... SKIPPED (no configuration provided)
2022-02-19_13:48:33_CET [openHABian] Cleaning up... OK
2022-02-19_13:48:48_CET [openHABian] Execution of 'openhabian-config unattended' completed.
2022-02-19_13:48:48_CET [openHABian] First time setup successfully finished. Rebooting your system!
2022-02-19_13:48:48_CET [openHABian] After rebooting the openHAB dashboard will be available at: http://openhabian:8080
2022-02-19_13:48:48_CET [openHABian] After rebooting to gain access to a console, simply reconnect using ssh.
I tried several times used openhabian-config to enable ZRAM:
select 30 (system settings)
select 38 (use ZRAM)
but it results in error:
│ There was an error or interruption during the execution of: │
│ "30 | System Settings" │
│ │
│ Please try again. If the error persists, please read │
│ /opt/openhabian/docs/openhabian-DEBUG.md or │
│ https://github.com/openhab/openhabian/blob/main/docs/openhabian-DEBUG.md how │
│ to proceed. │
and the command line on exiting openHABian config says:
[sudo] password for openhabian:
2022-02-19_15:03:37_CET [openHABian] Checking for root privileges... OK
2022-02-19_15:03:37_CET [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2022-02-19_15:03:37_CET [openHABian] openHABian configuration tool version: [openHAB3]{2022-01-28T11:18:18+01:00}(aaf8aca)
2022-02-19_15:03:37_CET [openHABian] Checking for changes in origin branch openHAB3... OK
2022-02-19_15:04:29_CET [openHABian] Switching to branch openHAB3... OK
2022-02-19_15:04:30_CET [openHABian] Adding slightly tuned bash configuration files to system... OK
2022-02-19_15:04:41_CET [openHABian] Updating Linux package information... OK
2022-02-19_15:04:41_CET [openHABian] Updating zram service... OK
2022-02-19_15:04:43_CET [openHABian] Updating OverlayFS... OK
2022-02-19_15:04:44_CET [openHABian] Updating zram... FAILED (logrotate)
2022-02-19_15:04:50_CET [openHABian] Checking for default openHABian username:password combination... OK
2022-02-19_15:04:50_CET [openHABian] We hope you got what you came for! See you again soon ;)
So it appears that zram can’t be enabled because of something to do with logrotate.
With the openHABian logging set to maximum, I get this further information (I have the complete log but its rather long to include here unless its needed):
+ cond_redirect mkdir -p /usr/local/share/zram-config/log
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ mkdir -p /usr/local/share/zram-config/log \033[39;49;00m'
$ mkdir -p /usr/local/share/zram-config/log
+ mkdir -p /usr/local/share/zram-config/log
+ return 0
+ [[ -h /var/log/zram-config ]]
+ cond_redirect install -m 644 /opt/zram/zram-config/zram-config.logrotate /etc/logrotate.d/zram-config
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ install -m 644 /opt/zram/zram-config/zram-config.logrotate /etc/logrotate.d/zram-config \033[39;49;00m'
$ install -m 644 /opt/zram/zram-config/zram-config.logrotate /etc/logrotate.d/zram-config
+ install -m 644 /opt/zram/zram-config/zram-config.logrotate /etc/logrotate.d/zram-config
install: cannot stat '/opt/zram/zram-config/zram-config.logrotate': No such file or directory
+ return 1
+ echo 'FAILED (logrotate)'
FAILED (logrotate)
openhabian@openhabian:/etc $ ls logrotate*
logrotate.conf
logrotate.d:
alternatives apt btmp dpkg rsyslog samba unattended-upgrades wtmp
Any help with where to go from here, pretty sure I can’t just create the missing directory?