{"id":1459,"date":"2017-05-24T16:19:41","date_gmt":"2017-05-24T15:19:41","guid":{"rendered":"https:\/\/wordpress.apeconsulting.co.uk\/wordpress\/adrian\/?p=1459"},"modified":"2017-05-24T16:19:41","modified_gmt":"2017-05-24T15:19:41","slug":"new-plex-jail","status":"publish","type":"post","link":"https:\/\/home.apeconsulting.co.uk\/adrian\/new-plex-jail\/","title":{"rendered":"New Plex Jail"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1461 size-thumbnail\" src=\"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-content\/uploads\/sites\/2\/2017\/05\/plex_jail-150x150.png\" alt=\"\" width=\"150\" height=\"150\" srcset=\"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-content\/uploads\/sites\/2\/2017\/05\/plex_jail-150x150.png 150w, https:\/\/home.apeconsulting.co.uk\/adrian\/wp-content\/uploads\/sites\/2\/2017\/05\/plex_jail.png 279w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><\/p>\n<p>I thought I&#8217;d rebuild my Plex Media Server (PMS) jail today, so it&#8217;s using the latest FreeBSD 10.3 template which would hopefully mean when the next PMS update was released, I&#8217;d have no problem updating the jail. &nbsp;While the 9.3 template jails continue to work on FreeNAS 9.10, comments on the forum seem to suggest that updating using packages or ports won&#8217;t work, so I was trying to get ahead of the game!<!--more--><\/p>\n<p>I was expecting it to be relatively straightforward, and rebuilding the jail bit is:<\/p>\n<ul>\n<li>create a new jail from the Jails menu by clicking Add Jail<\/li>\n<li>Enter a name and IP address and click OK<\/li>\n<li>SSH into the jail and then update &gt; pkg update and pkg upgrade<\/li>\n<li>Install PMS &gt; pkg install plexmediaserver<\/li>\n<li>Update the rc.conf file so the service auto-starts &gt; nano \/etc\/rc.conf and add in the line &#8216;plexmediaserver_enable=&#8221;YES&#8221;<\/li>\n<\/ul>\n<p>Pretty easy, yes? &nbsp;Well, that bit was. &nbsp;The problem started when I looked to move my plexdata folder from the old jail. &nbsp;The plexdata folder contains all the library information and metadata. &nbsp;Not the actual media content, which is stored elsewhere on the NAS and simply mounted into the jail, but all the information PMS has gathered from the internet about the media content, and most importantly, what I&#8217;ve watched and haven&#8217;t watched. &nbsp;I really wanted to keep this, and thought it could just be a case of copying from the old jail to the new &gt; cp -R \/mnt\/pool\/jails\/old_jail\/usr\/local\/plexdata&nbsp;\/mnt\/pool\/jails\/new_jail\/usr\/local&nbsp;<\/p>\n<p>Well, it turns out this folder is pretty big and contains hundreds of thousands of files, so copying proved problematic using the FreeNAS shell! &nbsp;After a few failed attempts trying to compress (tar) the&nbsp;folder and copy that, the solution I found was to SSH into FreeNAS from my iMac and then copy from there. &nbsp;Even that took almost 2 hours, but the session remained active and I think everything copied&nbsp;across?<\/p>\n<p>After mapping all the mount points to the new jail (using exactly the same names) and restarting the jail, I couldn&#8217;t connect to the new PMS. &nbsp;I checked that the service was running, which is was. &nbsp;I checked all the media mount points were there, and they were (not that I expected that to be the problem). &nbsp;Finally checking permissions between the old jail and new, I released the plexdata folder needed to be owned by the plex user so just a case of &gt;&nbsp;<span class=\"shell_ff shell_be\">chown -R plex:plex&nbsp;\/usr\/local\/plexdata.<\/span><\/p>\n<p>After moving the Preferences.xml file that I&#8217;d moved, PMS started up and everything appears to be&nbsp;working as expected. &nbsp;I&#8217;ll leave the old one&nbsp;running for a few days whilst I test the new one and then move my friends and family&nbsp;shares across to the new library. &nbsp;I&#8217;d be surprised if they even notice! &nbsp;I&#8217;ll also need to change the mount points for my PlexPy (a monitoring program to show who watches what) and PlexEmail (which sends out weekly updates of what&#8217;s been added) jails as they both need access to the plexdata folder.<\/p>\n<p>Slightly more problematic that I expected, but good to know that I shouldn&#8217;t have any issues updating Plex in the future now (famous last words)&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I thought I&#8217;d rebuild my Plex Media Server (PMS) jail today, so it&#8217;s using the latest FreeBSD 10.3 template which would hopefully mean when the next PMS update was released, I&#8217;d have no problem updating the jail. &nbsp;While the 9.3 template jails continue to work on FreeNAS 9.10, comments on the forum seem to suggest [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[19,2,9,10],"tags":[21],"class_list":["post-1459","post","type-post","status-publish","format-standard","hentry","category-freenas","category-it","category-server","category-software","tag-spellchecked"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>New Plex Jail - Adrian&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/home.apeconsulting.co.uk\/adrian\/new-plex-jail\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"New Plex Jail - Adrian&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"I thought I&#8217;d rebuild my Plex Media Server (PMS) jail today, so it&#8217;s using the latest FreeBSD 10.3 template which would hopefully mean when the next PMS update was released, I&#8217;d have no problem updating the jail. &nbsp;While the 9.3 template jails continue to work on FreeNAS 9.10, comments on the forum seem to suggest [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/home.apeconsulting.co.uk\/adrian\/new-plex-jail\/\" \/>\n<meta property=\"og:site_name\" content=\"Adrian&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2017-05-24T15:19:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-content\/uploads\/sites\/2\/2017\/05\/plex_jail-150x150.png\" \/>\n<meta name=\"author\" content=\"Adrian\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Adrian\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/new-plex-jail\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/new-plex-jail\\\/\"},\"author\":{\"name\":\"Adrian\",\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#\\\/schema\\\/person\\\/f63f15ff50bb8f956afdd86a816c5d2a\"},\"headline\":\"New Plex Jail\",\"datePublished\":\"2017-05-24T15:19:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/new-plex-jail\\\/\"},\"wordCount\":583,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#\\\/schema\\\/person\\\/f63f15ff50bb8f956afdd86a816c5d2a\"},\"image\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/new-plex-jail\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2017\\\/05\\\/plex_jail-150x150.png\",\"keywords\":[\"Checked\"],\"articleSection\":[\"FreeNAS\",\"IT\",\"Server\",\"Software\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/new-plex-jail\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/new-plex-jail\\\/\",\"url\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/new-plex-jail\\\/\",\"name\":\"New Plex Jail - Adrian&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/new-plex-jail\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/new-plex-jail\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2017\\\/05\\\/plex_jail-150x150.png\",\"datePublished\":\"2017-05-24T15:19:41+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/new-plex-jail\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/new-plex-jail\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/new-plex-jail\\\/#primaryimage\",\"url\":\"http:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2017\\\/05\\\/plex_jail-150x150.png\",\"contentUrl\":\"http:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2017\\\/05\\\/plex_jail-150x150.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/new-plex-jail\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"New Plex Jail\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#website\",\"url\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/\",\"name\":\"Adrian&#039;s Blog\",\"description\":\"Ramblings of an IT Geek\",\"publisher\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#\\\/schema\\\/person\\\/f63f15ff50bb8f956afdd86a816c5d2a\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#\\\/schema\\\/person\\\/f63f15ff50bb8f956afdd86a816c5d2a\",\"name\":\"Adrian\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g\",\"caption\":\"Adrian\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"New Plex Jail - Adrian&#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/home.apeconsulting.co.uk\/adrian\/new-plex-jail\/","og_locale":"en_GB","og_type":"article","og_title":"New Plex Jail - Adrian&#039;s Blog","og_description":"I thought I&#8217;d rebuild my Plex Media Server (PMS) jail today, so it&#8217;s using the latest FreeBSD 10.3 template which would hopefully mean when the next PMS update was released, I&#8217;d have no problem updating the jail. &nbsp;While the 9.3 template jails continue to work on FreeNAS 9.10, comments on the forum seem to suggest [&hellip;]","og_url":"https:\/\/home.apeconsulting.co.uk\/adrian\/new-plex-jail\/","og_site_name":"Adrian&#039;s Blog","article_published_time":"2017-05-24T15:19:41+00:00","og_image":[{"url":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-content\/uploads\/sites\/2\/2017\/05\/plex_jail-150x150.png","type":"","width":"","height":""}],"author":"Adrian","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Adrian","Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/new-plex-jail\/#article","isPartOf":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/new-plex-jail\/"},"author":{"name":"Adrian","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#\/schema\/person\/f63f15ff50bb8f956afdd86a816c5d2a"},"headline":"New Plex Jail","datePublished":"2017-05-24T15:19:41+00:00","mainEntityOfPage":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/new-plex-jail\/"},"wordCount":583,"commentCount":2,"publisher":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#\/schema\/person\/f63f15ff50bb8f956afdd86a816c5d2a"},"image":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/new-plex-jail\/#primaryimage"},"thumbnailUrl":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-content\/uploads\/sites\/2\/2017\/05\/plex_jail-150x150.png","keywords":["Checked"],"articleSection":["FreeNAS","IT","Server","Software"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/home.apeconsulting.co.uk\/adrian\/new-plex-jail\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/new-plex-jail\/","url":"https:\/\/home.apeconsulting.co.uk\/adrian\/new-plex-jail\/","name":"New Plex Jail - Adrian&#039;s Blog","isPartOf":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#website"},"primaryImageOfPage":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/new-plex-jail\/#primaryimage"},"image":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/new-plex-jail\/#primaryimage"},"thumbnailUrl":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-content\/uploads\/sites\/2\/2017\/05\/plex_jail-150x150.png","datePublished":"2017-05-24T15:19:41+00:00","breadcrumb":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/new-plex-jail\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/home.apeconsulting.co.uk\/adrian\/new-plex-jail\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/new-plex-jail\/#primaryimage","url":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-content\/uploads\/sites\/2\/2017\/05\/plex_jail-150x150.png","contentUrl":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-content\/uploads\/sites\/2\/2017\/05\/plex_jail-150x150.png"},{"@type":"BreadcrumbList","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/new-plex-jail\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/home.apeconsulting.co.uk\/adrian\/"},{"@type":"ListItem","position":2,"name":"New Plex Jail"}]},{"@type":"WebSite","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#website","url":"https:\/\/home.apeconsulting.co.uk\/adrian\/","name":"Adrian&#039;s Blog","description":"Ramblings of an IT Geek","publisher":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#\/schema\/person\/f63f15ff50bb8f956afdd86a816c5d2a"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/home.apeconsulting.co.uk\/adrian\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":["Person","Organization"],"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#\/schema\/person\/f63f15ff50bb8f956afdd86a816c5d2a","name":"Adrian","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g","caption":"Adrian"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g"}}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p90DI4-nx","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/posts\/1459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/comments?post=1459"}],"version-history":[{"count":0,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/posts\/1459\/revisions"}],"wp:attachment":[{"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/media?parent=1459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/categories?post=1459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/tags?post=1459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}