Unifi Controller on Ubuntu 16

Leigh Kalbli
Leigh Kalbli used Ask the Experts™
on
Installed Ubuntu 16.04 LTS and trying to install Unifi Controller for our switches.

I get the following error. Still new to linux side.  Any thoughts?


Capture.PNG
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
Capture.PNG

Author

Commented:
Here is journalctl -p err -b.  For some reason it wont let me see logs.  Im logged in as the only admin.

Capture.PNG
log.PNG

Author

Commented:
when running sudo journalctl -p err -b it lookgs like the output is nearly the same.  Capture.PNG
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
I will have to look deeper into your last comment. Since I am unable to get to the path because of the permissions, I dont know the name of the log files that would be present there.

Author

Commented:
Capture.PNG
Prabhin MPDevOps Engineer
Distinguished Expert 2018

Commented:
can you remove existing package and try to install in same manner which is explained in the following link
https://jcutrer.com/howto/networking/ubnt/install-unifi-controller-on-ubuntu-linux

Author

Commented:
I would like to stay clear of installing the older version. Thanks .

Author

Commented:
Martyn,
I prefer to diagnose the problem. Since the decision was made to run the Unifi Controller on Ubuntu, and i will be the one that has to support it, uninstalling and reinstalling does no good to me. I typed the above command. After that nothing is displayed.  Did i miss a step.

Capture.PNG

Author

Commented:
https://help.ubnt.com/hc/en-us/articles/220066768-UniFi-How-to-Install-Update-via-APT-on-Debian-or-Ubuntu  is what i followed.  Ironically, i install the Unifi Camera Server on Ubuntu 16.04 TLS with no issue.  I can, as you said try to uninstall or reinstall or even a new VM. We had already installed the Unifi Controller for switchers to a Server 2012 VM but decided to migrate it to Ubuntu. So, this is not mission or time critical.

Author

Commented:
Yes it was installed.

Capture.PNG

Author

Commented:
Yes the VM is running on Dell R630 Power Eddge servers on vCenter 6.7  I looked in /etc and see no folder for unifi or no standalone file.

Author

Commented:
Separate note, i am going to create a second VM as well.

Author

Commented:
After  running /usr/lib/unifi/bin/unifi.init start i get "starting ubiquiti contoller unifi cannot locate Java Home"  As you reference java being a problem, i thing this may be a critical piece linking the issue.  I will double check that java is correctly installed.  Thank you for your help
Fractional CTO
Distinguished Expert 2018
Commented:
https://help.ubnt.com/hc/en-us/articles/115003151108-UniFi-How-to-Configure-a-Debian-Ubuntu-Controller-to-use-Oracle-Java good overview. Click links in this doc for more detail.

Be sure the correct JRE version is installed + setup in Unifi config files (per article).

Author

Commented:
David,

Thank you for the link.  I get this:

Capture.PNG

Author

Commented:
I reached out to a friend who is more well versed than me and he was able to resolve the issue with Java that caused the problem.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial