plex doesn't work

itskando

Contributor
Joined
Apr 30, 2018
Messages
172
I previously posted with delusions of knowing the source of the issue.

I ate some humble pie and learned not to assume I knew the source of the problem, and
to turn off debug and verbose logging before posting the log.

Plex is able to see my jail-mounted media-dataset library.
It cannot play anything sufficiently large (which thus requires transcoding).
[This has thus far included HD and SD files, all of which have 5.1 or AC3 audio.]

I have tested fileson a Roku 3 and the Plex web client on macOS:Chrome.

.

Here is the Plex Media Server log:

Code:
Nov 09, 2018 18:10:58.783 [0x80a6c9000] INFO - Plex Media Server v1.13.8.5395-10d48da0d - FreeBSD PC amd64 - build: freebsd-x86_64 freebsd - GMT -05:00
Nov 09, 2018 18:10:58.794 [0x80a6c9000] ERROR - Failed to determine system locale: locale::facet::_S_create_c_locale name not valid. Defaulting to en-US.
Nov 09, 2018 18:10:58.794 [0x80a6c9000] INFO - FreeBSD version: 11.2-STABLE (FreeBSD 11.2-STABLE #0 r325575+97f4f541349(freenas/11.2-stable): Wed Oct 17 18:06:49 EDT 2018	 root@nemesis.tn.ixsystems.com:/freenas-11.2-releng/freenas/_BE/objs/freenas-11.2-releng/freenas/_BE/os/sys/FreeNAS.amd64), language: en-US
Nov 09, 2018 18:10:58.794 [0x80a6c9000] INFO - Processor Intel(R) Xeon(R) CPU E3-1231 v3 @ 3.40GHz
Nov 09, 2018 18:10:58.794 [0x80a6c9000] INFO - /usr/local/share/plexmediaserver/Plex_Media_Server
Nov 09, 2018 18:10:58.617 [0x80a616000] WARN - Default locale is invalid; falling back on classic+UTF-8
Nov 09, 2018 18:10:58.901 [0x80a616000] INFO - SQLITE3:0x10, 283, recovered 1000 frames from WAL file /usr/local/plexdata/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db-wal
Nov 09, 2018 18:10:59.017 [0x80a616000] INFO - SQLITE3:0x10, 283, recovered 312 frames from WAL file /usr/local/plexdata/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.blobs.db-wal
Nov 09, 2018 18:10:59.148 [0x80a616000] INFO - OCSP: Successfully retrieved response from cache.
Nov 09, 2018 18:11:02.978 [0x80b09ec00] INFO - Refreshing paths watched by LibraryUpdateManager
Nov 09, 2018 18:11:03.233 [0x80b1db500] WARN - Sync: Couldn't get sync lists without subscription.
Nov 09, 2018 18:15:16.859 [0x80bc41400] ERROR - Error response for update:  ().
Nov 09, 2018 18:15:16.859 [0x80b1db500] ERROR - Error response for update:  ().
Nov 09, 2018 18:15:17.334 [0x80bc40500] ERROR - Error response for update:  ().
Nov 09, 2018 18:15:23.651 [0x80bc40500] ERROR - Error response for update:  ().
Nov 09, 2018 18:15:25.616 [0x80bc41400] ERROR - Error response for update:  ().
Nov 09, 2018 18:15:57.208 [0x80b1db500] WARN - Transcode runner appears to have died.
Nov 09, 2018 18:15:57.315 [0x80b1db500] WARN - Timed out waiting for segment.
Nov 09, 2018 18:15:57.498 [0x80b1db500] WARN - Transcode runner appears to have died.
Nov 09, 2018 18:15:57.605 [0x80b1db500] WARN - Timed out waiting for segment.
Nov 09, 2018 18:15:57.692 [0x80bc41900] ERROR - Failed to delete session directory (boost::filesystem::remove: No such file or directory: "/usr/local/plexdata/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-115ddb4395b2a36acaa2dc7e730fab80-31935246-16e8-4950-b575-96829989ded6/media-00011.ts")
Nov 09, 2018 18:15:57.759 [0x80c333900] WARN - Got a request to stop a transcode session without a session GUID (or with an invalid one).
Nov 09, 2018 18:15:57.798 [0x80b1db500] ERROR - Error response for update:  ().
Nov 09, 2018 18:15:58.069 [0x80b09dd00] WARN - Got a request to stop a transcode session without a session GUID (or with an invalid one).
Nov 09, 2018 18:15:58.741 [0x80b1db500] ERROR - Error response for update:  ().
Nov 09, 2018 18:16:29.484 [0x80bc41400] WARN - Transcode runner appears to have died.
Nov 09, 2018 18:16:29.591 [0x80bc41400] WARN - Timed out waiting for segment.
Nov 09, 2018 18:16:29.747 [0x80b1db500] WARN - Transcode runner appears to have died.
Nov 09, 2018 18:16:29.849 [0x80b1db500] WARN - Timed out waiting for segment.
Nov 09, 2018 18:16:29.979 [0x80bc41900] ERROR - Failed to delete session directory (boost::filesystem::remove: No such file or directory: "/usr/local/plexdata/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-115ddb4395b2a36acaa2dc7e730fab80-c1bb9505-833b-4e82-abe7-d7da0ad8bdbd/media-00120.ts")
Nov 09, 2018 18:16:29.988 [0x80d273500] ERROR - Transcoder: Failed to delete session directory (boost::filesystem::remove: No such file or directory: "/usr/local/plexdata/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-115ddb4395b2a36acaa2dc7e730fab80-c1bb9505-833b-4e82-abe7-d7da0ad8bdbd/media-00116.ts")
Nov 09, 2018 18:16:30.034 [0x80d051f00] WARN - Got a request to stop a transcode session without a session GUID (or with an invalid one).
Nov 09, 2018 18:16:30.073 [0x80b1db500] ERROR - Error response for update:  ().
Nov 09, 2018 18:16:30.328 [0x80d052900] WARN - Got a request to stop a transcode session without a session GUID (or with an invalid one).
Nov 09, 2018 18:16:30.971 [0x80bc41400] ERROR - Error response for update:  ().
Nov 09, 2018 18:17:01.629 [0x80bc41400] WARN - Transcode runner appears to have died.
Nov 09, 2018 18:17:01.736 [0x80bc41400] WARN - Timed out waiting for segment.
Nov 09, 2018 18:17:01.911 [0x80bc40500] WARN - Transcode runner appears to have died.
Nov 09, 2018 18:17:02.018 [0x80bc40500] WARN - Timed out waiting for segment.
Nov 09, 2018 18:17:02.102 [0x80b09ce00] ERROR - Failed to delete session directory (boost::filesystem::remove: No such file or directory: "/usr/local/plexdata/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-115ddb4395b2a36acaa2dc7e730fab80-96257f88-ffab-4a9c-a5fe-d05c3c2bf393/media-00125.ts")
Nov 09, 2018 18:17:02.169 [0x80d273500] WARN - Got a request to stop a transcode session without a session GUID (or with an invalid one).
Nov 09, 2018 18:17:02.205 [0x80b1db500] ERROR - Error response for update:  ().
Nov 09, 2018 18:17:02.513 [0x80d051f00] WARN - Got a request to stop a transcode session without a session GUID (or with an invalid one).
Nov 09, 2018 18:17:03.033 [0x80bc40500] ERROR - Error response for update:  ().
Nov 09, 2018 18:17:33.775 [0x80b1db500] WARN - Transcode runner appears to have died.
Nov 09, 2018 18:17:33.882 [0x80b1db500] WARN - Timed out waiting for segment.
Nov 09, 2018 18:17:34.045 [0x80bc41400] WARN - Transcode runner appears to have died.
Nov 09, 2018 18:17:34.152 [0x80bc41400] WARN - Timed out waiting for segment.
Nov 09, 2018 18:17:34.291 [0x80bc41900] ERROR - Transcoder: Failed to delete session directory (boost::filesystem::remove: No such file or directory: "/usr/local/plexdata/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-115ddb4395b2a36acaa2dc7e730fab80-89f62d44-3db0-4b8d-9482-715d44a123d8/media-00181.ts")
Nov 09, 2018 18:17:34.294 [0x80b42d000] ERROR - Transcoder: Failed to delete session directory (boost::filesystem::remove: No such file or directory: "/usr/local/plexdata/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-115ddb4395b2a36acaa2dc7e730fab80-89f62d44-3db0-4b8d-9482-715d44a123d8/media-00198.ts")
Nov 09, 2018 18:17:34.498 [0x80b1db500] ERROR - Error response for update:  ().
Nov 09, 2018 18:33:53.722 [0x80a616000] WARN - Timed out waiting for server to finish.

It may be telling (to the right eyes).

.

Here are the Plex jail parameters:

45753778282_fe95d2f530_h.jpg
45078942804_eaf8aa7251_h.jpg
45753778252_c0254d9924_h.jpg
45753778212_99aec41081_h.jpg
45753778182_a7ffc3c91d_h.jpg

(If anyone offers a CLI command to get all of these parameters in text format, I'll swap the photos out : j )

(I also played around with this beforehand since something similar was mentioned here. Not sure that it was necessary.)
 
Last edited:

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Hardware specs?
 

itskando

Contributor
Joined
Apr 30, 2018
Messages
172
Hardware specs?
- Was read in Strong Bad's voice.

They seem like they should be fine.

PCPartPicker :
Motherboard: Supermicro - X10SLL-F Micro ATX LGA1150 Motherboard
CPU: Intel Xeon E3-1231 v3 (Passmark: 9626)
RAM: 16 GB (2 x [8GB - Crucial CT102472BD160B])
Storage: 2x [32GB Flash Drive - SanDisk UltraFit] - Mirror (for freeNAS OS)
Storage: 2x [4TB HDD - WD Red] - Mirror
Enclosure: Fractal Design - Node 804 MicroATX Mid Tower Case
Cooling: Cooler Master - Hyper 212 EVO 82.9 CFM Sleeve Bearing CPU Cooler
Power Supply: SeaSonic - G 550W 80+ Gold Certified Semi-Modular ATX Power Supply
 

mbotto

Cadet
Joined
Nov 10, 2018
Messages
3
Hello,

I have the exact same problem. Just installed FreeNAS 11.2-RC1 yesterday, got working all the basic things and I thought to give plex a try. Install is OK, and I can add library (jail-mounted dataset), videos gets scanned and thumbnail generated. But I can't play anything ... I just get the spinning wheel. Tried on Ubuntu Chrome webapp, Windows Chrome webapp as well as on Philips Android plex app.

I see plex transcoder going nuts on eating all available cores on the server like

264M 150M CPU11 11 1:55 480.02% Plex Transcoder
264M 150M CPU6 11 1:55 1080.02% Plex Transcoder

This is a very decent server:
Intel(R) Xeon(R) Silver 4110 CPU @ 2.10GHz (8 cores + HTT)


96 GB RAM

I'm attaching the plex server logs (looks exactly the same as the ones from itskando).

Code:
Nov 10, 2018 14:22:32.616 [0x80a6c8000] INFO - Plex Media Server v1.13.8.5395-10d48da0d - FreeBSD PC amd64 - build: freebsd-x86_64 freebsd - GMT 01:00
Nov 10, 2018 14:22:32.618 [0x80a6c8000] ERROR - Failed to determine system locale: locale::facet::_S_create_c_locale name not valid. Defaulting to en-US.
Nov 10, 2018 14:22:32.618 [0x80a6c8000] INFO - FreeBSD version: 11.2-STABLE (FreeBSD 11.2-STABLE #0 r325575+97f4f541349(freenas/11.2-stable): Wed Oct 17 18:06:49 EDT 2018	 root@nemesis.tn.ixsystems.com:/freenas-11.2-releng/freenas/_BE/objs/freenas-11.2-releng/freenas/_BE/os/sys/FreeNAS.amd64), language: en-US
Nov 10, 2018 14:22:32.618 [0x80a6c8000] INFO - Processor Intel(R) Xeon(R) Silver 4110 CPU @ 2.10GHz
Nov 10, 2018 14:22:32.618 [0x80a6c8000] INFO - /usr/local/share/plexmediaserver/Plex_Media_Server
Nov 10, 2018 14:22:32.607 [0x80a616000] WARN - Default locale is invalid; falling back on classic+UTF-8
Nov 10, 2018 14:22:32.621 [0x80a616000] INFO - SQLITE3:0x10, 283, recovered 48 frames from WAL file /Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db-wal
Nov 10, 2018 14:22:32.691 [0x80a616000] INFO - SQLITE3:0x10, 283, recovered 312 frames from WAL file /Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.blobs.db-wal
Nov 10, 2018 14:22:32.711 [0x80a616000] ERROR - Error opening file '"/Plex Media Server/Cache/OCSP/main.der"' - No such file or directory (2)
Nov 10, 2018 14:22:32.825 [0x80b06df00] ERROR - OCSP: response error: unauthorized.
Nov 10, 2018 14:22:32.825 [0x80b06df00] INFO - OCSP: couldn't fetch a valid response; retrying in 10800 seconds
Nov 10, 2018 14:22:35.364 [0x80b070200] INFO - Refreshing paths watched by LibraryUpdateManager
Nov 10, 2018 14:22:35.571 [0x80b071b00] WARN - Sync: Couldn't get sync lists without subscription.
Nov 10, 2018 14:22:47.368 [0x80b62d000] ERROR - NAT: PMP::getPublicIP, couldn't initialize: -3:Unable to get Gateway
Nov 10, 2018 14:22:47.545 [0x80b06df00] ERROR - NAT: PMP, map, couldn't initialize: -3:Unable to get Gateway
Nov 10, 2018 14:22:48.282 [0x80d273000] ERROR - [PlexRelay] kex protocol error: type 7 seq 11
Nov 10, 2018 14:22:48.500 [0x80d273000] INFO - [PlexRelay] Allocated port 28237 for remote forward to localhost:32401
Nov 10, 2018 14:22:52.550 [0x80b06ee00] ERROR - Error response for update:  ().
Nov 10, 2018 14:22:56.740 [0x80bc47500] ERROR - Extras: Preroll file didn't exist or couldn't be read: ''.
Nov 10, 2018 14:22:59.839 [0x80f013500] ERROR - NAT: PMP::getPublicIP, couldn't initialize: -3:Unable to get Gateway
Nov 10, 2018 14:22:59.846 [0x80d273000] ERROR - Error response for update:  ().
Nov 10, 2018 14:22:59.846 [0x80bc47500] ERROR - Error response for update:  ().
Nov 10, 2018 14:22:59.851 [0x80bc47500] INFO - CodecManager: obtaining decoder 'mp3'
Nov 10, 2018 14:23:01.017 [0x80af01700] WARN - PubSub: Received notifyConnectivity event with incorrect async identifier (40d37cc8-5941-4e9c-b586-44b2a3e6c121, expected c3bde9ce-8a7f-4b5a-84bf-4e6541be81b1)
Nov 10, 2018 14:23:01.930 [0x80af01c00] WARN - PubSub: Received notifyConnectivity event with incorrect async identifier (e017a3f1-41b4-4b1d-99a5-d3066e96dd4e, expected 9b14555b-87b0-45cb-9193-bf9381aa1ed2)
Nov 10, 2018 14:23:02.305 [0x80af01c00] WARN - PubSub: Received notifyConnectivity event with incorrect async identifier (8c4cc0c0-661e-4dfe-8ac6-ef0657d85aae, expected 534ed85b-132e-4d64-86d5-9eb9f8fa0fe2)
Nov 10, 2018 14:23:02.306 [0x80af01c00] WARN - PubSub: Received notifyConnectivity event with incorrect async identifier (d16f7379-3907-46af-abdc-ee113ae3d196, expected 534ed85b-132e-4d64-86d5-9eb9f8fa0fe2)
Nov 10, 2018 14:23:02.306 [0x80af01c00] WARN - PubSub: Received notifyConnectivity event with incorrect async identifier (c3bde9ce-8a7f-4b5a-84bf-4e6541be81b1, expected 534ed85b-132e-4d64-86d5-9eb9f8fa0fe2)
Nov 10, 2018 14:23:02.306 [0x80af01c00] WARN - PubSub: Received notifyConnectivity event with incorrect async identifier (bb1ef857-c25f-4593-b6ed-03ab39f5f1cc, expected 534ed85b-132e-4d64-86d5-9eb9f8fa0fe2)
Nov 10, 2018 14:23:02.306 [0x80af01c00] WARN - PubSub: Received notifyConnectivity event with incorrect async identifier (9b14555b-87b0-45cb-9193-bf9381aa1ed2, expected 534ed85b-132e-4d64-86d5-9eb9f8fa0fe2)
Nov 10, 2018 14:23:12.231 [0x80d273000] WARN - Transcode runner appears to have died.
Nov 10, 2018 14:23:12.235 [0x80bc48400] WARN - Transcode runner appears to have died.
Nov 10, 2018 14:23:12.338 [0x80d273000] WARN - Timed out waiting for segment.
Nov 10, 2018 14:23:12.342 [0x80bc48400] WARN - Timed out waiting for segment.
Nov 10, 2018 14:23:13.424 [0x80bc48400] WARN - Transcode runner appears to have died.
Nov 10, 2018 14:23:13.449 [0x80d273000] WARN - Transcode runner appears to have died.
Nov 10, 2018 14:23:13.527 [0x80bc48400] WARN - Timed out waiting for segment.
Nov 10, 2018 14:23:13.556 [0x80d273000] WARN - Timed out waiting for segment.
Nov 10, 2018 14:23:14.573 [0x80d273000] WARN - Transcode runner appears to have died.
Nov 10, 2018 14:23:14.673 [0x80d273000] WARN - Timed out waiting for segment.
Nov 10, 2018 14:23:15.823 [0x80d273000] WARN - Transcode runner appears to have died.
Nov 10, 2018 14:23:15.929 [0x80d273000] WARN - Timed out waiting for segment.
Nov 10, 2018 14:23:17.602 [0x80d273000] WARN - Transcode runner appears to have died.
Nov 10, 2018 14:23:17.709 [0x80d273000] WARN - Timed out waiting for segment.
Nov 10, 2018 14:23:20.906 [0x80d273000] WARN - Transcode runner appears to have died.
Nov 10, 2018 14:23:21.012 [0x80d273000] WARN - Timed out waiting for segment.
Nov 10, 2018 14:23:21.901 [0x80b071b00] ERROR - Transcoder: Failed to delete session directory (boost::filesystem::remove: No such file or directory: "/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-zdgdu01jimsdv1ms5jce65c7-5ef69cc6-98af-48bd-9863-5fa838f55f83/chunk-stream0-00003.m4s")
Nov 10, 2018 14:23:28.079 [0x80d053800] ERROR - Error response for update:  ().
Nov 10, 2018 14:23:30.114 [0x80af00800] ERROR - Extras: Preroll file didn't exist or couldn't be read: ''.
Nov 10, 2018 14:23:30.194 [0x80d273000] ERROR - Error response for update:  ().
Nov 10, 2018 14:23:30.259 [0x80d273000] ERROR - Error response for update:  ().
Nov 10, 2018 14:23:30.263 [0x80d273000] INFO - CodecManager: obtaining decoder 'wmav2'
Nov 10, 2018 14:23:44.324 [0x80bc47f00] WARN - Transcode runner appears to have died.
Nov 10, 2018 14:23:44.333 [0x80bc47500] WARN - Transcode runner appears to have died.
Nov 10, 2018 14:23:44.431 [0x80bc47f00] WARN - Timed out waiting for segment.
Nov 10, 2018 14:23:44.434 [0x80bc47500] WARN - Timed out waiting for segment.
Nov 10, 2018 14:23:45.543 [0x80bc47500] WARN - Transcode runner appears to have died.
Nov 10, 2018 14:23:45.649 [0x80bc47500] WARN - Timed out waiting for segment.
Nov 10, 2018 14:23:45.727 [0x80bc47500] WARN - Transcode runner appears to have died.
Nov 10, 2018 14:23:45.834 [0x80bc47500] WARN - Timed out waiting for segment.
Nov 10, 2018 14:23:47.021 [0x80bc47500] WARN - Transcode runner appears to have died.
Nov 10, 2018 14:23:47.127 [0x80bc47500] WARN - Timed out waiting for segment.
Nov 10, 2018 14:23:48.129 [0x80bc47500] WARN - Transcode runner appears to have died.
Nov 10, 2018 14:23:48.230 [0x80bc47500] WARN - Timed out waiting for segment.
Nov 10, 2018 14:23:51.744 [0x80bc47500] WARN - Transcode runner appears to have died.
Nov 10, 2018 14:23:51.850 [0x80bc47500] WARN - Timed out waiting for segment.
Nov 10, 2018 14:23:53.866 [0x80bc47500] WARN - Transcode runner appears to have died.
Nov 10, 2018 14:23:53.966 [0x80bc47500] WARN - Timed out waiting for segment.
Nov 10, 2018 14:24:03.611 [0x80bc48900] WARN - Transcode runner appears to have died.
Nov 10, 2018 14:24:03.716 [0x80bc48900] WARN - Timed out waiting for segment.
Nov 10, 2018 14:24:04.403 [0x80d051f00] WARN - Transcode runner appears to have died.
Nov 10, 2018 14:24:04.510 [0x80d051f00] WARN - Timed out waiting for segment.
Nov 10, 2018 14:24:12.722 [0x80bc48900] WARN - Transcode runner appears to have died.
Nov 10, 2018 14:24:12.826 [0x80bc48900] WARN - Timed out waiting for segment.
Nov 10, 2018 14:24:15.093 [0x80bc48900] WARN - Transcode runner appears to have died.
Nov 10, 2018 14:24:15.194 [0x80bc48900] WARN - Timed out waiting for segment.
Nov 10, 2018 14:24:15.808 [0x80bc48400] ERROR - Failed to delete session directory (boost::filesystem::remove: No such file or directory: "/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-80rglrbnbq63g6lnbwjr2mao-d0f439fa-32a2-44ba-a845-c27c0d011266/chunk-stream0-00024.m4s")


Any help would be appreciated, I would really like to get this running.
 

itskando

Contributor
Joined
Apr 30, 2018
Messages
172
Having the exact same issue.

Please post your logs too;
this can be of great help to
anyone looking to help all of us : j

If you're unsure how; it's pretty easy -
see the section on Easily Gather Logs on this Plex documentation webpage
to get a .zip file of all of the logs.
 

mbotto

Cadet
Joined
Nov 10, 2018
Messages
3
btw: I've also upgraded plex to the latest version (using this script, just slightly modifying it since I have regular plex w/o plexpass), but the issue is still exactly the same.
 

itskando

Contributor
Joined
Apr 30, 2018
Messages
172

j0hnby

Explorer
Joined
Apr 22, 2017
Messages
68
Evening

You can ping in and out of the jail right? And you have checked the permissions on the specified transcode folders? I know mine played merry hell when I had the permissions set incorrectly.

J
 

itskando

Contributor
Joined
Apr 30, 2018
Messages
172
You can ping in and out of the jail right?

Code:
[root@Deetz ~]# jls
   JID  IP Address	  Hostname					  Path
	 3  192.168.86.10   plex						  /mnt/Lydia/iocage/jails/plex/root
[root@Deetz ~]# jexec 3 tcsh
root@plex:/ #


And you have checked the permissions on the specified transcode folders?


Code:
/tmp				 is owned by u:plex | g:wheel
/usr				 is owned by u:root | g:wheel
  except contents of
/usr/local/plexdata/ is owned by u:plex | g:972
 
Last edited:

itskando

Contributor
Joined
Apr 30, 2018
Messages
172
The guy from the below quote posted about
some potenially useful iocage commands here
(which I actually found through the plex forums).

Here is the contents of "iocage list" and "iocage get all plex_jail"

Here's my results:

Code:
[root@Deetz ~]# iocage list
+-----+------+-------+--------------+---------------+
| JID | NAME | STATE |   RELEASE	|	  IP4	  |
+=====+======+=======+==============+===============+
| 3   | plex | up	| 11.2-RELEASE | 192.168.86.10 |
+-----+------+-------+--------------+---------------+

Code:
[root@Deetz ~]# iocage get all plex
CONFIG_VERSION:14
allow_chflags:0allow_mlock:0
allow_mount:0
allow_mount_devfs:0
allow_mount_nullfs:0
allow_mount_procfs:0
allow_mount_tmpfs:0
allow_mount_zfs:0
allow_quotas:0
allow_raw_sockets:0
allow_set_hostname:1
allow_socket_af:0
allow_sysvipc:0
allow_tun:0
available:readonly
basejail:yes
boot:on
bpf:no
children_max:0
cloned_release:11.2-RELEASE
comment:none
compression:lz4
compressratio:readonly
coredumpsize:off
count:1
cpuset:off
cputime:off
datasize:off
dedup:off
defaultrouter:none
defaultrouter6:none
depends:none
devfs_ruleset:4
dhcp:off
enforce_statfs:2
exec_clean:1
exec_fib:0
exec_jail_user:root
exec_poststart:/usr/bin/true
exec_poststop:/usr/bin/true
exec_prestart:/usr/bin/true
exec_prestop:/usr/bin/true
exec_start:/bin/sh /etc/rc
exec_stop:/bin/sh /etc/rc.shutdown
exec_system_jail_user:0
exec_system_user:root
exec_timeout:60
host_domainname:none
host_hostname:plex
host_hostuuid:plex
host_time:yes
hostid:d3a23a44-8bf2-11e8-badd-0cc47a90dfc3
hostid_strict_check:off
interfaces:vnet0:bridge0
ip4:new
ip4_addr:igb0|192.168.86.10/24
ip4_saddrsel:1
ip6:new
ip6_addr:none
ip6_saddrsel:1
jail_zfs:off
jail_zfs_dataset:iocage/jails/plex/data
jail_zfs_mountpoint:none
last_started:2018-11-13 00:12:09
login_flags:-f root
mac_prefix:02ff60
maxproc:off
memorylocked:off
memoryuse:off
mount_devfs:1
mount_fdescfs:1
mount_linprocfs:0
mount_procfs:0
mountpoint:readonly
msgqqueued:off
msgqsize:off
nmsgq:off
notes:none
nsemop:off
nshm:off
nthr:off
openfiles:off
origin:readonly
owner:root
pcpu:off
priority:99
pseudoterminals:off
quota:none
release:11.2-RELEASE-p4
reservation:none
resolver:/etc/resolv.conf
rlimits:off
securelevel:2
shmsize:off
stacksize:off
state:up
stop_timeout:30
swapuse:off
sync_state:none
sync_target:none
sync_tgt_zpool:none
sysvmsg:new
sysvsem:new
sysvshm:new
template:no
type:pluginv2
used:readonly
vmemoryuse:off
vnet:off
vnet0_mac:none
vnet1_mac:none
vnet2_mac:none
vnet3_mac:none
vnet_default_interface:none
vnet_interfaces:none
wallclock:off

Inside the plex jail:

Code:
[root@Deetz ~]# jls
   JID  IP Address	  Hostname					  Path
	 3  192.168.86.10   plex						  /mnt/Lydia/iocage/jails/pl
ex/root
[root@Deetz ~]# jexec 3 tcsh
root@plex:/ #

Code:
root@plex:/ # ifconfig
em0: flags=8c02<BROADCAST,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500
		options=209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC
>
		ether 0c:c4:7a:90:df:c3
		hwaddr 0c:c4:7a:90:df:c3
		media: Ethernet autoselect
		status: no carrier
igb0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
		options=6403bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6>
		ether 0c:c4:7a:90:df:c2
		hwaddr 0c:c4:7a:90:df:c2
		inet 192.168.86.10 netmask 0xffffff00 broadcast 192.168.86.255
		media: Ethernet autoselect (1000baseT <full-duplex>)
		status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
		options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
		groups: lo

Code:
root@plex:/ # ping 8.8.8.8
ping: ssend socket: Operation not permitted

root@plex:/ # ping www.google.com
ping: ssend socket: Operation not permitted
 
Last edited:

itskando

Contributor
Joined
Apr 30, 2018
Messages
172
According to this thread:

Code:
## On host ##
iocage stop JAIL
iocage set ip4_addr="vnet0|192.168.100.222/24" vnet="on" boot="on" allow_raw_sockets="1" defaultrouter="192.168.100.1" JAIL
iocage start JAIL
###Then enter the jail and do a quick ping to see if you are getting out##
jls
jexec 7 csh
ping yahoo.com

##Update things##

portsnap fetch update
portmaster -aBd

OR

pkg update && pkg upgrade

##There was a new PMS in the repo##

service plexmediaserver{_plexpass} restart

##Now try playing files and or fetching metadata##



Just change your appropriate IP scheme and jail names where applicable.

So, I made changes:

Code:
iocage stop plex
iocage set ip4_addr="vnet0|192.168.86.10/24" vnet="on" boot="on" allow_raw_sockets="1" defaultrouter="192.168.86.1" plex


This failed to terminate+execute;
the enter key just kept creating newlines,
so I had to refresh the shell and start over.

(Anyone know why that happened? I couldn't figure out.)

Code:
iocage stop plex

iocage set ip4_addr="vnet0|192.168.86.10/24" plex
iocage set vnet="on" plex
iocage set boot="on" plex
iocage set allow_raw_sockets="1" plex
iocage set defaultrouter="192.168.86.1" plex

iocage start plex


Then, in plex jail (as detailed in previous post):

Code:
pkg update && pkg upgrade
service plexmediaserver restart

Now I get ping!

Code:
root@plex:/ # ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=120 time=25.781 ms
64 bytes from 8.8.8.8: icmp_seq=1 ttl=120 time=22.457 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=120 time=22.505 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=120 time=22.063 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=120 time=21.503 ms
^C
--- 8.8.8.8 ping statistics ---
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 21.503/22.862/25.781/1.503 ms


root@plex:/ # traceroute 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 64 hops max, 40 byte packets
1  testwifi.here (192.168.86.1)  8.096 ms  3.599 ms  3.714 ms
2  bdl1.wrx-cbr1.sbo-wrx.ma.cable.rcn.net (10.18.136.1)  14.867 ms  12.474 ms
10.869 ms
3  bdle32-sub211.aggr2.sbo.ma.rcn.net (146.115.22.213)  16.907 ms  15.729 ms  1
8.169 ms
4  207.172.19.50 (207.172.19.50)  19.519 ms
    bdle4.core1.sbo.ma.rcn.net (207.172.15.131)  21.973 ms  22.172 ms
5  hge0-2-0-0.core2.nyw.ny.rcn.net (207.172.19.213)  24.399 ms
    hge0-2-0-0.core1.nyw.ny.rcn.net (207.172.19.211)  20.458 ms
    hge0-2-0-0.core2.nyw.ny.rcn.net (207.172.19.213)  22.319 ms
6  bdle4.border1.nyw.ny.rcn.net (207.172.15.69)  23.048 ms
    bdle5.border1.nyw.ny.rcn.net (207.172.15.87)  20.059 ms
    bdle4.border1.nyw.ny.rcn.net (207.172.15.69)  30.767 ms
7  72.14.222.73 (72.14.222.73)  20.816 ms  21.562 ms  18.772 ms
8  108.170.248.97 (108.170.248.97)  20.862 ms
    108.170.248.65 (108.170.248.65)  22.986 ms
    108.170.248.1 (108.170.248.1)  29.844 ms
9  209.85.245.195 (209.85.245.195)  20.401 ms
    108.170.238.205 (108.170.238.205)  21.972 ms
    209.85.249.1 (209.85.249.1)  20.198 ms
10  google-public-dns-a.google.com (8.8.8.8)  22.038 ms  23.880 ms  28.107 ms


root@plex:/ # ping www.google.com
PING www.google.com (216.58.219.228): 56 data bytes
64 bytes from 216.58.219.228: icmp_seq=0 ttl=54 time=18.929 ms
64 bytes from 216.58.219.228: icmp_seq=1 ttl=54 time=21.520 ms
64 bytes from 216.58.219.228: icmp_seq=2 ttl=54 time=19.274 ms
64 bytes from 216.58.219.228: icmp_seq=3 ttl=54 time=19.068 ms
64 bytes from 216.58.219.228: icmp_seq=4 ttl=54 time=21.794 ms
^C
--- www.google.com ping statistics ---
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 18.929/20.117/21.794/1.265 ms
root@plex:/ #


Now transcoding works!
This is amazing!!

Where is the guide that says which parameters to enable for Plex?
I spent so long trying to get it right ~ thank you to all involved.
 
Last edited:

Wolfeman0101

Patron
Joined
Jun 14, 2012
Messages
428
So just in case anyone else is having an issue my sounded just like yours but deleting my Preferences.xml seemed to fix it for me.
 

j0hnby

Explorer
Joined
Apr 22, 2017
Messages
68
You were also using a combination of the old warden commands, and new iocage - that's a bit confusing.

Also, you had no default route set in your old jail.
 
Last edited:

mbotto

Cadet
Joined
Nov 10, 2018
Messages
3
Setting the jail default route manually also fixed the transcoding for me (this should be doable/configurable at plex Plugin install) - obviously this is a bug? Even though I'm happy now I would still like to know what does internet access has to do with transcoding? I'm suspecting that plex is sending some kind of data/statistics every time it plays a movie? This sucks. Any way to disable this?
 

itskando

Contributor
Joined
Apr 30, 2018
Messages
172
You were also using a combination of the old warden commands, and new iocage - that's a bit confusing.

Just following what the source I cited gave me to work with :D
What do you recommend using where I used warden commands?

You had no default route set in your old jail.

Yeah, I'd asked in a couple of different threads what to put there,
but I wasn't turning up answers, and
even when I had put the right thing there originally,
nothing still worked because other parameters were still wrong.

I also created a plex user in freeNAS to match that of the plex jail.
Can I delete this or was this actually necessary?
 

j0hnby

Explorer
Joined
Apr 22, 2017
Messages
68
What do you recommend using where I used warden commands?
You were using it to get console access to your jail right? (I had to search for what you did as have never used jls - I only got geeky with jails in IOCAGE) - and you used some of the others already too

The basics are:
iocage list

iocage console jailname

iocage start jailname

iocage stop jailname

iocage restart jailname

The iocage documentation helped me a lot when starting to use it: https://iocage.readthedocs.io/en/latest/index.html
 

AirborneTrooper

Contributor
Joined
Jun 20, 2014
Messages
148
I have rebuilt my PMS Plexpass several times since upgrading to 11.2 and moving to iocage in attempt to fix this. I followed the tutorial here: https://forums.freenas.org/index.ph...lidarr-jackett-ombi-transmission-organizr.58/

I have done all the fixes (they were already done since the tutorial is updated) and I can't get any files that need transcoding to play. I am not sure what to do. Plex worked fine when it was in the warden jail and now it's not. Super frustrated.
 

itskando

Contributor
Joined
Apr 30, 2018
Messages
172

AirborneTrooper

Contributor
Joined
Jun 20, 2014
Messages
148
Did you read posts #11 and #12?
I suggest posting your outputs.
Yeah, I was able to ping in the jail from the beginning. I was just able to fix it though. I had to delete the jail and install it as a plugin from within FreeNAS 11.2. Once I did this fix and magically the new PMS plugin started transcoding my files like normal. I'm sure it was a permission issue but I literally spent all day and couldn't figure it out. Tried this as a last resort and it's working. Happy wife and kids now.

Code:
iocage set ip4_addr="vnet0|172.16.1.250/24" defaultrouter="172.16.1.1" vnet="on" allow_raw_sockets="1" boot="on" plexiocage set ip4_addr="vnet0|172.16.1.250/24" defaultrouter="172.16.1.1" vnet="on" allow_raw_sockets="1" boot="on" plex
 
Top