- Platform information:
Release = Raspbian GNU/Linux 10 (buster) - (openHABian image)
Kernel = Linux 5.10.63-v7l+
Platform = Raspberry Pi 4 Model B Rev 1.1
Yesterday I did a system upgrade on my Raspberry and suddendly openhab stopped working. I had a message about how Java Zulu could not be installed, so I tried to install it from within openhabian-config again but nothing worked. I tried also undoing the upgrade of the packages that had been done right before but still nothing.
As I had a backup of the openHAB config (but not the whole system, I’m still getting familiar/learning about that), I thought about flashing a new card but it seems not even the brand new installations work. I have tried the openHABian images for versions 1.6.2b (it was the one I had originally on my system before the upgrade), 1.6.5 and 1.6.6 but all of them have openHAB not coming up after the installation finishes. I do have an ethernet cable connected to the Raspberry
Trying to start the service with sudo systemctl start openhab.service does not show any info and starting using opehab-cli gives the following output:
openhabian@openhabian:~ $ sudo openhab-cli start --debug
A systemd service configuration exists...
Use 'sudo /bin/systemctl start openhab.service' to start an openHAB service
Launching an instance in this terminal..
Launching the openHAB runtime...
java command not found
And checking the status of the service gives the following:
openhabian@openhabian:~ $ sudo systemctl status openhab.service
● openhab.service - openHAB instance, reachable at http://openhabian:8080
Loaded: loaded (/lib/systemd/system/openhab.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/openhab.service.d
└─override.conf
Active: activating (auto-restart) (Result: exit-code) since Sun 2021-10-31 20:18:27 CET; 971ms ago
Docs: https://www.openhab.org/docs/
https://community.openhab.org
Process: 14935 ExecStart=/usr/share/openhab/runtime/bin/karaf ${OPENHAB_STARTMODE} (code=exited, status=1/FAILURE)
Main PID: 14935 (code=exited, status=1/FAILURE)
I also tried the installation of the Java Zulu 11 as I know that is what was causing me issues on my original card. But I get the same error on the new card as on the original one (I’m using menu option 45 - Zulu 11 OpenJDK 32bit).
openhabian@openhabian:~ $ sudo openhabian-config
2021-10-31_20:21:12_CET [openHABian] Checking for root privileges... OK
2021-10-31_20:21:13_CET [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2021-10-31_20:21:13_CET [openHABian] openHABian configuration tool version: [main]{2021-10-26T12:40:19+02:00}(96fe0a0)
2021-10-31_20:21:13_CET [openHABian] Checking for changes in origin branch main... OK
2021-10-31_20:21:15_CET [openHABian] Switching to branch main... OK
2021-10-31_20:21:52_CET [openHABian] Updating Linux package information... OK
2021-10-31_20:21:52_CET [openHABian] Installing Java Zulu prerequisites (libc, libstdc++, zlib1g)... OK
2021-10-31_20:21:52_CET [openHABian] Downloading Java Zulu 11 32-Bit OpenJDK... FAILED (download)
find: ‘/opt/jdk/*/bin’: No such file or directory
find: ‘...’: No such file or directory
find: ‘/opt/jdk/*/lib’: No such file or directory
find: ‘...’: No such file or directory
2021-10-31_20:21:53_CET [openHABian] Installing Java Zulu 11 32-Bit OpenJDK... OK
2021-10-31_20:21:53_CET [openHABian] Installing Java Zulu CEK to enable unlimited cipher strength... FAILED (download)
2021-10-31_20:21:54_CET [openHABian] Somewhere, somehow, something went wrong and Java has not been installed. Until resolved, openHAB will be broken.
On the new card, I tried reinstalling openHAB and got the following again
openhabian@openhabian:~ $ sudo apt install --reinstall openhab
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 98.7 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable/main armhf openhab all 3.1.0-1 [98.7 MB]
Fetched 98.7 MB in 9s (10.7 MB/s)
(Reading database ... 53656 files and directories currently installed.)
Preparing to unpack .../openhab_3.1.0-1_all.deb ...
Unpacking openhab (3.1.0-1) over (3.1.0-1) ...
Setting up openhab (3.1.0-1) ...
[openHAB] WARNING: We were unable to detect Java 11 on your system. This is needed before openHAB can be started.
[openHAB] Please install the current version of Java 11 or check the openHAB documentation for details.
[openHAB] openHAB was not running so will not start after upgrade.
[openHAB] Please use the command:
sudo /bin/systemctl start openhab.service
Processing triggers for systemd (241-7~deb10u8+rpi1) ...
Updating FireMotD available updates count ...
So it looks like I definitely have an issue with the Java installation, but no idea how to get it other than using the option in the openhabian-config menu. Any ideas on what I need to do to get openHAB up? Not sure if the attached logs are enough, let me know if something else is needed.