This almost certainly has to do with you having FreeBSD-10 based jails on a FreeBSD-11 based operating system.
OPtions that come to mind:
1) You could blow away your jails and make new FreeNAS-11 based jails.
2) You can see if someone else with a second opinion and a decent idea for doing this the "right" way without blowing away your jails shows up.
3) There is a "hack" in this thread that almost certainly will work, with the appropriate modification: https://forums.freenas.org/index.php?threads/trouble-update-ports-jail-after-9-10-upgrade.42250/
echo 'ENABLE_MONGODB=no' | sudo tee -a /etc/mongodb.conf > /dev/null
I have a install I built for this https://github.com/TechButton/unifi-controller-freebsd-freenas currently setup to install 5.5.14, this will install snappy java as well. I wrote this to do upgrades as well, backs up your install and then restores the files after the upgrade. You can modify the file with the new version on the forums or I will keep updating this install, I try to get to it every few weeks.
Login with SSH to your FreeNAS (or alternatively go to shell in WebGUI)
type: 'jls' (without ' ' ) and take the note of the # of jail of your Unifi installation
type: jexec # csh' (where # is the number of the jail noted in last step)
type: fetch -o install-unifi.sh https://raw.githubusercontent.com/T...freenas/master/install-unifi/install-unifi.sh
type: chmod 755 install-unifi.sh
type: ./install-unifi.sh
Can't say I use this feature, however I wouldn't be surprised that it doesn't work as it may require something not available in FreeBSD or included as part of the port.Anyone else having trouble accessing this controller through Unifi Cloud remotely?
UniFi has a dependency on LLVM and OpenJDK. These two requirements alone push up the disk space requirements.Also, 3 gigs for this jail seems like a lot, am I missing something?
Anyone else having trouble accessing this controller through Unifi Cloud remotely? Also, 3 gigs for this jail seems like a lot, am I missing something?
Building new INDEX files... done. root@unifi:/ # cd /usr/ports/net-mgmt/unifi5 root@unifi:/usr/ports/net-mgmt/unifi5 # service unifi stop unifi not running? (check /var/run/unifi/unifi.pid). root@unifi:/usr/ports/net-mgmt/unifi5 # make reinstall clean ===> unifi5-5.6.24 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by unifi5-5.6.24 for building ===> Extracting for unifi5-5.6.24 => SHA256 Checksum OK for unifi5-5.6.24/UniFi.unix.zip. ===> Patching for unifi5-5.6.24 /bin/rm -f /usr/ports/net-mgmt/unifi5/work/UniFi/lib/snappy-java-1.1.2.6.jar (cd /usr/ports/net-mgmt/unifi5/work/UniFi/lib && /bin/ln -s /usr/local/share/java/classes/snappy-java.jar snappy-java-1.1.2.6.jar) ===> Configuring for unifi5-5.6.24 ===> Staging for unifi5-5.6.24 ===> unifi5-5.6.24 depends on package: mongodb>0 - found ===> unifi5-5.6.24 depends on package: snappyjava>0 - found ===> unifi5-5.6.24 depends on file: /usr/local/openjdk8/bin/java - found ===> Generating temporary packing list ===> Creating groups. ===> Creating users /bin/mkdir -p /usr/ports/net-mgmt/unifi5/work/stage/usr/local/share/java/unifi (cd /usr/ports/net-mgmt/unifi5/work/UniFi && /bin/sh -c '(/usr/bin/find -Ed $1 $3 | /usr/bin/cpio -dumpl $2 >/dev/null 2>&1) && /us r/bin/find -Ed $1 $3 \( -type d -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 755 "$@"'\'' . {} + -o -type f -exec /bin/sh -c '\''c d '\''$2'\'' && chmod 0644 "$@"'\'' . {} + \)' COPYTREE_SHARE \* /usr/ports/net-mgmt/unifi5/work/stage/usr/local/share/java/unifi/) /bin/ln -sf /usr/local/bin/mongod /usr/ports/net-mgmt/unifi5/work/stage/usr/local/share/java/unifi/bin/mongod /bin/mkdir -p /usr/ports/net-mgmt/unifi5/work/stage//usr/local/share/java/unifi/data /bin/mkdir -p /usr/ports/net-mgmt/unifi5/work/stage//usr/local/share/java/unifi/logs /bin/mkdir -p /usr/ports/net-mgmt/unifi5/work/stage//usr/local/share/java/unifi/run /bin/mkdir -p /usr/ports/net-mgmt/unifi5/work/stage//usr/local/share/java/unifi/work ====> Compressing man pages (compress-man) ===> Staging rc.d startup script(s) ===> Installing for unifi5-5.6.24 ===> Registering installation for unifi5-5.6.24 *** Error code 70 Stop. make[1]: stopped in /usr/ports/net-mgmt/unifi5 *** Error code 1 Stop. make: stopped in /usr/ports/net-mgmt/unifi5 root@unifi:/usr/ports/net-mgmt/unifi5 #
try make deinstall reinstall all cleanHi,
thanks for the tutorial, everything was working fine for me for the last couple of months, but now I am having problems with the update process.
I am getting the following error message:
Code:Building new INDEX files... done. root@unifi:/ # cd /usr/ports/net-mgmt/unifi5 root@unifi:/usr/ports/net-mgmt/unifi5 # service unifi stop unifi not running? (check /var/run/unifi/unifi.pid). root@unifi:/usr/ports/net-mgmt/unifi5 # make reinstall clean ===> unifi5-5.6.24 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by unifi5-5.6.24 for building ===> Extracting for unifi5-5.6.24 => SHA256 Checksum OK for unifi5-5.6.24/UniFi.unix.zip. ===> Patching for unifi5-5.6.24 /bin/rm -f /usr/ports/net-mgmt/unifi5/work/UniFi/lib/snappy-java-1.1.2.6.jar (cd /usr/ports/net-mgmt/unifi5/work/UniFi/lib && /bin/ln -s /usr/local/share/java/classes/snappy-java.jar snappy-java-1.1.2.6.jar) ===> Configuring for unifi5-5.6.24 ===> Staging for unifi5-5.6.24 ===> unifi5-5.6.24 depends on package: mongodb>0 - found ===> unifi5-5.6.24 depends on package: snappyjava>0 - found ===> unifi5-5.6.24 depends on file: /usr/local/openjdk8/bin/java - found ===> Generating temporary packing list ===> Creating groups. ===> Creating users /bin/mkdir -p /usr/ports/net-mgmt/unifi5/work/stage/usr/local/share/java/unifi (cd /usr/ports/net-mgmt/unifi5/work/UniFi && /bin/sh -c '(/usr/bin/find -Ed $1 $3 | /usr/bin/cpio -dumpl $2 >/dev/null 2>&1) && /us r/bin/find -Ed $1 $3 \( -type d -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 755 "$@"'\'' . {} + -o -type f -exec /bin/sh -c '\''c d '\''$2'\'' && chmod 0644 "$@"'\'' . {} + \)' COPYTREE_SHARE \* /usr/ports/net-mgmt/unifi5/work/stage/usr/local/share/java/unifi/) /bin/ln -sf /usr/local/bin/mongod /usr/ports/net-mgmt/unifi5/work/stage/usr/local/share/java/unifi/bin/mongod /bin/mkdir -p /usr/ports/net-mgmt/unifi5/work/stage//usr/local/share/java/unifi/data /bin/mkdir -p /usr/ports/net-mgmt/unifi5/work/stage//usr/local/share/java/unifi/logs /bin/mkdir -p /usr/ports/net-mgmt/unifi5/work/stage//usr/local/share/java/unifi/run /bin/mkdir -p /usr/ports/net-mgmt/unifi5/work/stage//usr/local/share/java/unifi/work ====> Compressing man pages (compress-man) ===> Staging rc.d startup script(s) ===> Installing for unifi5-5.6.24 ===> Registering installation for unifi5-5.6.24 *** Error code 70 Stop. make[1]: stopped in /usr/ports/net-mgmt/unifi5 *** Error code 1 Stop. make: stopped in /usr/ports/net-mgmt/unifi5 root@unifi:/usr/ports/net-mgmt/unifi5 #
Any idea what I can do to fix this?
Thanks!
cleansman
root@unifi:/usr/ports/net-mgmt/unifi5 # make deinstall reinstall all clean ===> Deinstalling for unifi5 ===> Deinstalling unifi5-5.5.24 Checking integrity... done (0 conflicting) Deinstallation has been requested for the following 1 packages (of 0 packages in the universe): Installed packages to be REMOVED: unifi5-5.5.24 Number of packages to be removed: 1 The operation will free 201 MiB. [unifi] [1/1] Deinstalling unifi5-5.5.24... [unifi] [1/1] Deleting files for unifi5-5.5.24: 100% ==> You should manually remove the "unifi" user. ==> You should manually remove the "unifi" group ===> Installing for unifi5-5.6.24 ===> unifi5-5.6.24 depends on package: mongodb>0 - found ===> unifi5-5.6.24 depends on package: snappyjava>0 - found ===> unifi5-5.6.24 depends on file: /usr/local/openjdk8/bin/java - found ===> Registering installation for unifi5-5.6.24 [unifi] Installing unifi5-5.6.24... ===> Creating groups. Using existing group 'unifi'. ===> Creating users Using existing user 'unifi'. echo: write error on stdout ===> Cleaning for unifi5-5.6.24 root@unifi:/usr/ports/net-mgmt/unifi5 # service unifi start Starting unifi. root@unifi:/usr/ports/net-mgmt/unifi5 #
#!/bin/sh portsnap fetch update && cd /usr/ports/net-mgmt/unifi5/ && make deinstall reinstall clean && service unifi restart
I suggest making a script in your jail and use that to update.
Code:#!/bin/sh portsnap fetch update && cd /usr/ports/net-mgmt/unifi5/ && make deinstall reinstall clean && service unifi restart
Anyone else having trouble accessing this controller through Unifi Cloud remotely? Also, 3 gigs for this jail seems like a lot, am I missing something?
I got this error. Any assistance would be appreciated.
Seems there is a bug if you recently upgraded FreeNAS 11. Nothing I can help with on this.getting the same error and now cant reinstall :(