Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

Transcoder fails when `/transcode` is on a network share

gbooker02gbooker02 Posts: 596Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee
edited April 11 in Docker

Update: This has been resolved in 1.5.4 which is available to the public. Removing the announce status on this topic.

Starting with 1.5.1, if the transcoder is working with either the AC3 (Dolby Digital), EAC3 (Dolby Digital+), or TrueHD, then the process can fail if the /transcode is really located on a network share. The transcoder requires certain filesystem capabilities to work which are typically not available on shares.

This is most relevant for FreeNAS Corral users because any volumes you create are network shares. If you examine your docker config and find that /transcode is located on the host, such as seen below, then you need to change this:

The easiest solution is to delete the volume and then it will persist in the VM. Check the checkbox next to the volume and then hit the trash button. Finally save the container.

After this you will see the /transcode mount existing, but it will be in the VM instead.

Lastly, since FreeNAS does NOT recreate the container correctly when you edit it, it completely bypasses the initial setup scripts that run in the container the first time. One of these steps is to correct the permissions of the /transcode directory. So click on the Console button for your container and in the new browser window type chown -R plex:plex /transcode.

«1345

Comments

  • x-Timmey-xx-Timmey-x Posts: 17Members, Plex Pass Plex Pass

    Perfect, it works! Thanks!

  • mrbraxmrbrax Posts: 13Members, Plex Pass Plex Pass

    @gbooker02 said:
    Lastly, since FreeNAS does NOT recreate the container correctly when you edit it, it completely bypasses the initial setup scripts that run in the container the first time. One of these steps is to correct the permissions of the /transcode directory. So click on the Console button for your container and in the new browser window type chown -R plex:plex /transcode.

    This was the last crucial step, thanks!!

  • mchianese@hotmail.commchianese@hotmail.com Posts: 7Members, Plex Pass Plex Pass

    Thanks for the solution! Worked for me!

  • AltoniusAltonius Posts: 17Members, Plex Pass Plex Pass

    is this the lack of inotify functionality that is causing the problem? The weird thing is that for me it works (with the transcode mapped to a network drive) if I lower the transcoding to 2Mbs 720. Is there some sort of different transcode process followed at the lower rates?

    I created the below post for this same issue, and was trying to work out if this is something that is unique to 1.5.x and whether it could be fixed. Any Plex employee want to chime in on whether this will be fixed, or whether the new 1.5.x train won't allow transcode to be mapped outside the Docker Container?

    https://forums.plex.tv/discussion/265449/problem-with-freenas-plexpass-docker-container-and-transcode-path-mapping#latest

  • StSimm1StSimm1 Plex Dev Team LondonPosts: 692Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee

    Yes, it will be fixed in an upcoming release.

    Plex Media Server team lead & developer in the 'Plex Cloud' team

  • anthonwsanthonws Posts: 107Members, Plex Pass Plex Pass

    Does this apply to things like UnRaid + Docker?

    Btw, wasn't the "Transcode" folder automatically configured if there's nothing in the docker config?

    Cheers,
    anthonws.

    . Win10 + HW Transcoding (QSV) | Define R5 Black + i5 4690K + 32GB RAM + 256GB SSD (OS) + 525GB SSD (VMs) + 4TB Storage Space + Nvidia GTX 760 DCU II OC
    . Shield TV (2015) + Kodi 18 + Plex for Android App | Minix NEO X6 + Android 5.1.1 + Kodi 18 + inputstream.adaptive + plugin.video.netflix

  • nxtiaknxtiak Posts: 6Members, Plex Pass Plex Pass

    @anthonws said:
    Does this apply to things like UnRaid + Docker?

    Btw, wasn't the "Transcode" folder automatically configured if there's nothing in the docker config?

    Cheers,
    anthonws.

    I too would like to know how to fix on unRAID + Docker

  • HumtekHumtek Posts: 7Members, Plex Pass Plex Pass

    This doesn't seem to only be affecting FreeNAS. I'm having this same issue on Ubuntu + Docker. I'm running PMS 1.5.3

  • henry.pn.nguyenhenry.pn.nguyen Posts: 5Members, Plex Pass Plex Pass

    Thanks, worked for me too
    [FreeNAS-Corral-MASTER-201703282242][Plex Docker Version 1.5.0.3501]

  • rlobbinsrlobbins Posts: 181Members, Plex Pass Plex Pass

    Just curious when this fix will be rolled out as it also affects the remote transcode project.

  • Adam​ M.Adam​ M. Posts: 9Members, Plex Pass Plex Pass

    I'm using Seagate Personal Cloud to host my PMS. All the videos work fine on Roku but keep buffuring on Apple TV 4... Is this the same issue?

  • gbooker02gbooker02 Posts: 596Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee

    @rlobbins said:
    Just curious when this fix will be rolled out as it also affects the remote transcode project.

    The next release should resolve this. I'll reply here when the fix is released and move this topic out of being an announcement.

    @adamm@live.ca said:
    I'm using Seagate Personal Cloud to host my PMS. All the videos work fine on Roku but keep buffuring on Apple TV 4... Is this the same issue?

    Likely not. This issue causes files to not play back at all.

  • kopfpilotkopfpilot Posts: 298Members, Plex Pass Plex Pass

    I am on linuxserver/plex and version 1.5.3.3580 has the same transcoder problem.
    Though, after downgrading to 1.5.2.3557 transcoding works like a charm again.

    Problems with remote connection?

    • Does the server have a static-ip and is using a wired connection?
    • Is port forwarding activated in your router and matches the port in PMS->Settings->Remote-Access->Manually enter Port
    • Does the external ip (in PMS) match the wan ip (in router) and is the external port accessible (see: www.canyouseeme.org)?
    • Does the plex.web access work using the url http://remote-ip:32400/web (or the port you specified in your router)?
    • Is Secure conection disabled for troubleshoot? If not:does the router support dns rebind protection and is *.plex.direct excluded?
    • Are any special network configurations involved (Jumbo Frames / IPv6/ VPN / SSH port forwarding / more than a single router or subnet)?
    • Are any Custom server access URLs added?
    • Brand and model of the router?

    What did you try so far (be as specific as you can)?

  • HDKDarrinHDKDarrin Posts: 2Members

    Would this also apply to those of us running our /transcode directory from a RAM disk?

  • kopfpilotkopfpilot Posts: 298Members, Plex Pass Plex Pass

    @kopfpilot said:
    I am on linuxserver/plex and version 1.5.3.3580 has the same transcoder problem.
    Though, after downgrading to 1.5.2.3557 transcoding works like a charm again.

    While it was working with 1.5.2.3557 last night, it stopped working.

    Problems with remote connection?

    • Does the server have a static-ip and is using a wired connection?
    • Is port forwarding activated in your router and matches the port in PMS->Settings->Remote-Access->Manually enter Port
    • Does the external ip (in PMS) match the wan ip (in router) and is the external port accessible (see: www.canyouseeme.org)?
    • Does the plex.web access work using the url http://remote-ip:32400/web (or the port you specified in your router)?
    • Is Secure conection disabled for troubleshoot? If not:does the router support dns rebind protection and is *.plex.direct excluded?
    • Are any special network configurations involved (Jumbo Frames / IPv6/ VPN / SSH port forwarding / more than a single router or subnet)?
    • Are any Custom server access URLs added?
    • Brand and model of the router?

    What did you try so far (be as specific as you can)?

  • kopfpilotkopfpilot Posts: 298Members, Plex Pass Plex Pass
    edited April 8

    Appears that the new transcoder implementation does not work with docker at all?

    I tried a third option, where the transcode folder is in the same general container aufs overlay.
    I also tried using an implicit volume mapping (=3nd screenshot from 1st post) and an explicit volume mapping (=1st screenshot from 1st post). All three variations result in data beeing written into the transcode folder with proper ownership and permissions, but can't be used by the server.

    Example mapping for an explicit volume mount (1st screenshot from 1st post) looks like this in docker inspect:
    { "Source": "/opt/docker/plex/transcode", "Destination": "/transcode", "Mode": "rw", "RW": true, "Propagation": "rprivate" }

    The "vm" mount point in the 3rd screenshot from 1st post is an implicit volume mapping. It applies if a volume is declared in the Dockerfile, but no volume mapping is provided during container creation.

    With docker inspect it translates to (random generated id will differ on each container):
    { "Name": "1d78465e2b45de609d0454cff7521507898bfb445d3a397d114077003c5cb110", "Source": "/var/lib/docker/volumes/1d78465e2b45de609d044cff7521507898bfb445d3a397d114077003c5cb110/_data", "Destination": "/transcode", "Driver": "local", "Mode": "", "RW": true, "Propagation": "" }

    In order to bypass implicit volume mapping of the /transcode folder, I created a /test folder inside the container, chowned it to the plex user:group and changed the path in the transcoder settings to /test.

    Thus, data in /test should have been inside the general container overlay, rather then in an implicit volume (like shown above).
    But this doesn't work either, even though I can see the files are created in /test and have the expected ownership and permissions.

    Problems with remote connection?

    • Does the server have a static-ip and is using a wired connection?
    • Is port forwarding activated in your router and matches the port in PMS->Settings->Remote-Access->Manually enter Port
    • Does the external ip (in PMS) match the wan ip (in router) and is the external port accessible (see: www.canyouseeme.org)?
    • Does the plex.web access work using the url http://remote-ip:32400/web (or the port you specified in your router)?
    • Is Secure conection disabled for troubleshoot? If not:does the router support dns rebind protection and is *.plex.direct excluded?
    • Are any special network configurations involved (Jumbo Frames / IPv6/ VPN / SSH port forwarding / more than a single router or subnet)?
    • Are any Custom server access URLs added?
    • Brand and model of the router?

    What did you try so far (be as specific as you can)?

  • ryan810cowsryan810cows Posts: 7Members, Plex Pass Plex Pass

    I will try removing the post based transcode location tonight and make it a VM. I'm currently running FreeNAS Corral with the latest Plex pass docker container. I too am not being able to transcode files. I get the "Transcode failed" error.

    It's a MKV file.

    I also read that using the non-Plex pass container works. I'll try changing the transcode file location first.

    If that works, is that supposed to be a permanent fix or is it supposed to be fixed on an upcoming update?

    OS: FreeNAS Corral

  • tthorn125tthorn125 Posts: 17Members, Plex Pass Plex Pass

    This workaround does NOT work. Still many issues. When is a fix coming out?

  • ruablack2ruablack2 Posts: 3Members, Plex Pass Plex Pass

    It's a problem wiht unRAID docker too!
    At least roll it back to 1.5.2 (or whenever it worked) until you guys figure this shiz out.
    Love you guys but this is really frustrating.

    My Plex Server
    OS: UnRAID Pro
    Specs: 15TB Array - 250GB SSD Cache - 3.4GHz Quad-Core Xeon - 16GB ECC RAM
    Network: (3) 1Gb Bonded Link | Internet: 250Mb\100Mb

    Media Devices
    iPad (4), iPhone (4), MacBook (1), Samsung TV (2), Vizio TV (1), New Apple TV (2), Fire TV Stick (1), New Fire TV (1), Sony BRAVIA Andriod (1)

  • kopfpilotkopfpilot Posts: 298Members, Plex Pass Plex Pass

    today, I reverted to 1.4.4.3495. With linuxserver/plex you just need to set the VERSION environment variable. You can find the proper version for previously installed versions in Library\Application Support\Plex Media Server\Crash Reports.

    Problems with remote connection?

    • Does the server have a static-ip and is using a wired connection?
    • Is port forwarding activated in your router and matches the port in PMS->Settings->Remote-Access->Manually enter Port
    • Does the external ip (in PMS) match the wan ip (in router) and is the external port accessible (see: www.canyouseeme.org)?
    • Does the plex.web access work using the url http://remote-ip:32400/web (or the port you specified in your router)?
    • Is Secure conection disabled for troubleshoot? If not:does the router support dns rebind protection and is *.plex.direct excluded?
    • Are any special network configurations involved (Jumbo Frames / IPv6/ VPN / SSH port forwarding / more than a single router or subnet)?
    • Are any Custom server access URLs added?
    • Brand and model of the router?

    What did you try so far (be as specific as you can)?

«1345
Sign In or Register to comment.