Need to move METADATA folder to make space

Server Version#: 4.8.3
Player Version#:

Hi,

I love my plex media server, which I run on a Raspberry Pi. The problem I am having is that the metadata for my media is stored automatically on the root of my Raspberry Pi. The SD Card runs out of space very quickly and the server stops responding then.

Is there a way to specify the location of the metadata and place it on an external drive, for example, so that it doesn’t eat up room on the root of the local system?

Thanks so much!

1 Like

That worked, thank you!

It did reset my server, but that’s fine, all metadata going forward is saved at the new location, which is what I wanted.

Cheers!

Unfortunately I spoke too soon. I can’t play most of my movies from my server on my devices (Apple TV, iPad and iPhone). I get an error on my devices that says “Conversion failed. The transcoder exited due to an error”.

When I watch the console on the server while trying to play content, I get 3 errors repeatedly:

  1. ClientProfileExtra: video transcode target already exists for streaming hls

  2. [Transcoder] Unknown decoder ‘h264’

  3. Got a request to stop a transcode session without a session GUID (or with an invalid one)

Any help would be appreciated!

Cheers!

Please recreate the failure.

Settings - Server - Troubleshooting - Download Logs

Attach the ZIP file it gives you

Let me see it please.

This issue is independent of the other. We’ll solve this one too

Cool, thanks. Here it is attached - thanks a mill

Plex Media Server Logs_2019-11-14_00-22-36.zip (2.3 MB)

Any help with this would be appreciated. :slight_smile:

This is odd.

  1. It starts transcoding
  2. It starts and finishes a few blocks of data
  3. It then complains of no codec.
