FreeNAS 11 unifi install in jail?

Status
Not open for further replies.

biggyk

Contributor
Joined
Nov 25, 2015
Messages
138
Has anyone done this? I got it to work in 9.10 but in 11 when I use "make clean install" it says the version doesn't match and I can't go further. Almost makes me just want to buy a cloud key or install it in my Ubuntu vm.

Sent from my ONEPLUS A3000 using Tapatalk
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
install it in my Ubuntu vm.
Why don't you want to do that? Seems like the easiest solution, if you already have a Ubuntu VM set up.
 

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
Doing a run through before I post it. When I do, I'll post it in the resources section at some point tonight. I'll then maybe do a video when I get the chance.
 

biggyk

Contributor
Joined
Nov 25, 2015
Messages
138
After leaving it installing a couple hours I came back to this and can't start it.

Came back after a few hours and saw these errors. Tried to start it but it cant

root@unifi_1:/usr/ports/net-mgmt/unifi5 #
Creating Makefile ...
Creating directory list ../shared_dirs.lst
root@unifi_1:/usr/ports/net-mgmt/unifi5 # Creating flags.make ...
Creating Makefile ...
Creating flags_vm.make ...
Creating vm.make ...
Creating adlc.make ...
Creating jvmti.make ...
Creating trace.make ...
Creating sa.make ...
Creating dtrace.make ...
gmake[10]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot/bsd_amd64_compiler2/debug'
gmake[10]: Entering directory '/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot/bsd_amd64_compiler2/fastdebug'
INFO: ENABLE_FULL_DEBUG_SYMBOLS=0
Creating Makefile ...
Creating flags.make ...
Creating flags_vm.make ...
Creating vm.make ...
Creating adlc.make ...
Creating jvmti.make ...
Creating trace.make ...
Creating: Command not found.
Creating sa.make ...
root@unifi_1:/usr/ports/net-mgmt/unifi5 # Creating dtrace.make ...
Creating directory list ../shared_dirs.lst
gmake[10]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot/bsd_amd64_compiler2/fastdebug'
gmake[10]: Entering directory '/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot/bsd_amd64_compiler2/optimized'
INFO: ENABLE_FULL_DEBUG_SYMBOLS=0
Creating Makefile ...
Creating flags.make ...
Creating flags_vm.make ...
Creating: Command not found.
Creating vm.make ...
Creating adlc.make ...
root@unifi_1:/usr/ports/net-mgmt/unifi5 # Creating flags.make ...
Creating jvmti.make ...
Creating trace.make ...
Creating sa.make ...
Creating dtrace.make ...
gmake[10]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot/bsd_amd64_compiler2/optimized'
gmake[10]: Entering directory '/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot/bsd_amd64_compiler2/product'
INFO: ENABLE_FULL_DEBUG_SYMBOLS=0
Creating: Command not found.
Creating Makefile ...
Creating flags.make ...
root@unifi_1:/usr/ports/net-mgmt/unifi5 # Creating flags_vm.make ...
Creating flags_vm.make ...
Creating vm.make ...
Creating adlc.make ...
Creating jvmti.make ...
Creating: Command not found.
Creating trace.make ...
Creating sa.make ...
root@unifi_1:/usr/ports/net-mgmt/unifi5 # Creating vm.make ...
Creating dtrace.make ...
gmake[10]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot/bsd_amd64_compiler2/product'
gmake[9]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot'
gmake[9]: Entering directory '/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot/bsd_amd64_compiler2/product'
gmake[10]: Entering directory '/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot/bsd_amd64_compiler2/product'
gmake[10]: *** No rule to make target '/usr/ports/java/openjdk8/work/openjdk/hotspot/src/cpu/amd64/vm/x86_64.ad', needed by '../generated/adfiles/bsd_x86_64.ad'. Stop.
Creating: Command not found.
root@unifi_1:/usr/ports/net-mgmt/unifi5 # Creating adlc.make ...
gmake[10]: *** Waiting for unfinished jobs....
gmake[10]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot/bsd_amd64_compiler2/product'
gmake[9]: *** [/usr/ports/java/openjdk8/work/openjdk/hotspot/make/bsd/makefiles/top.make:91: ad_stuff] Error 2
gmake[9]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot/bsd_amd64_compiler2/product'
Creating: Command not found.
gmake[8]: *** [/usr/ports/java/openjdk8/work/openjdk/hotspot/make/bsd/Makefile:294: product] Error 2
gmake[8]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot'
gmake[7]: *** [Makefile:231: generic_build2] Error 2
root@unifi_1:/usr/ports/net-mgmt/unifi5 # Creating jvmti.make ...
gmake[7]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/hotspot/make'
gmake[6]: *** [Makefile:177: product] Error 2
gmake[6]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/hotspot/make'
Creating: Command not found.
gmake[5]: *** [HotspotWrapper.gmk:45: /usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot/_hotspot.timestamp] Error 2
gmake[5]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/make'
root@unifi_1:/usr/ports/net-mgmt/unifi5 # Creating trace.make ...
gmake[4]: *** [/usr/ports/java/openjdk8/work/openjdk//make/Main.gmk:113: hotspot-only] Error 2
gmake[4]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Creating: Command not found.
Stop.
make[3]: stopped in /usr/ports/java/openjdk8
*** Error code 1

root@unifi_1:/usr/ports/net-mgmt/unifi5 # Creating sa.make ...
Stop.
make[2]: stopped in /usr/ports/devel/maven3
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/archivers/snappy-java
*** Error code 1

Stop.
Creating: Command not found.
make: stopped in /usr/ports/net-mgmt/unifi5
root@unifi_1:/usr/ports/net-mgmt/unifi5 # sysrc unifi_enable=YES
root@unifi_1:/usr/ports/net-mgmt/unifi5 # Creating dtrace.make ...
unifi_enable: -> YES
root@unifi_1:/usr/ports/net-mgmt/unifi5 # service unifi start
unifi does not exist in /etc/rc.d or the local startup
directories (/usr/local/etc/rc.d), or is not executable

Also 11gb is a heck of a lot for UniFi controller. I think it was much less in Ubuntu but if I don't have to run Ubuntu I wouldn't.

Sent from my ONEPLUS A3000 using Tapatalk
 

biggyk

Contributor
Joined
Nov 25, 2015
Messages
138
Just checked and yes everything is default. I just named it when I added it. NAT is unchecked.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
I'm getting something similar. Clean jail on 11-RELEASE:
Code:
gmake[10]: Entering directory '/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot/bsd_amd64_compiler2/product'
gmake[10]: *** No rule to make target '/usr/ports/java/openjdk8/work/openjdk/hotspot/src/cpu/amd64/vm/x86_64.ad', needed by '../generated/adfiles/bsd_x86_64.ad'.  Stop.
gmake[10]: *** Waiting for unfinished jobs....
gmake[10]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot/bsd_amd64_compiler2/product'
gmake[9]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot/bsd_amd64_compiler2/product'
gmake[9]: *** [/usr/ports/java/openjdk8/work/openjdk/hotspot/make/bsd/makefiles/top.make:91: ad_stuff] Error 2
gmake[8]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot'
gmake[8]: *** [/usr/ports/java/openjdk8/work/openjdk/hotspot/make/bsd/Makefile:294: product] Error 2
gmake[7]: *** [Makefile:231: generic_build2] Error 2
gmake[7]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/hotspot/make'
gmake[6]: *** [Makefile:177: product] Error 2
gmake[6]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/hotspot/make'
gmake[5]: *** [HotspotWrapper.gmk:45: /usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-release/hotspot/_hotspot.timestamp] Error 2
gmake[5]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk/make'
gmake[4]: *** [/usr/ports/java/openjdk8/work/openjdk//make/Main.gmk:113: hotspot-only] Error 2
gmake[4]: Leaving directory '/usr/ports/java/openjdk8/work/openjdk'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[3]: stopped in /usr/ports/java/openjdk8
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/devel/maven3
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/archivers/snappy-java
*** Error code 1

Stop.
make: stopped in /usr/ports/net-mgmt/unifi5
root@unifi:/usr/ports/net-mgmt/unifi5 #


But this method seems to be compiling an awful damn lot of ports. Is there a way to default to installing binary package dependencies if available, rather than always downloading and compiling port dependencies?

Edit: Destroyed and rebuilt the jail; trying pkg install bash llvm40 openjdk8 before trying to compile the port.
 
Last edited:

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
OK, after pkg install bash llvm40 openjdk8, the make install clean for unifi5 completed successfully, although it still took two hours to complete. And rather than being nearly 11 GB at the error point, the jail is only taking 2.6 GB of space (edit: though it's entirely possible that if the compile had completed successfully, the clean would have reduced the size on the first try). I'm able to log in to the controller and set it up without issues.

Edit: For context, that two-hour build time wasn't on my main server but a test box--one blade of a Dell C6100, 2x Xeon X5650 CPUs, 48 GB RAM, jails on a mirrored pool of 2 x 6 TB disks. Probably would have gone faster on an SSD, but that does seem like quite a long time.
 
Last edited:

biggyk

Contributor
Joined
Nov 25, 2015
Messages
138
Great thanks. Il try this when home :)

Sent from my ONEPLUS A3000 using Tapatalk
 

naitachal

Dabbler
Joined
Mar 24, 2017
Messages
12
Almost makes me just want to buy a cloud key

I bought a Cloud Key about 2 months ago, and am very happy with it. Separation of duties.. If something happens to my NAS and it goes down for a few hours, I don't want my APs and Switch to have configuration issues. They're under $100 CAD (with the US exchange that's probably about 11 cents for you Americans these days) so cheap enough. Just make sure you have a PoE injector for it.
 

biggyk

Contributor
Joined
Nov 25, 2015
Messages
138
I bought a Cloud Key about 2 months ago, and am very happy with it. Separation of duties.. If something happens to my NAS and it goes down for a few hours, I don't want my APs and Switch to have configuration issues. They're under $100 CAD (with the US exchange that's probably about 11 cents for you Americans these days) so cheap enough. Just make sure you have a PoE injector for it.
I'm in Canada too lol. I just got a replacement Ap from ubiquti. Old want had a broken reset button. Says it had this new Poe injector included?

Sent from my ONEPLUS A3000 using Tapatalk
 

naitachal

Dabbler
Joined
Mar 24, 2017
Messages
12
I'm in Canada too lol. I just got a replacement Ap from ubiquti. Old want had a broken reset button. Says it had this new Poe injector included?

You'll need a PoE injector for the Cloud Key as well. I bought a nice rack mount 16 port gigabit model from wifi-texas.com (they sell on amazon.ca) and am very happy with it. We have 5 APs, the Cloud Key, six PoE cameras, and PoE IR injectors all going through that (it takes two power supplies if you load it up and the team at wifi-texas are great if you call them up, list what you have and they can figure out what power supplies you need). If you have rack mount devices as I do, search for "wall rack" or "wall mount bracket" on cablesalescanada.com. I put up two 4U models close to my electric panel in the basement and am in the process of cabling up the new house.

Every time I install something on my NAS (other than Plex), I start to feel incomfortable. I see VMs on the NAS as a convenience for something that is related to storage (like Plex, or Syslog). It feels wrong (from the security perspective) to use those VMs for network management. I'm sure it makes little to no difference for most home environments, but that's how I feel..
 
Status
Not open for further replies.
Top