I have a TrueNAS 12 NAS machine that I custom built myself. I have Plex running in a jail/plugin. I update Plex by going into the Shell and entering the following commands:
pkg install ca_root_nss
pkg install wget
pkg install perl5
fetch -o PMS_Updater.sh https://raw.githubusercontent.com/luluhoc/PMS_Updater/master/PMS_UpdaterPLEXPASS.sh
chmod 755 PMS_Updater.sh
./PMS_Updater.sh -vv -a
When attempting to upgrade to the latest version (1.21.0.3616) when I enter the last command to execute the script, I get the following error:
version FBSD_1.6 required by /usr/local/bin/wget not found
Error dowloading https://plex.tv/apt/dowloads/5.json?channel=plexpass
You’re using a custom method of install and you seem to be having issues with wget!
FreeBSD has “fetch” which could be used instead of wget!
I would advice on using the standard FreeNAS/FreeBSD install methods (plugin or ports/pkgng).
But if you want to keep using the script please report that issue to the maintainer, its likely not supported with TrueNAS yet, in fact we are getting reports of PMS it self not always working which is surprising since it works fine for me on FreeBSD 12.0 and 12.1 for ages, but I have not tried 12.2 yet.
I guess I’m at a loss. I’m not sure what to do. I even tried the instructions here: https://digimoot.wordpress.com/2020/10/05/truenas-update-plex-server/ and I still get the same error. Is there another way to update Plex on TrueNAS 12 or should I wait a while until things start catching up with each other?
I believe I solved it, sort of. First, I tried upgrading the jail via Shell using “iocage upgrade PlexMediaServer -r 12.2-RELEASE”. That upgraded the jail from 11.3 to 12.2. After that, I still had the same issue. I then downloaded the Plex update to a file. I used an FTP program to copy the update file to the Plex root folder on the TrueNAS server. I then used the following script to run the update file:
./PMS_Updater.sh -l NAMEOFPLEXPACKAGE.tar.bz2 -vv -a
It updated just fine. I was even able to update again using my original method.