Hi All,
I’m new to Plex and new to the forums. I’ve installed Plex on an Ubuntu 16.04 server that has an mdadm mounted array. I have created libraries for all my media fine. However, I can’t get optimized versions to save on the array. Whenever I try I get the error message “Converted files cannot be written to the disk”
Here is my log of the issue:
Nov 26, 2016 20:33:51.427 [0xa83fcb40] DEBUG - MDE: analyzing media item 54
Nov 26, 2016 20:33:51.427 [0xa83fcb40] DEBUG - MDE: Stick Man (2016): no direct play video profile exists for http/mpegts/h264
Nov 26, 2016 20:33:51.427 [0xa83fcb40] DEBUG - MDE: Stick Man (2016): no direct play video profile exists for http/mpegts/h264/ac3
Nov 26, 2016 20:33:51.427 [0xa83fcb40] DEBUG - MDE: Stick Man (2016): non-selected embedded subtitle stream 14900 cannot be direct-played
Nov 26, 2016 20:33:51.427 [0xa83fcb40] DEBUG - Stick Man - video.hasScalingMatrix limitation applies: 1 == 1
Nov 26, 2016 20:33:51.427 [0xa83fcb40] DEBUG - Stick Man - video.hasScalingMatrix limitation applies: 1 == 1
Nov 26, 2016 20:33:51.427 [0xa83fcb40] DEBUG - MDE: Stick Man (2016): no remuxable profile found, so video stream will be transcoded
Nov 26, 2016 20:33:51.427 [0xa83fcb40] DEBUG - Stick Man - video.hasScalingMatrix limitation applies: 1 == 1
Nov 26, 2016 20:33:51.427 [0xa83fcb40] DEBUG - MDE: computed resolution bounding box of 1280x720.
Nov 26, 2016 20:33:51.427 [0xa83fcb40] DEBUG - Scaled up video bitrate to 4711Kbps based on 1.500000x fudge factor.
Nov 26, 2016 20:33:51.427 [0xa83fcb40] DEBUG - Scaled maximum bitrate for resolution reduction to 2093Kbps.
Nov 26, 2016 20:33:51.427 [0xa83fcb40] DEBUG - MDE: Stick Man (2016): selected media 0 / 54
Nov 26, 2016 20:33:51.428 [0xa83fcb40] DEBUG - Versions: version file path is /media/media/plexoptimized/Plex Versions/Optimized for Mobile/Stick Man (2016).mp4
Nov 26, 2016 20:33:51.430 [0xa83fcb40] ERROR - Error creating directory /media/media/plexoptimized/Plex Versions/Optimized for Mobile: boost::filesystem::create_directories: Permission denied: “/media/media/plexoptimized/Plex Versions”
Nov 26, 2016 20:33:51.430 [0xa83fcb40] ERROR - TranscodeJobManager: [Running] directory is not writable: /media/media/plexoptimized/Plex Versions/Optimized for Mobile
Here is the user plex is running as:
plex 1168 0.0 0.0 2368 576 ? Ss 20:29 0:00 /bin/sh -c LD_LIBRARY_PATH=/usr/lib/plexmediaserver /usr/lib/plexmediaserver/Plex\ Media\ Server
Here are the permissions on /media/media/plexoptimized:
media@media:/media/media$ ls -lah plexoptimised/
total 8.0K
drwxrwxr-x 2 plex plex 4.0K Nov 26 20:45 .
drwxr-xr-x 15 media media 4.0K Nov 26 18:07 …
Here is how the raid array is configured in /etc/mdadm/mdadm.conf (changed mode from 0660 to 0775 while troubleshooting without success):
CREATE owner=root group=disk mode=0775 auto=yes
Here is how the array is mounted in /etc/fstab:
/dev/md0 /media/media ext4 defaults 0 0
I can create directories and files from the shell as user “plex”:
plex@media:/media/media/plexoptimised$ touch test
plex@media:/media/media/plexoptimised$ mkdir dirtest
plex@media:/media/media/plexoptimised$ ls -lah
total 12K
drwxrwxr-x 3 plex plex 4.0K Nov 26 20:49 .
drwxr-xr-x 15 media media 4.0K Nov 26 18:07 …
drwxrwxr-x 2 plex plex 4.0K Nov 26 20:49 dirtest
-rw-rw-r-- 1 plex plex 0 Nov 26 20:48 test
If I set the optimized directory to be on my local SSD rather than the mounted raid array, the files are created fine.
Any pointers on what is wrong here?
Thanks,
Ben
