SOLVED Anybody successfully install Unifi6 from ports?

ThreeDee

Guru
Joined
Jun 13, 2013
Messages
700
unifi6 can now be installed via packages ..Thanks Jailer for the heads up! ..go here:








I thought about hijacking the other thread that had to do with this topic but decided that maybe it was best to start my own ..

I've tried installing unifi6 from ports .. man does that take a long time ... with a plethora of "ok" clicks/options throughout

but .. in the end, a no go.

I currently have unifi5 working just peachy in a 12.2 jail .. but I guess I'm doing something wrong trying to get unifi6 going.

Any success stories and/or tips/pointers from anyone?

it's odd that ports being deprecated, yet has new version of unifi controller and pkg does not ... :confused:

I figured out my silly mistake .. the following worked

Create a NEW jail using advanced
Name it whatever.. I selected 12.2 jail
I checked VNET and BPF
vnet_default_interface = auto
IPv4 Interface = vnet0
IPv4 Adress = whatever matches your network
IPv4 Netmask = whatever matches your network .. probably 24 for most
IPv4 Default Router = Gateway address

Code:
pkg update
pkg install subversion
svn checkout https://svn.FreeBSD.org/ports/head /usr/ports
cd /usr/ports/net-mgmt/unifi6/ && make install clean
sysrc unifi_enable=YES
service unifi start


Thanks Jailer for the tips!
 
Last edited:

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
portsnap has been deprecated. You'll have to use svn or git to update the ports tree.
 

ChrisChros

Patron
Joined
Nov 24, 2018
Messages
218
@Jailer how do I use svn or git instead of portsnap to update the tree?
 

ThreeDee

Guru
Joined
Jun 13, 2013
Messages
700

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
The port has been updated and it looks like there is a package available now for unifi6. I've tried to install it but it still says it's not available. Give it a couple days and I'm sure it will be available for download and install.
I used that and freshports ..both of which I think it was you that linked to them in the other Unifi thread .. I don't know what I'm doing wrong
Use the subversion method outlined in the manual.
 

ThreeDee

Guru
Joined
Jun 13, 2013
Messages
700
ahh .. well I'll give that a shot, thanks!
 

ThreeDee

Guru
Joined
Jun 13, 2013
Messages
700
still no go .. ah well
 

ThreeDee

Guru
Joined
Jun 13, 2013
Messages
700
well .. I feel dumb
Code:
sysrc unifi_enable=YES
service unifi start


coming up now .. sheesh :rolleyes:
 

ChrisChros

Patron
Joined
Nov 24, 2018
Messages
218
If I trie to use the Subversion Method I receive to followed error message.
Code:
/!\ ERROR: /!\

Ports Collection support for your FreeBSD version has ended, and no ports are
guaranteed to build on this system. Please upgrade to a supported release.

No support will be provided if you silence this message by defining
ALLOW_UNSUPPORTED_SYSTEM.

*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/subversion


Jail Release is 12.1-RELEASE-p13.
 

ThreeDee

Guru
Joined
Jun 13, 2013
Messages
700
try a 12.2 jail? .. testing again in a 12.2 jail and it's installing without any errors .. I'll try a 12.1 test jail ..

incidentally .. I neglected to include a step after "pkg install subversion" .. I'm going through all the hodge podge commands I did and seeing what I missed ... as I'm just pulling stuff from 3 different sources:

alrighty .. figured out what I missed (updated commands) ..and now I'll do another test jail using 12.1
 
Last edited:

ThreeDee

Guru
Joined
Jun 13, 2013
Messages
700
If I trie to use the Subversion Method I receive to followed error message.
Code:
/!\ ERROR: /!\

Ports Collection support for your FreeBSD version has ended, and no ports are
guaranteed to build on this system. Please upgrade to a supported release.

No support will be provided if you silence this message by defining
ALLOW_UNSUPPORTED_SYSTEM.

*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/subversion


Jail Release is 12.1-RELEASE-p13.
12.1 jail is installing without errors .. are you creating a new jail or trying to update an existing one?

..and incidentally .. I am running TrueNAS-12.0-U2.1
 

ChrisChros

Patron
Joined
Nov 24, 2018
Messages
218
I tried to update an existing jail.
now after update the jail to 12.2 it's running without problems.
 

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
[/QUOTE]
I figured out my silly mistake .. the following worked

Create a NEW jail using advanced
Name it whatever.. I selected 12.2 jail
I checked VNET and BPF
vnet_default_interface = auto
IPv4 Interface = vnet0
IPv4 Adress = whatever matches your network
IPv4 Netmask = whatever matches your network .. probably 24 for most
IPv4 Default Router = Gateway address

Code:
pkg update
pkg install subversion
svn checkout https://svn.FreeBSD.org/ports/head /usr/ports
cd /usr/ports/net-mgmt/unifi6/ && make install clean
sysrc unifi_enable=YES
service unifi start


Thanks Jailer for the tips!
[/QUOTE]

I followed the above and Unifi6 installed fine in a new jail in 12.0-U2.1 - thanks for the help!

My Unifi5 jail's still running and in control of my 2 UAP-AC-PRO's, so time to move the AP's over...

So far I have failed, and in the process seem to have bricked one of the two AP's (to the point that the TFTP Rescue process has so far failed to recover it). So I have ordered a replacement that's to be here next week and I am trying to get myself ready for a successful changeover.

Reading the docs: I should first have the existing (Unifi5) controller forget the two AP's that it is controlling, at which point I assume that I should turn that controller off (stop its jail). Then, when I start the Unifi 6 jail, thus starting the new controller, the two AP's should show up as available for adoption. What happened for me is that indeed they showed up, but were indicated as "Disconnected" and I could not find how to get them to the adoption-ready state.

I must be doing something wrong - something I do not understand about the process. Actually it seems "a bit opaque" and I have not been able to find a clear (enough) explanation to equip me to figure it out.

As I presently have a functioning wireless network supplying TV's, cellphones and laptops (and a resultant happy wife) I won't experiment further until I have the new AP in hand...

Any help, tips, advice, etc., gratefully received.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
It should just be a matter of backing up the database in the unifi5 jail and then restoring it in the unifi6 jail. That's all it took when I moved my controller install from my windows desktop to a FreeNAS jail.
 

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
It should just be a matter of backing up the database in the unifi5 jail and then restoring it in the unifi6 jail. That's all it took when I moved my controller install from my windows desktop to a FreeNAS jail.
Thanks. Sounds logical as I assume that would have all the configuration. I'll take a look.
 

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
@Jailer , is that backup made using the "Backup" function found on the "Settings" page in the Unifi Controller S/W - to get a .unf file?
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
Thanks, Jailer. When I have a backup device I'll go for it.
 

RobinDel

Cadet
Joined
Jul 30, 2022
Messages
7
I tried to follow step by step the installation but problem here :

1659187874239.png
 
Top