How to install the Ubiquiti UniFi Controller on Debian 9.1
-
@ccwtech said in How to install the Ubiquiti UniFi Controller on Debian 9.1:
root@UBNT_Controller:~# service unifi status
● unifi.service - unifi
Loaded: loaded (/lib/systemd/system/unifi.service; enabled; vendor preset: en
Active: active (running) since Sun 2017-12-17 19:56:30 UTC; 1h 45min ago
Main PID: 15614 (jsvc)
CGroup: /system.slice/unifi.service
├─15614 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-openjdk-a
├─15616 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-openjdk-a
├─15617 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-openjdk-a
├─15628 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -Xmx1024M -XX:
└─16476 bin/mongod --dbpath /usr/lib/unifi/data/db --port 27117 --uniDec 17 19:56:29 UBNT_Controller systemd[1]: Starting unifi...
Dec 17 19:56:30 UBNT_Controller unifi.init[15558]: Starting Ubiquiti UniFi Control
Dec 17 19:56:30 UBNT_Controller systemd[1]: Started unifi.Wat about this now
netstat -ano | grep listening
-
@ccwtech said in How to install the Ubiquiti UniFi Controller on Debian 9.1:
root@UBNT_Controller:~# service unifi status
● unifi.service - unifi
Loaded: loaded (/lib/systemd/system/unifi.service; enabled; vendor preset: en
Active: active (running) since Sun 2017-12-17 19:56:30 UTC; 1h 45min ago
Main PID: 15614 (jsvc)
CGroup: /system.slice/unifi.service
├─15614 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-openjdk-a
├─15616 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-openjdk-a
├─15617 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-openjdk-a
├─15628 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -Xmx1024M -XX:
└─16476 bin/mongod --dbpath /usr/lib/unifi/data/db --port 27117 --uniDec 17 19:56:29 UBNT_Controller systemd[1]: Starting unifi...
Dec 17 19:56:30 UBNT_Controller unifi.init[15558]: Starting Ubiquiti UniFi Contr
Dec 17 19:56:30 UBNT_Controller systemd[1]: Started unifi.Also it looks like it is running.
-
@dbeato said in How to install the Ubiquiti UniFi Controller on Debian 9.1:
netstat -ano | grep listening
No output from that command.
-
@ccwtech said in How to install the Ubiquiti UniFi Controller on Debian 9.1:
@dbeato said in How to install the Ubiquiti UniFi Controller on Debian 9.1:
netstat -ano | grep listening
No output from that command.
Sorry it should benetstat -plnt
-
Also your Vultr firewall should have the following ports open:
-
root@UBNT_Controller:~# netstat -plnt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:27117 0.0.0.0:* LISTEN 16476/bin/mongod
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 334/sshd
tcp 0 0 127.0.0.1:27017 0.0.0.0:* LISTEN 13860/mongod
tcp6 0 0 :::8843 :::* LISTEN 15628/java
tcp6 0 0 :::8880 :::* LISTEN 15628/java
tcp6 0 0 :::8080 :::* LISTEN 15628/java
tcp6 0 0 :::22 :::* LISTEN 334/sshd
tcp6 0 0 :::8443 :::* LISTEN 15628/java
tcp6 0 0 :::6789 :::* LISTEN 15628/java
root@UBNT_Controller:~#Looking at the firewall now.
-
@ccwtech said in How to install the Ubiquiti UniFi Controller on Debian 9.1:
root@UBNT_Controller:~# netstat -plnt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:27117 0.0.0.0:* LISTEN 16476/bin/mongod
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 334/sshd
tcp 0 0 127.0.0.1:27017 0.0.0.0:* LISTEN 13860/mongod
tcp6 0 0 :::8843 :::* LISTEN 15628/java
tcp6 0 0 :::8880 :::* LISTEN 15628/java
tcp6 0 0 :::8080 :::* LISTEN 15628/java
tcp6 0 0 :::22 :::* LISTEN 334/sshd
tcp6 0 0 :::8443 :::* LISTEN 15628/java
tcp6 0 0 :::6789 :::* LISTEN 15628/java
root@UBNT_Controller:~#Looking at the firewall now.
Ports are opened internally.
-
@dbeato Working great now! Thanks.
-
@ccwtech said in How to install the Ubiquiti UniFi Controller on Debian 9.1:
@dbeato Working great now! Thanks.
Awesome! Glad to help!
-
@dbeato
Thought I was okay, but can't log in using http, just https.It's causing a problem when I try to set the AP's to look to the vultr IP for the controller.
-
@ccwtech said in How to install the Ubiquiti UniFi Controller on Debian 9.1:
@dbeato
Thought I was okay, but can't log in using http, just https.It's causing a problem when I try to set the AP's to look to the vultr IP for the controller.
You only login through https, your manually register the APs via port 8080.
-
@ccwtech said in How to install the Ubiquiti UniFi Controller on Debian 9.1:
@dbeato
Thought I was okay, but can't log in using http, just https.It's causing a problem when I try to set the AP's to look to the vultr IP for the controller.
set-inform http://ip-of-controller:8080/inform
-
I SSH'ed into the AP
typed:
mca-cli
set-inform http://xx.xx.xx.xx:8080/informThen
info
I get "Unable to resolve (http://unifi:8080/inform)"
-
Works after FW upgrade.
-
@ccwtech said in How to install the Ubiquiti UniFi Controller on Debian 9.1:
Works after FW upgrade.
Strange
-
Question:
At a colo: I have a Cloud Key, I want to "move" the controller (off the CK) to a vm.
I've followed @JaredBusch install guideWhat's the proper procedure to make this move in the right order?
-
@fateknollogee said in How to install the Ubiquiti UniFi Controller on Debian 9.1:
Question:
At a colo: I have a Cloud Key, I want to "move" the controller (off the CK) to a vm.
I've followed @JaredBusch install guideWhat's the proper procedure to make this move in the right order?
- Get everything on the same version
- Make a backupmfrom the cloud key and download it.
- Restore the backup to the VM.
-
@jaredbusch Thx, will give that a go!
-
Thinking out loud here...
This Controller vm is behind a firewall (aka Unifi USG4)...is that a good strategy? -
@fateknollogee said in How to install the Ubiquiti UniFi Controller on Debian 9.1:
firewall (aka Unifi USG4)...is that a good strategy?
As long as you open the ports needed it should not be an issue.