Unable to install openhabian with clonebranch=stable successfully

Platform information:
Hardware: raspi 4 4GB
OS: raspi os bullseye before i tried openhabian with clonebranch=stable

Issue:
I am unable to install openhabian 1.6.6 or 1.7 successfully
parameters changes in in openhabian.conf: hostname, user, passwd, wlan, clonebranch=stable

Installation starts. There are several errors. After finishing it’s messed up. os is running, but not much more. Looking at open ports i only see 22. Lucky me, i could login per ssh.

the following logs are openhabian 1.6.6
Login prompt:

login as: marino
marino@172.16.172.63's password:
Linux hostoh3 5.10.63-v7l+ #1457 SMP Tue Sep 28 11:26:14 BST 2021 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.


###############################################################################
###############  hostoh3  #####################################################
###############################################################################
##        Ip = 172.16.172.63
##   Release = Raspbian GNU/Linux 10 (buster)
##    Kernel = Linux 5.10.63-v7l+
##  Platform = Raspberry Pi 4 Model B Rev 1.1
##    Uptime = 0 day(s). 0:30:29
## CPU Usage = 0.5% avg over 4 cpu(s) (4 core(s) x 1 socket(s))
##  CPU Load = 1m: 0.00, 5m: 0.00, 15m: 0.00
##    Memory = Free: 1.37GB (36%), Used: 2.42GB (64%), Total: 3.79GB
##      Swap = Free: 1.99GB (100%), Used: 0.00GB (0%), Total: 1.99GB
##      Root = Free: 8.71GB (65%), Used: 4.60GB (35%), Total: 13.92GB
##   Updates = 0 apt updates available.
##  Sessions = 1 session(s)
## Processes = 112 running processes of 32768 maximum processes
###############################################################################
sed: can't read /var/lib/openhab2/etc/version.properties: No such file or directory
sed: can't read /var/lib/openhab2/etc/version.properties: No such file or directory


              Welcome to            __  _____    ____  _
            ____  ____  ___  ____  / / / /   |  / __ )(_)___ _____
           / __ \/ __ \/ _ \/ __ \/ /_/ / /| | / __  / / __ `/ __ \
          / /_/ / /_/ /  __/ / / / __  / ___ |/ /_/ / / /_/ / / / /
          \____/ .___/\___/_/ /_/_/ /_/_/  |_/_____/_/\__,_/_/ /_/
              /_/
                  openHAB  ()


Looking for a place to get started? Check out 'sudo openhabian-config' and the
documentation at https://www.openhab.org/docs/installation/openhabian.html
The openHAB dashboard can be reached at http://oh-test:8080
To interact with openHAB on the command line, execute: 'openhab-cli --help'

firstboot.log looks like this:

2021-05-07_16:01:01_BST [openHABian] Starting the openHABian initial setup.
2021-05-07_16:01:01_BST [openHABian] Storing configuration... OK
2021-05-07_16:01:01_BST [openHABian] Starting webserver with installation log... OK
2021-05-07_16:01:06_BST [openHABian] Changing default username and password... OK
2021-05-07_16:01:07_BST [openHABian] Setting up Wi-Fi connection... ERROR ( is not a valid country code found in '/usr/share/zoneinfo/zone.tab' defaulting to US)
2021-05-07_16:01:07_BST [openHABian] Configuring network... OK (rebooting)


2021-05-07_16:01:22_BST [openHABian] Starting the openHABian initial setup.
2021-05-07_16:01:22_BST [openHABian] Storing configuration... OK
2021-05-07_16:01:22_BST [openHABian] Starting webserver with installation log... OK
2021-05-07_16:01:27_BST [openHABian] Changing default username and password... SKIPPED
2021-05-07_16:01:27_BST [openHABian] Checking if WiFi is working... OK
2021-12-01_12:20:08_GMT [openHABian] Ensuring network connectivity... OK
2021-12-01_12:20:09_GMT [openHABian] Waiting for dpkg/apt to get ready... OK
2021-12-01_12:20:28_GMT [openHABian] Updating repositories and upgrading installed packages... OK (rebooting)


2021-12-01_12:24:05_GMT [openHABian] Starting the openHABian initial setup.
2021-12-01_12:24:05_GMT [openHABian] Storing configuration... OK
2021-12-01_12:24:05_GMT [openHABian] Starting webserver with installation log... OK
2021-12-01_12:24:10_GMT [openHABian] Changing default username and password... SKIPPED
2021-12-01_12:24:10_GMT [openHABian] Checking if WiFi is working... OK
2021-12-01_12:24:14_GMT [openHABian] Ensuring network connectivity... OK
2021-12-01_12:24:14_GMT [openHABian] Waiting for dpkg/apt to get ready... OK
2021-12-01_12:24:21_GMT [openHABian] Updating repositories and upgrading installed packages... OK
2021-12-01_12:24:24_GMT [openHABian] Installing git package... OK
2021-12-01_12:24:36_GMT [openHABian] Updating myself from https://github.com/openhab/openhabian, stable branch... OK
2021-12-01_12:24:41_GMT [openHABian] Starting execution of 'openhabian-config unattended'... OK
2021-12-01_12:24:41_GMT [openHABian] Checking for root privileges... OK
2021-12-01_12:24:41_GMT [openHABian] Updating Linux package information... OK
2021-12-01_12:24:47_GMT [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2021-12-01_12:24:48_GMT [openHABian] Adjusting swap size to 3838 MB... OK (reboot required)
2021-12-01_12:24:48_GMT [openHABian] Setting timezone based on openhabian.conf... OK (Europe/Berlin)
2021-12-01_13:24:48_CET [openHABian] Enabling time synchronization using NTP... OK
2021-12-01_13:24:48_CET [openHABian] Setting locale based on openhabian.conf... OK (reboot required)
2021-12-01_13:25:25_CET [openHABian] Setting hostname of the base system based on openhabian.conf... OK
2021-12-01_13:25:25_CET [openHABian] Setting the GPU memory split down to 16MB for headless system... OK
2021-12-01_13:25:25_CET [openHABian] Enabling Audio output... OK
2021-12-01_13:25:26_CET [openHABian] Installing basic can't-be-wrong packages (screen, vim, ...)... OK
2021-12-01_13:25:58_CET [openHABian] Installing additional needed packages... OK
2021-12-01_13:26:38_CET [openHABian] Installing pigpio package... OK
2021-12-01_13:26:44_CET [openHABian] Installing additional bluetooth packages... OK
2021-12-01_13:26:52_CET [openHABian] Adding slightly tuned bash configuration files to system... OK
2021-12-01_13:26:52_CET [openHABian] Adding slightly tuned vim configuration file to system... OK
2021-12-01_13:26:52_CET [openHABian] Downloading FireMotD... OK
2021-12-01_13:26:55_CET [openHABian] Installing FireMotD... OK
2021-12-01_13:26:55_CET [openHABian] Generating FireMotD theme... OK
2021-12-01_13:27:09_CET [openHABian] Setting up FireMotD apt updates count service... OK
2021-12-01_13:27:18_CET [openHABian] Installing cached version of Java to ensure that some form of Java is installed!
2021-12-01_13:27:19_CET [openHABian] Installing Java Zulu prerequisites (libc, libstdc++, zlib1g)... OK
2021-12-01_13:27:19_CET [openHABian] Installing Java Zulu 11 32-Bit OpenJDK... OK
2021-12-01_13:27:19_CET [openHABian] Installing Java Zulu CEK to enable unlimited cipher strength... OK
2021-12-01_13:27:21_CET [openHABian] Installing Java Zulu prerequisites (libc, libstdc++, zlib1g)... OK
2021-12-01_13:27:21_CET [openHABian] Downloading Java Zulu 11 32-Bit OpenJDK... OK
2021-12-01_13:29:02_CET [openHABian] Installing Java Zulu 11 32-Bit OpenJDK... OK
2021-12-01_13:29:03_CET [openHABian] Installing Java Zulu CEK to enable unlimited cipher strength... OK
2021-12-01_13:29:04_CET [openHABian] Beginning install of latest openHAB2 release (stable)... OK
2021-12-01_13:29:04_CET [openHABian] Adding required keys to apt... OK
2021-12-01_13:29:07_CET [openHABian] Installing selected openHAB version... FAILED (update apt lists)
2021-12-01_13:29:07_CET [openHABian] Adding openHAB syntax to vim editor... OK
2021-12-01_13:29:11_CET [openHABian] Adding openHAB syntax to nano editor... OK
2021-12-01_13:29:14_CET [openHABian] Adding openHAB scheme to multitail... OK
2021-12-01_13:29:14_CET [openHABian] Preparing openHAB folder mounts under '/srv/openhab2-*'... OK
2021-12-01_13:29:17_CET [openHABian] Applying miscellaneous system settings... OK
2021-12-01_13:29:17_CET [openHABian] Installing Samba... FAILED
2021-12-01_13:29:18_CET [openHABian] Applying file permissions recommendations... FAILED (please execute after openHAB is installed)
2021-12-01_13:29:18_CET [openHABian] Installing Frontail prerequsites (NodeJS)... FAILED
2021-12-01_13:29:20_CET [openHABian] Skipping ZRAM install as requested.2021-12-01_13:29:20_CET [openHABian] Beginning Mail Transfer Agent setup... CANCELED (no configuration provided)
2021-12-01_13:29:20_CET [openHABian] tailscale VPN installation... SKIPPED (no preauthkey defined)
2021-12-01_13:29:20_CET [openHABian] Setting up automated SD mirroring and backup... CANCELED (no configuration provided)
2021-12-01_13:29:20_CET [openHABian] Cleaning up... FAILED
2021-12-01_13:29:20_CET [openHABian] Execution of 'openhabian-config unattended' completed.
2021-12-01_13:29:20_CET [openHABian] First time setup successfully finished. Rebooting your system!
2021-12-01_13:29:20_CET [openHABian] After rebooting the openHAB dashboard will be available at: http://oh-test:8080
2021-12-01_13:29:20_CET [openHABian] After rebooting to gain access to a console, simply reconnect using ssh.
sed: can't read /opt/openhabian/includes/webserver/install-complete.html: No such file or directory

Trying 1.6.6 clonebranche=main i’ve been successfull.
Trying openhabian 1.7beta clonebranch=HEAD i’ve been successfull.

Just realized that 1.7 has just been released. Same sort of problems there. first-boot.log & messages with debug=on available if someone is interested.

Apologies upfront if the following response sounds harsh, but your post shows a somewhat strange lack of information on a number of details and I’m wondering if that’s by intention.

Please read and always follow general advice on posting as explained here.
How to ask a good question / Help Us Help You - Tutorials & Examples - openHAB Community

As installing with clonebranch=stable does work in general, something about your system must be different so I suspect you have unmet prerequisites or unsupported components or procedures (SSD? USB boot?) that you don’t tell about.
If that’s the case you should at least be fair and tell us.

First, fully name your goal. Is it to get OH2 installed ? If so, why ?
clonebranch=stable is not a goal by itself so you’re making us victim to the XY problem (see 1st link).

What do you mean, did you use the image or not ?
Fully describe the steps you used for install, please.
Installing Raspi OS yourself then manually running an unattended installation is pointless. If you did, why ?

Read the docs please, /opt/openhabian/docs/openhabian.md in particular (docs on openhab.org are a copy of that).
Before you poke around yourself. Make sure you meet the prerequisites first. There is also a debug guide seems you have not even read that as it says that to be/become of use, any debug log needs to have debugmode=maximum.

First of all: i am not going to justify for trying to install oh2.5 using openhabain. I am not aware of any sanctions. If you don’t want people to to this, just kick oh2 out of openhabian.

There is nothing special about my raspberry pi 4 4GB. No ssd, no USB boot. Just plane jane, even naked.

On this pi i have been running Raspberry Pi OS bullseye doing some tests. While poking around with Raspberry Pi OS bullseye before i decided to install openhabian w/stable, I had some problems after installing a boot loader (see below) But these had been gone after having installed the latest bootloader available.

Then i unplugged the sd card with Raspberry Pi OS. I downloaded a fresh copy of 1.6.6, used raspberry pi imager to write it on a sd card. Then i changed some parameter / attributes in openhabian.conf:

hostname=oh-test
username=marino
userpw="user_password"
system_default_locale="de_de.UTF-8"
wifi_ssid="tvw"
wifi_password="wifi_passphrase"
wifi_country="DE"
clonebranch=stable

I am so very sorry having posted anything about this problem. It took some time to get the results above. If i remember well, i tried to install 1.6.6 w/stable three times after reading a post in the DE forum from someone havin the same problem i decribe above:

  • 1st install: wrong bootloader, no boot → took some time to investigate, my fault
  • 1.1st: cleanup, new bootloader, some tests …
  • 2cnd: result as decribed here, thought could have been my fault
  • 3rd: new sd, newly downloaded image, check openhabin.conf 3 times: result as described here
    Hm, is there something strange withn the pi?
    Try 1.6.6 using main → result ok.
    Try 1.7 beta using HEAD → result ok
    Try 1.7beta using stable → same mess as above
    Ok then: just released 1.7 using stable again with debug=on → mess as above, see log.

As i didn’t want to open an issue, i didn’t set debug=maximum. Question: if debug=on is useless - what is it good for?

I’m going to create a “maximum” log later.

Choice is yours but if I was you and wanted others to help me, I would. And be it just to motivate potential volunteer helpers.
This is what the XY problem is really about: you are trying to implement a specific solution X (get clonebranch=stable to work on a somehow non-standard system) to solve a problem Y (restore a system state ? import an OH2 config? that you still refuse to tell us about) that other solutions Z might exist for (e.g. an interactive downgrade via menu) that may be easier and quicker. But noone can tell unless you explain Y well enough that others see a point in helping you to get there.
And given you don’t, I and probably many other people don’t want to help you with X as for me and them it’s a waste of their time. This is a demotivator.

Nope. The feature has been working and keeps working as long as you pay attention to the prerequisites so why should it be removed.
That’s a maintainer decision and really ain’t yours to comment on. And to quote the README:
“openHAB 2 support is no longer actively maintained and the software will only receive select patches deemed necessary by the maintainers of the project”.

What i think atm is: “i don’t expect anyone to get an openhabian with clonebranch=stable up and running using an uptodate plane jane pi4 with 4GB.” For whatsoever reason s/he does:

  • to prove it’s working or not
  • to create a stable environment based on last buster opebhabian
  • to create a stable environment based on openhabian buster
  • in desperate need of a oh2.5.x on a pi using openhabian because it worked quite good some time ago.

I do not like to tell my reason (at the end there isn’t any), because i don’t want to be evangelized to better use oh3. I am using oh3.x on other pis. So why do you care about my motivation?

Anyway: I didn’t even ask for help. So calm down. Maybe some you trust will take the time to try an installation … if it’s working: fine with me. If not: i really don’t care you riding a dead horse.

Reading your last post again

makes me feel somewhat angry: What the hell makes you think that?

Please mind your wording !!!

… while cleaning up before cancel culture get’s me: obsolete.

You didn’t? Your whole post is a request for help, probably wasting people’s time as I explained. You even reiterated it with this statement.
On an unsupported piece of the system as the README clearly tells.

It’s been working in a long time with the standard system(s) we test against and now it does not on yours. Plus you spoke about a bootloader upgrade which isn’t standard either.
Might be a reason for your problems or not but that’s indications something about your system is different from other people’s.

And mind your wording.

I assume that was meant to be funny but it wasn’t. Please watch your tone and be more careful in future conversations. (That I’m stating as a moderator.)

… obsolete …

I stated about having set wlan paramater in openhabian.conf. So it should be obvious that i wanted to use it while installing openhabin.
In the logs i realized some messages about wlan not successfully installed. However i have been able to login via ssh after (quite unsuccessfull) installation.

So i did another install using LAN. What i get at the end is the same mess described above.

Trying to look for updates, openhabian gives me an error. Using apt tells me:

marino@oh-test:~ $ sudo apt-get update
E: Conflicting values set for option Signed-By regarding source https://openhab.jfrog.io/artifactory/openhab-linuxpkg/ stable: /usr/share/keyrings/openhab.gpg !=
E: The list of sources could not be read.

pi4 eeprom info:

marino@oh-test:~ $ sudo rpi-eeprom-update
[sudo] password for marino:
BOOTLOADER: up to date
   CURRENT: Mon 22 Nov 11:23:32 UTC 2021 (1637580212)
    LATEST: Thu 29 Apr 16:11:25 UTC 2021 (1619712685)
   RELEASE: default (/lib/firmware/raspberrypi/bootloader/default)
            Use raspi-config to change the release.

  VL805_FW: Dedicated VL805 EEPROM
     VL805: up to date
   CURRENT: 000138a1
    LATEST: 000138a1

first-boot-maximum-lan.log (125.1 KB)
first-boot-maximum-wlan.log (231.3 KB)

EDIT says: the LATEST … output of rpi-eeprom-update above is a result of the os not being updated. Running a current Raspian Pi OS shows:

sudo rpi-eeprom-update 
BOOTLOADER: up to date
   CURRENT: Mo 22. Nov 11:23:32 UTC 2021 (1637580212)
    LATEST: Mo 22. Nov 11:23:32 UTC 2021 (1637580212)
   RELEASE: stable (/lib/firmware/raspberrypi/bootloader/stable)
            Use raspi-config to change the release.

  VL805_FW: Dedicated VL805 EEPROM
     VL805: up to date
   CURRENT: 000138a1
    LATEST: 000138a1

Really? What i understand from your statement is, you are telling openhabian users not to use latest stable Rasbian pi OS bootloader on pi generation having bootloader im eeprom. Do i get this wrong?

clonebranch=stable install into OH2 fails · Issue #1628

I started trying to reproduce your issue after my last post although this is unsupported (and yes, I now regret having spent my time for you).
By that time I was not aware of anything not to work so what’s wrong with communications ?

And who do you think you are to blame me and put up such judgement in the public ?

Just me, don’t worry.