how to upgrade plex running as jail

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
love how yo say of course not, as if everyone just knew that the pkg upgrade is not everything needed... if you knew... how about saying so ...
I literally suggested to use pkg install unifi6 - which would lead to unifi5 being uninstalled automatically. As for the additional steps, I just guessed. I don't run the software. But that is definitely a unifi and not a TrueNAS issue, then.

There is no "unifi" package. There are two different packages named "unifi5" and "unifi6". And pkg upgrade will update each one to the latest version available for that particular major release.
 

georgelza

Patron
Joined
Feb 24, 2021
Messages
417
hmmm, reading the page it seems the new controller will have a new IP, which won't work for me... need to figure a working solution out for a in place upgrade,
would love for the delete, new install and restore of a backup to work...

G

I used this method to go from 5 to 6: https://lazyadmin.nl/home-network/migrate-unifi-controller/

It was easy and understandable, and used Unifi built-in facilities to achieve the migration.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
I literally suggested to use pkg install unifi6 - which would lead to unifi5 being uninstalled automatically
I tried that initially to see if that would be the case and it didn't remove unifi5. That's why I went the route I did.

@georgelza did you clear your browser cache when you visited the unify admin page after installing unifi6? What you describe sounds a lot like the page being cached and not functioning properly as a result. Your access point should not change it's IP address just changing controller versions. I literally did nothing but change package versions and everything just worked.
 

georgelza

Patron
Joined
Feb 24, 2021
Messages
417
Hi,
Ye cleared cache and also tried if browser.
Going to create a new Jail and install into the new Jail, hopefully a Unifi5 backup will restore into Unifi6.
G
 

ThreeDee

Guru
Joined
Jun 13, 2013
Messages
700
delete the jail and start with a fresh 12.2 p6 jail with same IP and run the pkg install unifi6 and then restore from your back up. That's what I did to upgrade from unifi5 to unifi6 .. (I also took a long detour to install unifi6 from ports that also worked fine not nearly as easy)

Code:
pkg update && pkg upgrade
ee /etc/pkg/FreeBSD.conf


change "quarterly" to "latest" and then hit escape, then "a" ..and then "a" again to save


Code:
pkg install unifi6
sysrc unifi_enable=YES
service unifi start

now you can pull up your unifi controller in browser and restore from backup
Alternatively, you can upload backup file

let it go for a bit and if it doesn't come up after a couple minutes, just restart the jail and you should be good to go

I just did this as I changed to a a new "Jail" drive that is a bit bigger than the one I was using and it worked just peachy
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
I tried that initially to see if that would be the case and it didn't remove unifi5.
That is unexpected because the package clearly has the necessary lines in the Makefile:
Code:
CONFLICTS:
    unifi-devel-*
    unifi-lts-*
    unifi5-*
 

georgelza

Patron
Joined
Feb 24, 2021
Messages
417
New install new Jail with a backup restore -> Worked.

ta

G
 
Top