I was running an older version, can’t really even tell what version but it wasn’t super old. Tried to use PMSUpdater a little while ago, that wouldn’t work, so I basically just punted.
Got an email today that I needed to update PMS to newest version to support newer clients. Started googling and found the following instructions:
Leave the jail running and ssh into FreeNas. Once you do that, type “jls” into the command line. Your running jails will have ID numbers. Whatever jail ID your plex is running on, run the command “jexec 4 tcsh” (Change the number to whatever jail ID your plex is on). This will get you into your plex root. From there, run the command portsnap extract (might need to run “portsnap fetch” first, if you havent used ports before). Once thats done scrolling and loading a ton of ports, run the command “portsnap fetch update”. After that, command “cd /usr/ports/multimedia/plexmediaserver-plexpass” to get you into the directory you need to be in. Now run the command “make deinstall” Then finally run this command “cd /usr/ports/multimedia/plexmediaserver-plexpass/ && make install clean” This will install the latest version of plex. If your not running plexpass version of plex, just remove that text from the commands. Restart the jail for the changes to take effect. This is just a quick run down of how i do it. Works for me, others may do it differently.
When I ran the “make install clean” I got a bunch of errors. So basically, it uninstalled but wouldn’t make a clean install.
So I downloaded the latest available bz2 file from download page, copied it up to the iocage jail, extracted it. When I try to start the service, it says the service doesn’t exist in rc.d, which makes sense since I uninstalled it. It I try to do pkg install I get this error:
pkg: Error parsing: ‘/usr/local/etc/pkg/repos//FreeBSD.conf’: error while parsing : line: 1, column: 57 - ‘unexpected newline’, character: ‘0x0a’
Updating FreeBSD repository catalogue…
pkg: repository meta has wrong version 2
pkg: Repository FreeBSD load error: meta cannot be loaded No error: 0
[plex1] Fetching meta.txz: 100% 916 B 0.9kB/s 00:01
pkg: repository meta has wrong version 2
repository FreeBSD has no meta file, using default settings
[plex1] Fetching packagesite.txz: 100% 6 MiB 6.2MB/s 00:01
pkg: repository meta has wrong version 2
pkg: Repository FreeBSD load error: meta cannot be loaded No error: 0
Unable to open created repository FreeBSD
Unable to update repository FreeBSD
Error updating repositories!
Because the plugin never updates appropriately, so I didn’t install via the plugin, I installed manually into a jail. PMSUpdater used to work but now it doesn’t.
u mean it fails to update? or takes longer? taking longer is normal.
Other than that the next best ting is using pkgng or ports just like you would normally in FreeBSD, this should work fine and its updated more often than the plugin!
The echo command in his instructions will even fix up this error you had:
pkg: Error parsing: ‘/usr/local/etc/pkg/repos//FreeBSD.conf’: error while parsing : line: 1
By default the FreeNAS plugin uses the plexmediaserver or plexmediaserver-plexpass pkg.
Save the output of your work again, and share it if you get stuck.
If you used the PMS_Updater script, that assumes the pkg is already installed. It downloads the .tar.bz2 directly from Plex and expands it on top of the pkg, leaving the pkg in a weird state. I don’t know why that became so popular.
So the echo command works fine. When I do “pkg update & upgrade” I get the following output:
root@plex1:/ # pkg update
Updating FreeBSD repository catalogue…
pkg: repository meta has wrong version 2
pkg: Repository FreeBSD load error: meta cannot be loaded No error: 0
[plex1] Fetching meta.txz: 100% 916 B 0.9kB/s 00:01
pkg: repository meta has wrong version 2
repository FreeBSD has no meta file, using default settings
[plex1] Fetching packagesite.txz: 100% 6 MiB 3.2MB/s 00:02
pkg: repository meta has wrong version 2
pkg: Repository FreeBSD load error: meta cannot be loaded No error: 0
Unable to open created repository FreeBSD
Unable to update repository FreeBSD
Error updating repositories!
root@plex1:/ # pkg upgrade
Updating FreeBSD repository catalogue…
pkg: repository meta has wrong version 2
pkg: Repository FreeBSD load error: meta cannot be loaded No error: 0
[plex1] Fetching meta.txz: 100% 916 B 0.9kB/s 00:01
pkg: repository meta has wrong version 2
repository FreeBSD has no meta file, using default settings
[plex1] Fetching packagesite.txz: 100% 6 MiB 2.1MB/s 00:03
pkg: repository meta has wrong version 2
pkg: Repository FreeBSD load error: meta cannot be loaded No error: 0
Unable to open created repository FreeBSD
Unable to update repository FreeBSD
Error updating repositories!
You were also 100% correct that the post #13 procedure does work if you haven’t already FUBAR’d your install. I have a backup server running plex and when I applied that procedure, it worked well. The only change was that the new version 1.21 changes the file in etc/rc.d from plexmediaserver-plexpass to plexmediaserver_plexpass.
Oddities for sure but easily overcome…
Now, is there a way to salvage my current install that went sideways or do I just need to create a new jail, reinstall and migrate the database (after I try to remember how to migrate the database).
Recent plugin versions set the “data” path to the jails rootfs /Plex Media Server, I think they did it so both port flavours install to the same place.
In anycase if you stilll have access to the older install its either there or in the standard dir: /usr/local/plexdata OR /usr/local/plexdata-plexpass
I’m wondering if the additional errors when running pkg are because the jail was old and upgraded and the upgrade partially failed, or if the jail is just old, period.
There are a few steps I would try to troubleshoot/repair the pkg errors - first I would run pkg bootstrap -f.
But I would encourage you to try a fresh instance of the plugin. It would be nice to begin at a “known good” state.
I wound up doing a fresh manual install (was getting errors using the plugin). Then I tried copying the data from the old jail to the new one. It worked but I think it might have been an even older version of the data (I had 3 different plex jails over time). Fresh install is working fine now. Just have alot of metadata clean up now…