On 2020-11-24 9:12 a.m., James Knott wrote:
On 2020-11-24 8:24 a.m., Herbert Graeber wrote:
Nov 23 13:37:18 linux systemd[1836]: unifi.service: Failed at step EXEC spawning /usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/jre/bin/java: No such file or directory You need package java-1_8_0-openjdk-headless
Looks my Requirement of "jre-headless = 1.8.0" is not sufficient. The Unifi controller needs Java8, nothing newer.
I have both 8 & 9 headless installed. I'll try removing 9 and see what happens.
Here's the result: * unifi.service - unifi Loaded: loaded (/usr/lib/systemd/system/unifi.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Tue 2020-11-24 09:15:12 EST; 24s ago Process: 10084 ExecStart=/usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/jre/bin/java -Xmx1024M -jar /usr/lib/unifi/lib/ace.jar start (code=exited, status=203/EXEC) Process: 10082 ExecStartPre=/usr/lib/unifi/bin/import-cert (code=exited, status=0/SUCCESS) Main PID: 10084 (code=exited, status=203/EXEC) Nov 24 09:15:12 linux systemd[1]: Starting unifi... Nov 24 09:15:12 linux systemd[1]: Started unifi. Nov 24 09:15:12 linux systemd[10084]: unifi.service: Failed to execute command: No such file or directory Nov 24 09:15:12 linux systemd[10084]: unifi.service: Failed at step EXEC spawning /usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/jre/bin/java: No such file or directory Nov 24 09:15:12 linux systemd[1]: unifi.service: Main process exited, code=exited, status=203/EXEC Nov 24 09:15:12 linux systemd[1]: unifi.service: Unit entered failed state. Nov 24 09:15:12 linux systemd[1]: unifi.service: Failed with result 'exit-code'.