UniFi controller: unable to start ace.jar

After installing UniFi controller on a Ubuntu12 server (nostalgic) following these steps, it was unable to start for no explainable reason. The error I found in /var/log/unifi/server.log was:

<UniFi> ERROR system - [exec] error, rc=255, cmdline=[/usr/lib/jvm/java-8-oracle/jre/bin/java, -Dfile.encoding=UTF-8, -Djava.awt.headless=true, -Dapple.awt.UIElement=true, -Xmx1024M, -XX:ErrorFile=/usr/lib/unifi/logs/hs_err_pid%p.log, -jar, /usr/lib/unifi/lib/ace.jar, start]

Not really explaining…

But that seemed a normal command, just with parameters separated with comma. So by manually running:

/usr/lib/jvm/java-8-oracle/jre/bin/java -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Dapple.awt.UIElement=true -Xmx1024M -XX:ErrorFile=/usr/lib/unifi/logs/hs_err_pid%p.log -jar /usr/lib/unifi/lib/ace.jar start

I was able to get a meaningful error message: unable to bind port 8080. And was of course my fault, because another service was listening on that port.

Header photo  by Julien DI MAJO on Unsplash

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

Solve : *
19 − 15 =

Questo sito usa Akismet per ridurre lo spam. Scopri come i tuoi dati vengono elaborati.