Installing Open Movie Database Plug-In for Plex

Nordlicht-13

Explorer
Joined
Apr 2, 2022
Messages
69
I tried to install the Open Movie Database Plug-In for Plex on my Truenas Core.
I copied die Open Movie Database Plug-In-Folder (OpenMovieDatabase.bundle) to
/Plex Media Server /Plug-ins/
and grant access to folder for the user "plex".
After that I stopped plex and started it again, but the plug-in is not working.
Has anyone get this to work?

 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Has anyone get this to work?
Yes.

I just did it now.

I put the files (.bundle directory) in the Plug-ins location, did a chown to the user I use to run plex, restarted and I see the new option in the library settings as shown in the how-to you linked.

You don't mention it, but I assume you ran a chown with -R to cover the entire .bundle structure?
 

Nordlicht-13

Explorer
Joined
Apr 2, 2022
Messages
69
The Plug-in Folder is "/Plex Media Server /Plug-ins/", right?
I put the .bundle directory here and die a "chown -R plex:plex OpenMovieDatabase.bundle"
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
The Plug-in Folder is "/Plex Media Server /Plug-ins/", right?
Sort of... depends where you are starting from and if that's the current one in use... you also have a space in the path that should not be there.

I put the .bundle directory here and die a "chown -R plex:plex OpenMovieDatabase.bundle"
Is that the user you're running plex as? if so, should work.
 

Nordlicht-13

Explorer
Joined
Apr 2, 2022
Messages
69
spaces are between Plex, Media and Server, not between Server and /

temp.jpg
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Looks like the right place.

Are you sure that all the other .bundle files in that directory are also owned by plex:plex? (ls -l)
 

Nordlicht-13

Explorer
Joined
Apr 2, 2022
Messages
69
Yes:
Code:
ls -l
total 1
drwxr-xr-x   3 plex plex  5 Aug 15 10:05 OpenMovieDatabase.bundle
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
That's the only file in there???

Not sure if I just did that too long ago to remember, but mine already had like 20 .bundle files in there, I thought those were at least in part default.

Can you see if there are other .bundle files somewhere?

find / -name "*.bundle" (from the jail shell)
 

Nordlicht-13

Explorer
Joined
Apr 2, 2022
Messages
69
Okay, the others are under
/usr/local/share/plexmediaserver/Resources/Plug-ins-2632c9d3a/
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
So I guess you know what to try next...
 

Nordlicht-13

Explorer
Joined
Apr 2, 2022
Messages
69
Yep, but still not working, I give it up.
OpenMovieDatabase.bundle is now in /usr/local/share/plexmediaserver/Resources/Plug-ins-2632c9d3a/
root and wheel like all the other plugins, but still don't shows up in plex.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
root and wheel like all the other plugins
So how about in the other location with root:wheel?

Or in that location with plex:plex (for all of them)? (I assume you see some evidence of some of those plugins working where they are now?)
 

Nordlicht-13

Explorer
Joined
Apr 2, 2022
Messages
69
Tried both, not working :-(
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
OK, that's a pity... what version of Plex (and which version of jail) are you running?
 

Nordlicht-13

Explorer
Joined
Apr 2, 2022
Messages
69
TrueNAS-13.0-U4 (because TrueNAS 13.0-U5 was shutting down on it's own, with no reason)

Plex-Plugin:
Version: 1.32.5.7328
Plugin: plexmediaserver
Release: 13.0-RELEASE-p13
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
I'm only a little ahead of you on a few things, but since you're on the plugin, you don't have a lot of options to get out of that.

I can thoroughly recommend getting out of the plugin and building your own jail (I would also recommend separating out the plex database to its own dataset as you do that).

I build my jail with this script:

Code:
echo '{"pkgs":["plexmediaserver-plexpass","ca_root_nss","ffmpeg"]}' > /tmp/pkg.json
iocage create -n "plx" -p /tmp/pkg.json -r 13.2-RELEASE vnet="on" allow_raw_sockets="1" boot="on" dhcp="on" bpf="yes"
rm /tmp/pkg.json
iocage exec plx "pw user add pms -c pms -u 972 -d /nonexistent -s /usr/bin/nologin -g wheel"
iocage exec plx mkdir -p /config
iocage exec plx mkdir -p /mnt/multimedia
iocage exec plx mkdir -p /mnt/tmp
iocage fstab -a plx /mnt/SSD/apps/plex /config nullfs rw 0 0
iocage fstab -a plx /mnt/HDD/data/Multimedia /mnt/multimedia nullfs rw 0 0
iocage fstab -a plx /mnt/RAMDISK/tmp /mnt/tmp nullfs rw 0 0
iocage exec plx chown -R pms:wheel /config /mnt/tmp /mnt/multimedia
iocage exec plx sysrc plexmediaserver_plexpass_enable="YES"
iocage exec plx sysrc plexmediaserver_plexpass_support_path="/config"
iocage exec plx sysrc plexmediaserver_plexpass_user="pms"
iocage exec plx sysrc plexmediaserver_plexpass_group="wheel"
iocage exec plx service plexmediaserver_plexpass start
iocage pkg plx lock plexmediaserver-plexpass
iocage exec plx "fetch -o /usr/local/etc/ https://raw.githubusercontent.com/mstinaff/PMS_Updater/master/PMS_Updater.sh"
iocage exec plx "chmod +x /usr/local/etc/PMS_Updater.sh"
iocage exec plx "/usr/local/etc/PMS_Updater.sh -a"


If you've put your plex DB in a separate dataset, substitute that in along with media (although you may want to match that in your jail to the same path where it is now).

Also the transcode temp location is optional.

The last 4 lines about the updater are also optional, but I just can't stand to have the "update waiting" notification burning a hole in my eyes whenever I look at the plex web interface, so I use it.

I like to use a user which is on my host and in the jails called pms rather than plex, but you don't have to follow that.

If your paths are all set up with the correct rights, all you need to do is make a fresh jail anytime something doesn't work right.
 
Last edited:

Nordlicht-13

Explorer
Joined
Apr 2, 2022
Messages
69
Thanks for the help and answers, I will try this out.
Have to figure out how to create a jail with the script-code...
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Have to figure out how to create a jail with the script-code...
You can use the shell on the host and copy the lines (1 by 1 or in bulk) once you have them edited to look how you want them to look.

All of those commands are designed to run directly on the host and they jump into the jail with iocage exec where needed.
 

Nordlicht-13

Explorer
Joined
Apr 2, 2022
Messages
69
Thanks, for the great help
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
One small point... the very latest plexpass update is bad, so don't run that last line for now... wait for a version higher than 1.32.6.7371 to be available.
 
Top