sooo I ran diet-pi update… and eehm… its all broken now …
any troubleshooting steps I can take ?
sooo I ran diet-pi update… and eehm… its all broken now …
any troubleshooting steps I can take ?
Can you be a tiny bit more specific please
Which parts don’t work?
the entire service…
root@VMDROIDC4:~# systemctl status openhab
● openhab.service - openHAB - empowering the smart home
Loaded: loaded (/usr/lib/systemd/system/openhab.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Fri 2024-08-30 10:52:14 +04; 1s ago
Docs: Introduction | openHAB
https://community.openhab.org
Process: 31031 ExecStart=/usr/share/openhab/runtime/bin/karaf ${OPENHAB_STARTMODE} (code=exited, status=1/FAILURE)
Main PID: 31031 (code=exited, status=1/FAILURE)
got it …
sudo journalctl -u openhab
karaf[32159]: JVM must be version 17 or 21. JVM version 11 is unsupported
just need to find out how to install Java 17 now…
root@VMDROIDC4:~# sudo apt install openjdk-17-jdk
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package openjdk-17-jdk
root@VMDROIDC4:~#
Arrrr yes
That old chestnut.
So the Kernel in the latest fresh install of DietPi supports Java 17, but upgraded versions don’t.
(You need to change the kernel)
You have the option to roll back and hold
openHAB at a version that runs on Java 11
Or…
Backup openHAB / NodeRed / Samba and so on
Flash a fresh DietPi image and restore
did the (manual) bullseye upgrade on DietPi… reinstalled Java… and boom!..
DietPi - How to upgrade to “Bullseye” - DietPi blog
next where the Sonoff JAR files that needed renewing on /usr/shared/openhab/addons
openhab-sonoff-compiled/org.openhab.binding.sonoff-4.0.4-SNAPSHOT.jar at main · delid4ve/openhab-sonoff-compiled · GitHub
and we are back online…