Sorry but that’s a useless log.
Enable debugging in openhabian.conf, and do a proper recording so the output is ASCII-readable.
Use script or a different terminal program,
With Legacy openhabian, I have this splash screen:
Linux openhabian 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64
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.
Last login: Wed Jun 7 15:49:51 2023 from 192.168.0.69
###############################################################################
############### openhabian ##################################################
###############################################################################
## Ip = 192.168.0.163
## Release = Raspbian GNU/Linux 11 (bullseye)
## Kernel = Linux 6.1.21-v8+
## Platform = Failed to start Check for Raspberry Pi EEPROM updates.
## Uptime = 0 day(s). 0:0:36
## CPU Usage = 59.09% avg over 4 cpu(s) (4 core(s) x 1 socket(s))
## CPU Load = 1m: 2.67, 5m: 0.73, 15m: 0.25
## Memory = Free: 6.65GB (87%), Used: 1.01GB (13%), Total: 7.67GB
## Swap = Free: 2.43GB (100%), Used: 0.00GB (0%), Total: 2.43GB
## Root = Free: 43.35GB (77%), Used: 12.53GB (23%), Total: 58.29GB
## Updates = 0 apt updates available.
## Sessions = 1 session(s)
## Processes = 146 running processes of 32768 maximum processes
###############################################################################
_ _ _ ____ _
___ ___ ___ ___ | | | | / \ | __ ) (_) ____ ___
/ _ \ / _ \ / _ \ / _ \ | |_| | / _ \ | _ \ | | / _ \ / _ \
| (_) | (_) | __/| | | || _ | / ___ \ | |_) )| || (_) || | | |
\___/| __/ \___/|_| |_||_| |_|/_/ \_\|____/ |_| \__|_||_| | |
|_| openHAB 3.4.4 - Release Build
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://openhabian:8080
To interact with openHAB on the command line, execute: 'openhab-cli --help
When switching openhabian to main or openhab4 I have some issues:
a splash screen which does not show openHAB’s version number, instead a message as cited by Samuel appears
choosing a backup with openhabian-config is no longer possible. Error message: openhab is not installed
I do not know whether is has to do with the current version but I had issues with deCONZ installing as described here
A cosmetic issue since some time: installing deCONZ with a non-standard port (e.g., 8007) is possible, but openhabian’s final screen says that port 8001 has been selected.
Actually, installing deCONZ needs a special fix since some days due to a Debian error. Therefore, openhabian fails to install as well.
I don’t see anything unusual about this log. Option 02 is supposed to update all packages to their latest version, and so it does. You didn’t select any of the 4X options.
Take a recording of the action that you believe should behave different.
The main version don’t install Firemot and i have an issue with /var/lib/openhab2/.
I also try install Firemot again via openhabian but the problem persist.
Linux openhabian 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch 64
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.
Last login: Wed Jun 7 23:17:24 2023 from 192.168.0.13
2023-06-07 23:17:24,903: FireMotD: Info: No FireMotD ExportFile detected. Please generate with "sudo .\/FireMotD -S"
sed: can't read /var/lib/openhab2/etc/version.properties: No such file or direct ory
sed: can't read /var/lib/openhab2/etc/version.properties: No such file or direct ory
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://openhabian:8080
To interact with openHAB on the command line, execute: 'openhab-cli --help'
2023-06-07_23:24:53_WEST [openHABian] Updating Linux package information... OK
2023-06-07_23:24:53_WEST [openHABian] Downloading FireMotD...
Update...
$ update_git_repo /opt/FireMotD master
2023-06-07_23:24:53_WEST [openHABian] Updating FireMotD, master branch from git. ..
$ git -C /opt/FireMotD fetch origin
$ git -C /opt/FireMotD fetch --tags --force --prune
$ git -C /opt/FireMotD reset --hard origin/master
HEAD is now at 3d2bea6 fix
$ git -C /opt/FireMotD clean --force -x -d
$ git -C /opt/FireMotD checkout master
Already on 'master'
Your branch is up to date with 'origin/master'.
OK
OK
2023-06-07_23:24:56_WEST [openHABian] Installing FireMotD...
$ make --always-make --directory=/opt/FireMotD install
make: Entering directory '/opt/FireMotD'
cp FireMotD /usr/local/bin/FireMotD
chmod 755 /usr/local/bin/FireMotD
mkdir -p /usr/share/firemotd/data
mkdir -p /usr/share/firemotd/templates
mkdir -p /usr/share/firemotd/themes
mkdir -p /usr/share/firemotd/cache
cp templates/* /usr/share/firemotd/templates
cp themes/* /usr/share/firemotd/themes
make: Leaving directory '/opt/FireMotD'
$ make --always-make --directory=/opt/FireMotD bash_completion
make: Entering directory '/opt/FireMotD'
cp bash_completion.d/FireMotD /etc/bash_completion.d/FireMotD
make: Leaving directory '/opt/FireMotD'
OK
2023-06-07_23:24:56_WEST [openHABian] Generating FireMotD theme...
$ FireMotD -S -d -D all
2023-06-07 23:24:56,706: FireMotD: Info: Debug mode
2023-06-07 23:24:56,715: FireMotD: Info: FireMotD action save started
2023-06-07 23:24:56,725: FireMotD: Info: Action "save"
2023-06-07 23:24:56,734: FireMotD: Info: Exportfile /usr/share/firemotd/data/Fir eMotD.json found.
2023-06-07 23:24:56,743: FireMotD: Info: Template type set to all. Overwriting..
2023-06-07 23:24:56,840: FireMotD: Info: Exploring HostIp
2023-06-07 23:24:57,037: FireMotD: Info: Exploring Release
2023-06-07 23:24:57,244: FireMotD: Info: Exploring Kernel
2023-06-07 23:24:57,440: FireMotD: Info: Exploring Platform
2023-06-07 23:24:57,655: FireMotD: Info: Exploring InstallDate
2023-06-07 23:24:57,845: FireMotD: Info: Exploring Updates
2023-06-07 23:25:04,395: FireMotD: Info: Exploring Httpd
2023-06-07 23:25:04,582: FireMotD: Info: Exploring Nginx
2023-06-07 23:25:04,768: FireMotD: Info: Exploring Mysql
2023-06-07 23:25:05,081: FireMotD: Info: Exploring Postgres
2023-06-07 23:25:05,266: FireMotD: Info: Exploring Php
2023-06-07 23:25:05,548: FireMotD: Info: Exploring Elasticsearch
2023-06-07 23:25:05,734: FireMotD: Info: Exploring Logstash
2023-06-07 23:25:05,919: FireMotD: Info: Exploring Kibana
2023-06-07 23:25:06,103: FireMotD: Info: Export system data to "/usr/share/firem otd/data/FireMotD.json" finished.
2023-06-07 23:25:06,120: FireMotD: Info: ExportFile: -rwxrw-rw- 1 root root 3231 Jun 7 23:25 /usr/share/firemotd/data/FireMotD.json
2023-06-07 23:25:06,130: FireMotD: Info: FireMotD action save finished
$ FireMotD -G Gray
OK
2023-06-07_23:25:20_WEST [openHABian] Setting up FireMotD apt updates count service...
Make FireMotD check for new updates every night...
$ install -m 644 /opt/openhabian/includes/firemotd/firemotd.service /opt/openhabian/includes/firemotd/firemotd.timer /etc/systemd/system/
$ systemctl -q daemon-reload
Make FireMotD check for new updates after using apt...
$ install -m 644 /opt/openhabian/includes/firemotd/15firemotd /etc/apt/apt.conf.d/
Initial FireMotD updates check
$ FireMotD -S
OK
2023-06-07_23:25:33_WEST [openHABian] Checking for default openHABian username:password combination... FAILED
2023-06-07_23:25:33_WEST [openHABian] We hope you got what you came for! See you again soon ;)
openhabian@openhabian:~ $
I tried many different options, almost all I can think of and I always ended up with either 3.4.4 or openHAB2.
“You didn’t select any of the 4X options.”
The option that I think would make sense the most is
(1) (*) release most recommended version that supports openHAB 4 (openHAB branch)
then 02 | Upgrade System Update all installed software packages (incl. openHAB) to their latest version
which ends up with 3.4.4
I then tried 03 | Install openHAB Install or upgrade to openHAB 3, → same result.
An 41 option will end up with OH2 (All warn about OH2 and I tried it once and ended up with a corrupt openHAB install, so I had to purge SD card and start from scratch)
│42 | Upgrade to latest openHAB Upgrade OS environment to openHAB current release → also ended up with 3.4.4
So which option or sequence do you like me to try and record? What 4x option do you think of?
Was anyone successful with the latest openhabian / openhabian-config to upgrade from a downloaded 3.x version to 4.0? And if, what options did you use?
You obviously cannot upgrade your release version as OH4 is not released yet, so you need to switch to milestone using the corresponding 4x option first.
The code I asked you about determines how openhabian proceeds. For the system you showed the output for, it should not result in OH2 being installed.
so you need to switch to milestone using the corresponding 4x option first.
I now used “41 openHAB Milestone Install or switch to the latest openHAB Milestone Build” but then canceled it during installation (not to break the whole setup) because I saw in the logs that it retrieves OH2 stuff, see recording
## Function to check if openHAB is running on the current system. Returns
## 0 / true if openHAB is running and 1 / false if not.
##
## openhab_is_running()
##
openhab_is_running() {
if openhab_is_installed && [[ $(systemctl is-active openhab) == "active" ]]; then return 0; else return 1; fi
}
## Functions to check it a given supported program is installed should be placed below here
## Function to check if openHAB 2 is installed on the current system. Returns
## 0 / true if openHAB is installed and 1 / false if not.
##
## openhab2_is_installed()
##
openhab2_is_installed() {
if [[ $(dpkg -s 'openhab2' 2> /dev/null | grep Status | cut -d' ' -f2) =~ ^(install|hold)$ ]]; then return 0; else return 1; fi
}
## Function to check if openHAB 3 is installed on the current system. Returns
## 0 / true if openHAB is installed and 1 / false if not.
##
## openhab3_is_installed()
##
openhab3_is_installed() {
#if [[ $(dpkg -s 'openhab' 2> /dev/null | grep Status | cut -d' ' -f2) =~ ^(install|hold)$ ]]; then return 0; else return 1; fi
#if [[ $(dpkg -s 'openhab' 2> /dev/null | grep Config-Version | cut -d ' ' -f2 | cut -d '.' -f1) = 3 ]]; then return 0; else return 1; fi
if [[ $(dpkg -s 'openhab' 2> /dev/null | egrep '^Version' | cut -d ' ' -f2 | cut -d '.' -f1) = 3 ]]; then return 0; else return 1; fi
}
## Function to check if openHAB is installed on the current system. Returns
## 0 / true if openHAB is installed and 1 / false if not.
##
## openhab_is_installed()
##
openhab4_is_installed() {
if [[ $(dpkg -s 'openhab' 2> /dev/null | egrep '^Version' | cut -d ' ' -f2 | cut -d '.' -f1) = 4 ]]; then return 0; else return 1; fi
}
## Function to check if openHAB is installed on the current system. Returns
## 0 / true if openHAB is installed and 1 / false if not.
##
## openhab_is_installed()
##
openhab_is_installed() {
if openhab2_is_installed || openhab3_is_installed || openhab4_is_installed; then return 0; else return 1; fi
}