ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    How to install the Ubiquiti UniFi Controller on Debian 9.1

    Scheduled Pinned Locked Moved IT Discussion
    unifiunifi controllerubntubiquitiinstall guidedebian 9.1
    73 Posts 13 Posters 23.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • hobbit666H
      hobbit666
      last edited by

      SOLVED!!!!
      Changed the router, firewall must of been blocking.

      1 Reply Last reply Reply Quote 1
      • CCWTechC
        CCWTech
        last edited by CCWTech

        When using Vultr is it just https://unifi.hostname.vultr.com:8443 ?

        dbeatoD 1 Reply Last reply Reply Quote 0
        • dbeatoD
          dbeato @CCWTech
          last edited by

          @ccwtech said in How to install the Ubiquiti UniFi Controller on Debian 9.1:

          When using Vultr is it just https:\unifi.hostname.vultr.com:8443 ?

          If you have a vultr hostname then yes, otherwise you create a DNS record pointing to your Vultr WAN IP.

          1 Reply Last reply Reply Quote 1
          • CCWTechC
            CCWTech
            last edited by CCWTech

            Ok, in the meantime I'm trying https://unifi.xx.xx.xx.xx:8443 and not getting anything. Shouldn't that work?

            dbeatoD 2 Replies Last reply Reply Quote 0
            • dbeatoD
              dbeato @CCWTech
              last edited by

              @ccwtech said in How to install the Ubiquiti UniFi Controller on Debian 9.1:

              Ok, in the meantime I'm trying https://unifi.xx.xx.xx.xx:8443 and not getting anything. Shouldn't that work?

              It should as long as Unifi service is started, ports listening internally and Vultr fireewall allowing it.

              1 Reply Last reply Reply Quote 1
              • dbeatoD
                dbeato @CCWTech
                last edited by

                @ccwtech said in How to install the Ubiquiti UniFi Controller on Debian 9.1:

                Ok, in the meantime I'm trying https://unifi.xx.xx.xx.xx:8443 and not getting anything. Shouldn't that work?

                @ccwtech said in How to install the Ubiquiti UniFi Controller on Debian 9.1:

                Ok, in the meantime I'm trying https://unifi.xx.xx.xx.xx:8443 and not getting anything. Shouldn't that work?

                What is the result of the following:

                Service unifi status
                
                
                CCWTechC 1 Reply Last reply Reply Quote 1
                • CCWTechC
                  CCWTech @dbeato
                  last edited by

                  @dbeato

                  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 --uni

                  Dec 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.

                  dbeatoD 2 Replies Last reply Reply Quote 0
                  • dbeatoD
                    dbeato @CCWTech
                    last edited by

                    @ccwtech said in How to install the Ubiquiti UniFi Controller on Debian 9.1:

                    @dbeato

                    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 --uni

                    Dec 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

                    CCWTechC 1 Reply Last reply Reply Quote 0
                    • dbeatoD
                      dbeato @CCWTech
                      last edited by

                      @ccwtech said in How to install the Ubiquiti UniFi Controller on Debian 9.1:

                      @dbeato

                      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 --uni

                      Dec 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.

                      1 Reply Last reply Reply Quote 1
                      • CCWTechC
                        CCWTech @dbeato
                        last edited by

                        @dbeato said in How to install the Ubiquiti UniFi Controller on Debian 9.1:

                        netstat -ano | grep listening

                        No output from that command.

                        dbeatoD 1 Reply Last reply Reply Quote 0
                        • dbeatoD
                          dbeato @CCWTech
                          last edited by

                          @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 be

                          
                          netstat  -plnt
                          
                          1 Reply Last reply Reply Quote 1
                          • dbeatoD
                            dbeato
                            last edited by dbeato

                            Also your Vultr firewall should have the following ports open:

                            0_1513547681500_8AAAF992-723F-4BF9-8773-7DA26BB00399.jpeg

                            1 Reply Last reply Reply Quote 1
                            • CCWTechC
                              CCWTech
                              last edited by

                              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.

                              dbeatoD 1 Reply Last reply Reply Quote 0
                              • dbeatoD
                                dbeato @CCWTech
                                last edited by

                                @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.

                                CCWTechC 1 Reply Last reply Reply Quote 1
                                • CCWTechC
                                  CCWTech @dbeato
                                  last edited by

                                  @dbeato Working great now! Thanks.

                                  dbeatoD 1 Reply Last reply Reply Quote 0
                                  • dbeatoD
                                    dbeato @CCWTech
                                    last edited by

                                    @ccwtech said in How to install the Ubiquiti UniFi Controller on Debian 9.1:

                                    @dbeato Working great now! Thanks.

                                    Awesome! Glad to help!

                                    CCWTechC 1 Reply Last reply Reply Quote 1
                                    • CCWTechC
                                      CCWTech @dbeato
                                      last edited by

                                      @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.

                                      0_1513553399882_Capture4.JPG

                                      dbeatoD 2 Replies Last reply Reply Quote 0
                                      • dbeatoD
                                        dbeato @CCWTech
                                        last edited by

                                        @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.

                                        0_1513553399882_Capture4.JPG

                                        You only login through https, your manually register the APs via port 8080.

                                        1 Reply Last reply Reply Quote 0
                                        • dbeatoD
                                          dbeato @CCWTech
                                          last edited by

                                          @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.

                                          0_1513553399882_Capture4.JPG

                                          set-inform http://ip-of-controller:8080/inform
                                          
                                          1 Reply Last reply Reply Quote 1
                                          • CCWTechC
                                            CCWTech
                                            last edited by

                                            I SSH'ed into the AP

                                            typed:
                                            mca-cli
                                            set-inform http://xx.xx.xx.xx:8080/inform

                                            Then

                                            info

                                            I get "Unable to resolve (http://unifi:8080/inform)"

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 3 / 4
                                            • First post
                                              Last post