Link to home
Start Free TrialLog in
Avatar of kennygeorge
kennygeorgeFlag for United States of America

asked on

Can't get AWS EC2 to be able to install Unifi Controller

I've installed a version of the Unifi Controller to the AWS cloud before, but it's been over 6 months. I went to install a second, built my EC2 on AWS as per the instructions, but then I couldn't get the UNIX commands to work after install. It was flawless before. I'm not getting anywhere with searching on the error.

Here's the command from the instructions that fails after launching the instance:

Once you connect to the Server and are greeted with the Ubuntu Command Line Interface (CLI), do the following:
5.1. Add the Ubiquiti repository to /etc/apt/sources.list:
echo "deb http://www.ubnt.com/downloads/unifi/debian stable ubiquiti" | sudo tee -a /etc/apt/sources.list

HERE's what I get...

Complete!
[ec2-user@ip-172-31-22-106 ~]$ echo "deb http://www.ubnt.com/downloads/unifi/debian stable ubiquiti" | sudo tee -a /etc/apt/sources.list
tee: /etc/apt/sources.list: No such file or directory
deb http://www.ubnt.com/downloads/unifi/debian stable ubiquiti

The instructions are found at:  https://help.ubnt.com/hc/en-us/articles/209376117-UniFi-Install-a-UniFi-Cloud-Controller-on-Amazon-Web-Services

Has anyone RECENTLY gotten the Unifi Controller installed on AWS?  I didn't even get to the point of installing the controller. Just made it to the point where it would pull it down.

Thanks,
Ken
Avatar of ArneLovius
ArneLovius
Flag of United Kingdom of Great Britain and Northern Ireland image

What AMI did you use ?
Avatar of kennygeorge

ASKER

I tried both the regular Amazon Linux AMI as instructed, then tried Amazon Linux 2.
ASKER CERTIFIED SOLUTION
Avatar of ArneLovius
ArneLovius
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Wow, how did I miss this?  I only read AMI and picked the first one.  Dumb, Dumb!
The Step 5 of the controller setup has this note at the top:  
NOTES: The UniFi Controller does not support Java 9 yet. Amazon EC2 now installs with Java 9, so to ensure compatibility you must uninstall Java 9 and install Java 8 for the system to run properly.

How do I do this?  Any link or ideas?
I would suggest checking which version of java is installed with the command

java -version

Open in new window


If java 9 is installed, you should be able to uninstall it with

sudo apt-get purge java*

Open in new window


For installing Java 8 https://launchpad.net/~webupd8team/+archive/ubuntu/java