Guide: How to run UniFi Controller on the Firewalla Gold (beta)

Follow

Comments

11 comments

  • Avatar
    Blake

    Is there something that should be done after step 1 and before step 2?  I tried running the command in step 2 and got the following error:

    Error: No such network: unifi_default

    Error: any valid prefix is expected rather than "null".

    0
    Comment actions Permalink
  • Avatar
    Blake

    So I got this figured out today and Unifi Controller is up and running.  Here's what I didn't know and the guide didn't make entirely clear.  Probably bc this guide is for Pros, which I am not.

    After step 1 you need to run the following command: docker-compose up -d

    Once the compose file is executed and the container is pulled you can move onto Step 2.

    I misinterpreted step 3 as needing to manually create a file containing those 2 commands and place it into a directory.  What it really means is just run those 2 commands making sure you replace the GOLD_LAN_IP with your Gold's IP address.  Once I did that I was able to get to the Controller setup wizard.

    The last hurdle is that I wasn't able to use my Ubiquiti account to create the Site in this controller, so what you have to do is to create a local account.  I can't remember what you click to do that, but it's not hard to find.

    Now, that I did all of that I was able to get into the controller and my switches were there and adoptable.

    If you are a complete n00b like me hopefully this helps.

    1
    Comment actions Permalink
  • Avatar
    Michael Bierman

    Thanks, Blake!

    I would say step 3 is not a typical way for documentation to show that those are shell commands, so I made many of the same assumptions you did. Something like this might be better. 

    $ echo address=/unifi/[GOLD_LAN_IP] > ~/.firewalla/config/dnsmasq_local/unifi

    # Restart DNS Service

    $ sudo systemctl restart firerouter_dns


    Now I have the unifi controller running on FWGold! I'm thinking I may hold off migrating from the controller I have on my Synology to allow FW to harden the release a bit more. But it is great to know I can consolidate if I want to. 

    0
    Comment actions Permalink
  • Avatar
    Support Team

    @Blake

    Updated the doc that you don't have to run command docker-compose up -d, sudo systemctl start docker-compose@unifi will do everything.

     

    @Michael

    Updated the doc!

     

    1
    Comment actions Permalink
  • Avatar
    Zach Schramm

    Now that Blue Plus contains docker support, will this become available on those as well?

     

    0
    Comment actions Permalink
  • Avatar
    Support Team

    Yes, there will be a separate doc on Blue Plus.

    0
    Comment actions Permalink
  • Avatar
    Blake

    So I had to reboot my firewalla and attempted to follow this guide again and I can't get the controller functioning.  I even removed everything I could find related to unif and run through the process and I can't get to the controller by using my LAN IP.  When I try to run the compose command I get this error:

    ERROR: for unifi  Cannot start service unifi: Invalid address 172.16.1.2: It does not belong to any of this network's subnets

    I'm pretty sure you updated the guide since the first time I went through it and I can't figure out what all changed to troubleshoot.  Any help would be appreciated.

    0
    Comment actions Permalink
  • Avatar
    Michael Bierman

    Did you check steps 2 & 3 which aren't permanent ?

    0
    Comment actions Permalink
  • Avatar
    Blake

    Yes, I completed steps 2 and 3 again.  I went through the whole thing, and then when I tried to reach the controller it failed to load the page.  It says failed to reach the server.

    0
    Comment actions Permalink
  • Avatar
    Support

    @Blake Try sudo docker network rm unifi_default and then sudo docker-compose up -d

    If not working, sudo docker-compose down and start over again.

    1
    Comment actions Permalink
  • Avatar
    Blake

    That worked!  So I ran the first command, then moved to the docker unifi directory and ran the second command.  Then I completed step 2 and 3 of the guide again and I can finally get to the controller.  I had to setup a new local admin account and couldn't use my UI account but I'm in.  Thanks.

    1
    Comment actions Permalink

Please sign in to leave a comment.