Nov 13, 2019 22:41:45.450 [0xa1dfe450] DEBUG - Starting a transcode session 2F0D762D-D79A-4A37-ADE8-76A7CD1B93A9 at offset -1.0 (state=3)
Nov 13, 2019 22:41:45.480 [0xa1dfe450] DEBUG - [Universal] Using local file path instead of URL: /disks/PLEXDRIVE01/TV/family.guy.s18e06.720p.web.x264-tbs[eztv].mkv
Nov 13, 2019 22:41:45.481 [0xa1dfe450] DEBUG - Job running: EAE_ROOT='/tmp/pms-952cece1-00a6-4850-9081-05a29e434401/EasyAudioEncoder' FFMPEG_EXTERNAL_LIBS='/disks/PLEXDRIVE01/RPiMetaData/Plex\ Media\ Server/Codecs/395e79c-2735-linux-armv7hf_neon/' XDG_CACHE_HOME='/disks/PLEXDRIVE01/RPiMetaData/Plex Media Server/Cache' XDG_DATA_HOME='/usr/lib/plexmediaserver/Resources' X_PLEX_TOKEN='xxxxxxxxxxxxxxxxxxxx' '/usr/lib/plexmediaserver/Plex Transcoder' '-codec:1' 'h264' '-noaccurate_seek' '-analyzeduration' '20000000' '-probesize' '20000000' '-i' '/disks/PLEXDRIVE01/TV/family.guy.s18e06.720p.web.x264-tbs[eztv].mkv' '-map' '0:1' '-codec:0' 'copy' '-map' '0:0' '-codec:1' 'copy' '-segment_format' 'mpegts' '-f' 'ssegment' '-individual_header_trailer' '0' '-segment_time' '10' '-segment_start_number' '0' '-segment_copyts' '1' '-segment_time_delta' '0.0625' '-segment_list' 'http://127.0.0.1:32400/video/:/transcode/session/2F0D762D-D79A-4A37-ADE8-76A7CD1B93A9/94a26611-6eff-4ae0-ad75-c6c9eb46b12b/seglist' '-segment_list_type' 'csv' '-segment_list_size' '5' '-segment_list_separate_stream_times' '1' '-segment_list_unfinished' '1' '-max_delay' '5000000' '-avoid_negative_ts' 'disabled' '-map_metadata' '-1' '-map_chapters' '-1' 'media-%05d.ts' '-start_at_zero' '-copyts' '-vsync' 'cfr' '-y' '-nostats' '-loglevel' 'quiet' '-loglevel_plex' 'error' '-progressurl' 'http://127.0.0.1:32400/video/:/transcode/session/2F0D762D-D79A-4A37-ADE8-76A7CD1B93A9/94a26611-6eff-4ae0-ad75-c6c9eb46b12b/progress'
Nov 13, 2019 22:41:45.481 [0xa1dfe450] DEBUG - Jobs: Starting child process with pid 6278
Nov 13, 2019 22:41:45.491 [0xa7bf3450] DEBUG - Request: [127.0.0.1:47556 (Loopback)] PUT /video/:/transcode/session/2F0D762D-D79A-4A37-ADE8-76A7CD1B93A9/94a26611-6eff-4ae0-ad75-c6c9eb46b12b/progress?status=startup (18 live) Signed-in Token (braftery@gmail.com) (range: bytes=0-) 
Nov 13, 2019 22:41:45.492 [0xb1dff450] DEBUG - Completed: [127.0.0.1:47556] 204 PUT /video/:/transcode/session/2F0D762D-D79A-4A37-ADE8-76A7CD1B93A9/94a26611-6eff-4ae0-ad75-c6c9eb46b12b/progress?status=startup (18 live) 1ms 203 bytes (pipelined: 1) (range: bytes=0-) 
Nov 13, 2019 22:41:45.509 [0xaefff450] DEBUG - Request: [127.0.0.1:47556 (Loopback)] PUT /video/:/transcode/session/2F0D762D-D79A-4A37-ADE8-76A7CD1B93A9/94a26611-6eff-4ae0-ad75-c6c9eb46b12b/progress?status=startup (17 live) Signed-in Token (braftery@gmail.com) (range: bytes=0-) 
Nov 13, 2019 22:41:45.509 [0xb1dff450] DEBUG - Completed: [127.0.0.1:47556] 204 PUT /video/:/transcode/session/2F0D762D-D79A-4A37-ADE8-76A7CD1B93A9/94a26611-6eff-4ae0-ad75-c6c9eb46b12b/progress?status=startup (17 live) 1ms 203 bytes (pipelined: 2) (range: bytes=0-) 
Nov 13, 2019 22:41:45.510 [0xa6bf1450] DEBUG - Request: [127.0.0.1:47556 (Loopback)] PUT /video/:/transcode/session/2F0D762D-D79A-4A37-ADE8-76A7CD1B93A9/94a26611-6eff-4ae0-ad75-c6c9eb46b12b/progress?status=opening (17 live) Signed-in Token (braftery@gmail.com) (range: bytes=0-) 
Nov 13, 2019 22:41:45.511 [0xb1dff450] DEBUG - Completed: [127.0.0.1:47556] 204 PUT /video/:/transcode/session/2F0D762D-D79A-4A37-ADE8-76A7CD1B93A9/94a26611-6eff-4ae0-ad75-c6c9eb46b12b/progress?status=opening (17 live) 0ms 203 bytes (pipelined: 3) (range: bytes=0-) 
Nov 13, 2019 22:41:45.513 [0x9cffb450] DEBUG - Request: [127.0.0.1:47556 (Loopback)] PUT /video/:/transcode/session/2F0D762D-D79A-4A37-ADE8-76A7CD1B93A9/94a26611-6eff-4ae0-ad75-c6c9eb46b12b/progress?status=opened (17 live) Signed-in Token (braftery@gmail.com) (range: bytes=0-) 
Nov 13, 2019 22:41:45.514 [0xb15fe450] DEBUG - Completed: [127.0.0.1:47556] 204 PUT /video/:/transcode/session/2F0D762D-D79A-4A37-ADE8-76A7CD1B93A9/94a26611-6eff-4ae0-ad75-c6c9eb46b12b/progress?status=opened (17 live) 0ms 203 bytes (pipelined: 4) (range: bytes=0-) 
Nov 13, 2019 22:41:45.515 [0xaabf9450] DEBUG - Request: [127.0.0.1:47556 (Loopback)] PUT /video/:/transcode/session/2F0D762D-D79A-4A37-ADE8-76A7CD1B93A9/94a26611-6eff-4ae0-ad75-c6c9eb46b12b/progress/stream?index=1&id=0&codec=h264&type=video (17 live) Signed-in Token (braftery@gmail.com) (range: bytes=0-) 
Nov 13, 2019 22:41:45.516 [0xb15fe450] DEBUG - Completed: [127.0.0.1:47556] 200 PUT /video/:/transcode/session/2F0D762D-D79A-4A37-ADE8-76A7CD1B93A9/94a26611-6eff-4ae0-ad75-c6c9eb46b12b/progress/stream?index=1&id=0&codec=h264&type=video (17 live) 0ms 195 bytes (pipelined: 5) (range: bytes=0-) 
Nov 13, 2019 22:41:45.517 [0xa63f0450] ERROR - [Transcoder] Unknown decoder 'h264'
Nov 13, 2019 22:41:45.518 [0xb2fff450] DEBUG - Jobs: '/usr/lib/plexmediaserver/Plex Transcoder' exit code for process 6278 is 1 (failure)
Nov 13, 2019 22:41:45.518 [0xaddff450] DEBUG - Streaming Resource: Terminated session 0xafa83c48:F7705E16-7C52-4007-BF93-3367122D8D8E with reason Conversion failed. The transcoder exited due to an error.
Nov 13, 2019 22:41:45.518 [0xa1dfe450] DEBUG - Using default transcode duration of 120 minutes
Nov 13, 2019 22:41:45.518 [0xa1dfe450] DEBUG - Started session successfully: 2F0D762D-D79A-4A37-ADE8-76A7CD1B93A9

