Can not get Sync to Work for the life of me

Server Version#: 1.16.5.1554
Player Version#: Latest iOS

I’ve been trying to get Plex Sync to work for the past few days. I’m running Plex on Ubuntu 16.04 (not dockerized), with storage provided by PlexDrive. I am able to play all my media perfectly fine, even with it transcoded. I have updated all Plex clients to the latest, and have ensured there’s plenty of space on my drives.

For the life of me, I can’t seem to get syncing to work. Every time I try, the sync appears to start, the conversion appears to happen at 6x to 11x (depending on file), and then, suddenly stops with “The transcoder has encountered an error” before any progress is made.

Can someone please take a look at my logs to help me see where Plex is having trouble?

I’ve noticed a few lines in the logs that seem to be of concern:

Aug 31, 2019 02:06:03.645 [0x7fba9d7fa700] DEBUG - Using default transcode duration of 120 minutes
Aug 31, 2019 02:06:03.645 [0x7fba9d7fa700] DEBUG - Started session successfully: 5e489090-ce96-421c-a694-33a88945b53a
Aug 31, 2019 02:06:03.645 [0x7fbaaeffd700] DEBUG - Completed: [127.0.0.1:40192] 204 PUT /video/:/transcode/session/5e489090-ce96-421c-a694-33a88945b53a/c21dd568-6878-4dd1-b112-3b67b127cfc3/progress?duration=3637.184000 (16 live) 0ms 203 bytes (pipelined: 13) (range: bytes=0-) 
Aug 31, 2019 02:06:03.673 [0x7fbaaeffd700] DEBUG - Auth: authenticated user 1 as fjen
Aug 31, 2019 02:06:03.674 [0x7fba5effd700] DEBUG - Request: [142.129.145.3:13781 (WAN)] GET /status/sessions/background (16 live) TLS GZIP Signed-in Token (fjen)
Aug 31, 2019 02:06:03.675 [0x7fbaaeffd700] DEBUG - Completed: [142.129.145.3:13781] 200 GET /status/sessions/background (16 live) TLS GZIP 2ms 748 bytes (pipelined: 42)
Aug 31, 2019 02:06:04.150 [0x7fba5ffff700] DEBUG - Streaming Resource: Unthrottling session 0x7fba7c005b50:5e489090-ce96-421c-a694-33a88945b53a which is using static transcoder slot.  Used slots is now 1
Aug 31, 2019 02:06:06.604 [0x7fba5ffff700] ERROR - [Transcoder] [mp4 @ 0x1f3ba00] Application provided duration: 14399999000 is invalid
Aug 31, 2019 02:06:06.605 [0x7fba5d7fa700] ERROR - [Transcoder] av_interleaved_write_frame(): Invalid argument
Aug 31, 2019 02:06:06.662 [0x7fbaaffff700] DEBUG - Jobs: '/usr/lib/plexmediaserver/Plex Transcoder' exit code for process 18674 is 1 (failure)
Aug 31, 2019 02:06:06.662 [0x7fbaacff9700] DEBUG - Streaming Resource: Terminating session 0x7fba7c005b50:5e489090-ce96-421c-a694-33a88945b53a which is using static transcoder slot.  Used slots is now 0
Aug 31, 2019 02:06:06.662 [0x7fbaacff9700] DEBUG - Streaming Resource: Terminated session 0x7fba7c005b50:5e489090-ce96-421c-a694-33a88945b53a with reason Conversion failed. The transcoder exited due to an error.
Aug 31, 2019 02:06:06.662 [0x7fbaadffb700] DEBUG - Killing job.
Aug 31, 2019 02:06:06.663 [0x7fbaadffb700] DEBUG - Signalling job ID 18674 with 9
Aug 31, 2019 02:06:06.663 [0x7fbaadffb700] DEBUG - Job was already killed, not killing again.
Aug 31, 2019 02:06:06.663 [0x7fbaadffb700] DEBUG - Stopping transcode session 5e489090-ce96-421c-a694-33a88945b53a
Aug 31, 2019 02:06:06.664 [0x7fbaadffb700] DEBUG - Transcoder: Cleaning old transcode directories.
Aug 31, 2019 02:06:06.664 [0x7fbaadffb700] DEBUG - Transcoder: Cleaning old transcode directory: "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-5e489090-ce96-421c-a694-33a88945b53a-c21dd568-6878-4dd1-b112-3b67b127cfc3"
Aug 31, 2019 02:06:06.665 [0x7fbaadffb700] DEBUG - Whacked session 5e489090-ce96-421c-a694-33a88945b53a, 0 remaining.
Aug 31, 2019 02:06:06.665 [0x7fba9d7fa700] DEBUG - Transcoder: Cleaning old transcode directories.
Aug 31, 2019 02:06:06.665 [0x7fba9d7fa700] DEBUG - Whacked session 5e489090-ce96-421c-a694-33a88945b53a, 0 remaining.
Aug 31, 2019 02:06:06.666 [0x7fba9d7fa700] DEBUG - TranscodeJobManager: transcode of metadata item 14275 failed with exit code 1
Aug 31, 2019 02:06:06.679 [0x7fba9d7fa700] DEBUG - TranscodeJobManager: [Running] job 5e489090-ce96-421c-a694-33a88945b53a complete - failure / transcoderError
Aug 31, 2019 02:06:06.679 [0x7fba5cff9700] DEBUG - BPQ: onAsynchronousJobComplete
Aug 31, 2019 02:06:06.679 [0x7fba5cff9700] DEBUG - BPQ: completing transcode for sync metadata item 14275: failure / transcoderError
Aug 31, 2019 02:06:06.682 [0x7fba5cff9700] DEBUG - Sync: processed item 14275 for sync list 13107300, sync item 38586814: failure/transcoderError
Aug 31, 2019 02:06:06.683 [0x7fba5cff9700] DEBUG - BPQ: generator 611 changed state: pending -> complete

I’m not sure what to make of this, or where to even start to fix the issues unfortunately, as these logs don’t seem to be too descriptive.

Plex Media Server Logs_2019-08-31_02-06-12.zip (862.1 KB)

Is the Library directory on a drive which is not the OS root drive or hasn’t been mounted with the exec option?

Error code 1 = “Permission denied” when coming from the transcoder This usually means it couldn’t load the codec (a shared library) into memory.

Edit: ignore previous response.

The PMS Library drive is on the OS root drive itself. Could it be a missing binary that I should install? I installed PMS directly using dpkg -i.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.