Rilo Ravestein
Guru
- Joined
- Mar 6, 2014
- Messages
- 686
You're welcome. I don't know anything about Plex database migration however
How To Install Plex in a Jail:
Accessing Mounted Storage In Your Jail With Plex:
To add storage to your FreeNAS Jail, start by following this documentation:http://doc.freenas.org/index.php/Adding_Jails#Adding_Storage
After mounting the storage in your jail, it may be tempting to grant your files 777 access to give Plex access to them. With that said, don’t do it; there is an easy work around. Basically, you can add groups to the jail with the same GroupID as the ones on the host system.
Once at a shell prompt within the jail, find out what the GroupID is of the group that is assigned permissions on the mount with this command:
ls -l /mnt
You’ll then see a list of mount points such as this one:
drwxrwx---+ 7 1002 1001 8 Mar 3 18:35 Media
The column with 1002 is the UserID, and 1001 is the GroupID. If you want Plex to have access to the Media mount, you need need to create the Media group in the jail with a GroupID of 1001, and have the plex user in it.
To do this, start by editing /etc/group with this command:
ee /etc/group
Then add this to the bottom of the file (excluding the 1/line number in the box below):
Code:Media:*:1001:plex
After saving the file, you can look at the permissions of the mount again by using:
ls -l /mnt
Now, you should see the following instead:
drwxrwx---+ 7 1002 Media 8 Mar 3 18:35 Media
You are now done. Plex will now have access to the Media mount.
These instructions helped me very much and I now have a couple of nice jails up and running.
However, I'm having some problems with plex. All my media is located in a jail storage used by the plex jail. Adding and playing media works just fine but if media files are deleted a library refresh/update does not remove the metadata for some reason. Has anybody experienced this
Question:
Why would you install Plex in a jail, rather than just use the regular plugin which ships in FreeNAS?
I've just installed Plex via the plugin method and it's not signing in to the plex web site with my account, it's either a routing issue on my NAS (I doubt) or perhaps it's because my newly installed Plugin is out of date (?)
So I figure Plex in a jail will solve that, right?
[root@freenas] ~# cd /usr/ports/ports-mgmt/portupgrade/ && make install clean
/usr/ports/ports-mgmt/portupgrade/: No such file or directory.
I am getting this error:
What am I doing wrong?
Ah yes you are correct... I read it wrong...
First: pkg update & pkg upgrade
Then: portsnap fetch extract (if first time) or portsnap fetch update
Then use the command to Install portupgrade
I'm having the same log entries repeat twice every five seconds in a "from scratch plex jail". Ipv6 is disabled in the jail settings and in the PMS settings. PMS 0.9.11.17.My server otherwise runs perfectly. RAM issues has been suggested but my 64GB RAM shouldn't be the problem.
<code>WARN - NetworkServiceBrowser: Error sending out discover packet: send_to: Can't assign requested address</code>
This is most likely also causing the repeating log entries below in my FreeNAS logs which would be nice to get rid of as well:
<code>Limiting closed port RST response from 783 to 200 packets/sec</code>
Anyone else having these issues or perhaps a suggestion to get rid of the problem?
Turning off the GDM service solves the problem but I need the GDM as I normally use the plex.tv/web/app to manage my players.
LIMITING CLOSED PORT RST REPONSE
One of the nifty things about FreeBSD’s kernel is that it will limit closed port RST responses, which, in layman’s terms, just means that if someone repeatedly hits a port that’s closed, the kernel won’t respond to all of the requests.
Note: This article is discussing ports in the local firewall of the computer running Plex Media Server. This is not discussing ports on a router.
Its makes no sense to combine programs in a jail when there's no benefit of doing so. You're more likely to cause problems. Jails use very little resources as it is, so its strongly recommended you keep them separate.@Cosmo_Kramer - any advice on how to setup a torrent client i.e. transmission manually inside the same jail or is this not advised? I'm asking as I would liek to keep things together and not have an extra jail for this...
plex:*:972: Media:*:2000:plex