Let’s make it reload the codecs

  1. Stop Plex
  2. Drill into Codecs directory under “Library/Application Support/Plex Media Server”
  3. Delete any codecs with “h264” in the name.
  4. Start Plex
  5. Go back to the video which caused the problem.
  6. “Analyze” it
  7. Start playback (slightly longer start time as the codec is downloaded fresh this one time)
  8. Verify results.

Still comes up with the same result and I’ve tried that twice now. I did wonder if it had anything to do with permissions on the external drive, but I’ve opened permissions to all users and still having the same problem. Updated logs attached here.Plex Media Server Logs_2019-11-17_16-04-28.zip (4.2 MB)

@Rafterb2

You have a major networking instability problem.

The network adapter toggles from ONLINE to OFFLINE and back.
PMS will not work until main networking is stable.

Nov 17, 2019 06:51:01.135 [0xb1bff450] WARN - NetworkServiceBrowser: Error sending out discover packet from 192.168.0.17 to 239.255.255.250: Operation not permitted
Nov 17, 2019 06:51:11.135 [0xa31ff450] WARN - NetworkServiceBrowser: Error sending out discover packet from 192.168.0.17 to 239.255.255.250: Operation not permitted
Nov 17, 2019 06:51:21.136 [0xa5ded450] WARN - NetworkServiceBrowser: Error sending out discover packet from 192.168.0.17 to 239.255.255.250: Operation not permitted
Nov 17, 2019 06:51:31.136 [0xad5fc450] WARN - NetworkServiceBrowser: Error sending out discover packet from 192.168.0.17 to 239.255.255.250: Operation not permitted
Nov 17, 2019 06:51:31.965 [0xaadf7450] DEBUG - NetworkInterface: received Netlink message len=56, type=RTM_NEWLINK, flags=0x0
Nov 17, 2019 06:51:31.965 [0xaadf7450] DEBUG - NetworkInterface: Netlink information message family=0, type=1, index=3, flags=0x1003, change=0x0
Nov 17, 2019 06:51:31.965 [0xaadf7450] DEBUG - Network change.
Nov 17, 2019 06:51:31.965 [0xaadf7450] DEBUG - NetworkInterface: Notified of network changed (force=0)
Nov 17, 2019 06:51:31.966 [0xaadf7450] DEBUG - Network change notification but nothing changed.
Nov 17, 2019 06:51:41.137 [0xa31ff450] WARN - NetworkServiceBrowser: Error sending out discover packet from 192.168.0.17 to 239.255.255.250: Operation not permitted
Nov 17, 2019 06:51:51.137 [0xa51ff450] WARN - NetworkServiceBrowser: Error sending out discover packet from 192.168.0.17 to 239.255.255.250: Operation not permitted
Nov 17, 2019 06:52:01.138 [0xa15ff450] WARN - NetworkServiceBrowser: Error sending out discover packet from 192.168.0.17 to 239.255.255.250: Operation not permitted
Nov 17, 2019 06:52:11.138 [0xa05fd450] WARN - NetworkServiceBrowser: Error sending out discover packet from 192.168.0.17 to 239.255.255.250: Operation not permitted
Nov 17, 2019 06:52:21.138 [0x9fdfc450] WARN - NetworkServiceBrowser: Error sending out discover packet from 192.168.0.17 to 239.255.255.250: Operation not permitted
Nov 17, 2019 06:52:31.139 [0x9b5f3450] WARN - NetworkServiceBrowser: Error sending out discover packet from 192.168.0.17 to 239.255.255.250: Operation not permitted
Nov 17, 2019 06:52:31.968 [0xaadf7450] DEBUG - NetworkInterface: received Netlink message len=56, type=RTM_NEWLINK, flags=0x0
Nov 17, 2019 06:52:31.969 [0xaadf7450] DEBUG - NetworkInterface: Netlink information message family=0, type=1, index=3, flags=0x1003, change=0x0
Nov 17, 2019 06:52:31.969 [0xaadf7450] DEBUG - Network change.
Nov 17, 2019 06:52:31.969 [0xaadf7450] DEBUG - NetworkInterface: Notified of network changed (force=0)
Nov 17, 2019 06:52:31.970 [0xaadf7450] DEBUG - Network change notification but nothing changed.
Nov 17, 2019 06:52:41.139 [0xb1bff450] WARN - NetworkServiceBrowser: Error sending out discover packet from 192.168.0.17 to 239.255.255.250: Operation not permitted
Nov 17, 2019 06:52:51.140 [0xaedff450] WARN - NetworkServiceBrowser: Error sending out discover packet from 192.168.0.17 to 239.255.255.250: Operation not permitted
Nov 17, 2019 06:53:01.140 [0xb01fd450] WARN - NetworkServiceBrowser: Error sending out discover packet from 192.168.0.17 to 239.255.255.250: Operation not permitted
Nov 17, 2019 06:53:03.131 [0xb1bff450] DEBUG - Checking if time for scheduled update
Nov 17, 2019 06:53:11.141 [0xa05fd450] WARN - NetworkServiceBrowser: Error sending out discover packet from 192.168.0.17 to 239.255.255.250: Operation not permitted
Nov 17, 2019 06:53:21.141 [0x9fdfc450] WARN - NetworkServiceBrowser: Error sending out discover packet from 192.168.0.17 to 239.255.255.250: Operation not permitted
Nov 17, 2019 06:53:31.142 [0x9b5f3450] WARN - NetworkServiceBrowser: Error sending out discover packet from 192.168.0.17 to 239.255.255.250: Operation not permitted
Nov 17, 2019 06:53:31.966 [0xaadf7450] DEBUG - NetworkInterface: received Netlink message len=56, type=RTM_NEWLINK, flags=0x0
Nov 17, 2019 06:53:31.966 [0xaadf7450] DEBUG - NetworkInterface: Netlink information message family=0, type=1, index=3, flags=0x1003, change=0x0
Nov 17, 2019 06:53:31.966 [0xaadf7450] DEBUG - Network change.
Nov 17, 2019 06:53:31.966 [0xaadf7450] DEBUG - NetworkInterface: Notified of network changed (force=0)
Nov 17, 2019 06:53:31.967 [0xaadf7450] DEBUG - Network change notification but nothing changed.
Nov 17, 2019 06:53:41.142 [0xb1bff450] WARN - NetworkServiceBrowser: Error sending out discover packet from 192.168.0.17 to 239.255.255.250: Operation not permitted
Nov 17, 2019 06:53:51.143 [0xaedff450] WARN - NetworkServiceBrowser: Error sending out discover packet from 192.168.0.17 to 239.255.255.250: Operation not permitted
Nov 17, 2019 06:54:01.143 [0xb01fd450] WARN - NetworkServiceBrowser: Error sending out discover packet from 192.168.0.17 to 239.255.255.250: Operation not permitted
Nov 17, 2019 06:54:11.144 [0xad5fc450] WARN - NetworkServiceBrowser: Error sending out discover packet from 192.168.0.17 to 239.255.255.250: Operation not permitted
Nov 17, 2019 06:54:21.144 [0xab5f8450] WARN - NetworkServiceBrowser: Error sending out discover packet from 192.168.0.17 to 239.255.255.250: Operation not permitted
Nov 17, 2019 06:54:31.145 [0xa5ded450] WARN - NetworkServiceBrowser: Error sending out discover packet from 192.168.0.17 to 239.255.255.250: Operation not permitted
Nov 17, 2019 06:54:31.969 [0xaadf7450] DEBUG - NetworkInterface: received Netlink message len=56, type=RTM_NEWLINK, flags=0x0
Nov 17, 2019 06:54:31.969 [0xaadf7450] DEBUG - NetworkInterface: Netlink information message family=0, type=1, index=3, flags=0x1003, change=0x0
Nov 17, 2019 06:54:31.969 [0xaadf7450] DEBUG - Network change.
Nov 17, 2019 06:54:31.969 [0xaadf7450] DEBUG - NetworkInterface: Notified of network changed (force=0)
Nov 17, 2019 06:54:31.970 [0xaadf7450] DEBUG - Network change notification but nothing changed.
Nov 17, 2019 06:54:41.145 [0xa15ff450] WARN - NetworkServiceBrowser: Error sending out discover p

