openhab findet Java nicht ?!
Verfasst: 9. Jan 2024 12:26
Ich hab ein sehr schlanke, grenzwertige HW und möchte openhab nicht mit openhabian sondern als Paket installieren.
Das Zulu hab ich installiert und den Pfad exportiert.
java --version funktioniert.
debian@BeagleBone:/usr$ java --version
openjdk 17.0.9 2023-10-17 LTS
OpenJDK Runtime Environment Zulu17.46+19-CA (build 17.0.9+8-LTS)
OpenJDK Server VM Zulu17.46+19-CA (build 17.0.9+8-LTS, mixed mode)
Aber openhab findet es leider nicht. Was kann ich dagegen tun?
debian@BeagleBone:/usr$ sudo apt-get install openhab
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
openjdk-17-jre | java17-runtime | java17-runtime-headless | zulu17-jdk | temurin-17-jdk
The following NEW packages will be installed:
openhab
0 upgraded, 1 newly installed, 0 to remove and 65 not upgraded.
Need to get 0 B/110 MB of archives.
After this operation, 123 MB of additional disk space will be used.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "de_DE.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package openhab.
(Reading database ... 56869 files and directories currently installed.)
Preparing to unpack .../openhab_4.1.1-1_all.deb ...
Unpacking openhab (4.1.1-1) ...
Setting up openhab (4.1.1-1) ...
[openHAB] WARNING: We were unable to detect Java 17 on your system. This is needed before openHAB can be started.
[openHAB] Please install the current version of Java 17 or check the openHAB documentation for details.
[openHAB] Running JSON Database upgrade tool (${OPENHAB_RUNTIME}/bin/upgradetool.jar).
/var/lib/dpkg/info/openhab.postinst: 300: java: not found
[openHAB] WARNING: internal database upgrade tool failed.
[openHAB] please check the openHAB website (www.openhab.org) for upgrade requirements.
[openHAB] openHAB was not running so will not start after upgrade.
[openHAB] Please use the command:
sudo /bin/systemctl start openhab.service
Edit:
Hab den Pfad mittels visodo hinzugefügt. sudo java --version geht jetzt auch, falls das das Problem war.
Aber
debian@BeagleBone:~$ sudo systemctl status openhab.service
● openhab.service - openHAB - empowering the smart home
Loaded: loaded (/usr/lib/systemd/system/openhab.service; disabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Tue 2024-01-09 11:42:25 UTC; 3s ago
Docs: https://www.openhab.org/docs/
https://community.openhab.org
Process: 1185 ExecStart=/usr/share/openhab/runtime/bin/karaf ${OPENHAB_STARTMODE} (code=exited, status=1/FAILURE)
Main PID: 1185 (code=exited, status=1/FAILURE)
CPU: 102ms
Das Zulu hab ich installiert und den Pfad exportiert.
java --version funktioniert.
debian@BeagleBone:/usr$ java --version
openjdk 17.0.9 2023-10-17 LTS
OpenJDK Runtime Environment Zulu17.46+19-CA (build 17.0.9+8-LTS)
OpenJDK Server VM Zulu17.46+19-CA (build 17.0.9+8-LTS, mixed mode)
Aber openhab findet es leider nicht. Was kann ich dagegen tun?
debian@BeagleBone:/usr$ sudo apt-get install openhab
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
openjdk-17-jre | java17-runtime | java17-runtime-headless | zulu17-jdk | temurin-17-jdk
The following NEW packages will be installed:
openhab
0 upgraded, 1 newly installed, 0 to remove and 65 not upgraded.
Need to get 0 B/110 MB of archives.
After this operation, 123 MB of additional disk space will be used.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "de_DE.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package openhab.
(Reading database ... 56869 files and directories currently installed.)
Preparing to unpack .../openhab_4.1.1-1_all.deb ...
Unpacking openhab (4.1.1-1) ...
Setting up openhab (4.1.1-1) ...
[openHAB] WARNING: We were unable to detect Java 17 on your system. This is needed before openHAB can be started.
[openHAB] Please install the current version of Java 17 or check the openHAB documentation for details.
[openHAB] Running JSON Database upgrade tool (${OPENHAB_RUNTIME}/bin/upgradetool.jar).
/var/lib/dpkg/info/openhab.postinst: 300: java: not found
[openHAB] WARNING: internal database upgrade tool failed.
[openHAB] please check the openHAB website (www.openhab.org) for upgrade requirements.
[openHAB] openHAB was not running so will not start after upgrade.
[openHAB] Please use the command:
sudo /bin/systemctl start openhab.service
Edit:
Hab den Pfad mittels visodo hinzugefügt. sudo java --version geht jetzt auch, falls das das Problem war.
Aber
debian@BeagleBone:~$ sudo systemctl status openhab.service
● openhab.service - openHAB - empowering the smart home
Loaded: loaded (/usr/lib/systemd/system/openhab.service; disabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Tue 2024-01-09 11:42:25 UTC; 3s ago
Docs: https://www.openhab.org/docs/
https://community.openhab.org
Process: 1185 ExecStart=/usr/share/openhab/runtime/bin/karaf ${OPENHAB_STARTMODE} (code=exited, status=1/FAILURE)
Main PID: 1185 (code=exited, status=1/FAILURE)
CPU: 102ms