Hi Chuck,

I’m trying to reset my plex server to using my old directory, so I can test if the transcoding works when I place the application support folder back on the raspberry pi SD card.

But every time I erase the information in the override file, the plex server stop working entirely. I can’t log into the web interface because the service isn’t running any longer.

How do I undo the override I created and leave the plex server running afterwards?

Cheers

@Rafterb2

If you changed the username it uses, you’ll need to change the owning UID of all the files in Plex’s metadata (Library) directory structure.

This is usually what everyone forgets.

Ah - perfect. That worked to get Plex back onto the SD card and working again.

However I’ll run into the sam issue of space running out due to metadata filling up the SD card again if I leave my Application Support folder there.

It’s so weird. It’s only when I move the Application Support folder that I have this issue of the transcoding not working. I thought it might be a permissions issue as well, but no matter what combination of file and directory permissions and umask value I implement, it keeps throwing up the same error. I’ve attached the latest logs here just for thoroughness.

The external drive I’m using is ext4 if that has any baring on the situation. Also when I go into the web UI of the Plex Server, there is no directory path listed for the transcodes in the settings.

Thanks so much for all your help so far Chuck!

Plex Media Server Logs_2019-11-23_23-17-18.zip (3.8 MB)

Since you’re using ext4, the UID/GID you use by default will work there too.

Just do the first part of the procedure example and move only the PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR part.

Finally figured it out.

In fstab, when mounting the external drive, exec needs to be one of the final values in the list. User implies noexec, so if ‘user’ comes after ‘exec’, it undoes the exec option.

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