macOS Sierra; PMS Version 1.7.5.4035; "No write access to destination" DVR error

Occasionally I get this error (got it today on 7/7/17 for 8-8:30pm DVR recording) saying “No write access to destination”. Running macOS Sierra and PMS Version 1.7.5.4035.

I’ve attached current server logs and past macOS crash logs. I’ve had PMS Version 1.7.5.4035 for a while and occasionally I look at my computer and Plex isn’t running anymore. I tried to create a discussion in the macOS discussion board, but it appears to be closed to new discussions. So I posted here and tagged macOS.

Error on DVR

Showing I have “everyone” with access

Saw someone else with similar No write access to destination fix by checking the “Ignore ownership on this volumes” per Apple’s instructions (see link below). I will try checking this and seeing what happens.

https://support.apple.com/kb/PH25288?locale=en_US&viewlocale=en_US

Still having the same no write access to destination issue although I have not yet restarted yet.

I am looking at the logs. At 19:56:41 there were two instances of Plex Media Server app running. Do you know how that arose ? How did you start Plex Media Server app ?

This is just initial feedback - i will look at the rest of the logs later

One Process

Jul 07, 2017 19:56:41.965 [0x700008668000] INFO - Plex Media Server v1.5.7.4016-25d94bad9 - Apple Mac  - build: darwin-x86_64 macosx - GMT -04:00
Jul 07, 2017 19:56:41.966 [0x700008668000] INFO - MacOSX version: 10.12.5, language: en-US
Jul 07, 2017 19:56:41.966 [0x700008668000] INFO - Processor Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz
Jul 07, 2017 19:56:41.966 [0x700008668000] INFO - /Users/briancoffey/Applications/Plex Media Server.app/Contents/MacOS/Plex Media Server
Jul 07, 2017 19:56:43.270 [0x7000088f7000] DEBUG - Job running: '/Users/briancoffey/Applications/Plex Media Server.app/Contents/MacOS/CrashUploader' '--directory=/Users/briancoffey/Library/Application Support/Plex Media Server/Crash Reports/1.5.7.4016-25d94bad9' '--version=1.5.7.4016-25d94bad9' '--platform=darwin-x86_64 (10.12.5)' '--serverUuid=822718c55e9a8f66b5656e872b338a9f3b6ca3c2' '--userId=brianwcoffey@gmail.com' '--url=https://crashreport.plexapp.com'
Jul 07, 2017 19:56:44.511 [0x700008a80000] DEBUG - BPQ: [Idle] -> [Starting]
Jul 07, 2017 19:56:44.787 [0x700008a80000] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.13.0, threadsafe=1
Jul 07, 2017 19:56:46.755 [0x700008a80000] DEBUG - Running migrations.

Second Process started at same time in parallel

Jul 07, 2017 19:56:41.964 [0x70000a12b000] INFO - Plex Media Server v1.7.5.4035-313f93718 - Apple Mac  - build: darwin-x86_64 macosx - GMT -04:00
Jul 07, 2017 19:56:41.965 [0x70000a12b000] INFO - MacOSX version: 10.12.5, language: en-US
Jul 07, 2017 19:56:41.965 [0x70000a12b000] INFO - Processor Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz
Jul 07, 2017 19:56:41.965 [0x70000a12b000] INFO - /Applications/Plex Media Server.app/Contents/MacOS/Plex Media Server
Jul 07, 2017 19:56:42.754 [0x70000a4c0000] DEBUG - Job running: '/Applications/Plex Media Server.app/Contents/MacOS/CrashUploader' '--directory=/Users/briancoffey/Library/Application Support/Plex Media Server/Crash Reports/1.7.5.4035-313f93718' '--version=1.7.5.4035-313f93718' '--platform=darwin-x86_64 (10.12.5)' '--serverUuid=822718c55e9a8f66b5656e872b338a9f3b6ca3c2' '--userId=brianwcoffey@gmail.com' '--url=https://crashreport.plexapp.com'
Jul 07, 2017 19:56:42.829 [0x70000a3ba000] DEBUG - BPQ: [Idle] -> [Starting]
Jul 07, 2017 19:56:44.073 [0x70000a3ba000] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.13.0, threadsafe=1
Jul 07, 2017 19:56:44.823 [0x70000a3ba000] INFO - SQLITE3:0x70000a3b9130, 283, recovered 49 frames from WAL file /Users/briancoffey/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db-wal
Jul 07, 2017 19:56:46.756 [0x70000a3ba000] DEBUG - Running migrations.

@brianwcoffey said:
Still having the same no write access to destination issue although I have not yet restarted yet.

You probably have got the wrong syntax for the path

Jul 07, 2017 20:02:20.454 [0x70000df55000] ERROR - Failed to calculate available disk space for path '.grab': 1 (Operation not permitted)
Jul 07, 2017 20:02:20.454 [0x70000df55000] DEBUG - DVR:Grabber: Saving recording to .grab/c85896fa175aee6240b41e13c898c1e6fb841d2b
Jul 07, 2017 20:02:20.454 [0x70000df55000] ERROR - DVR:Grabber: No write permission.
Jul 07, 2017 20:02:20.454 [0x70000df55000] DEBUG - DVR:Grabber: Operation for Washington Week in Review - E1 - Episode 1 completed with status error (No write access to destination)

This needs to show as an absolute path.

May be the library you setup for recordings has not been fully setup and you have not added folder path to it

It should not be possible to have a library created without a folder path defined.

Can you tell me what library the recordings are going into and could you get screenshots of the library setup for it

Screenshot for the recording to show which library it is going into
Then screenshot of plex web edit library for that library - getting the basic settings screenshots (including the Add Folders screen)

just giving you feedback on having Plex Media Server running as two processes

You have the application installed in two locations

Version 1.7.5 in /Applications/Plex Media Server.app/Contents/MacOS/Plex Media Server

Version 1.5.7 in /Users/briancoffey/Applications/Plex Media Server.app/Contents/MacOS/Plex Media Server

and somehow both versions got launched at 19:56:41

Sorry for the multiple posts - I am concerned that the multiple plex media server app processes that got launched at same time may have damaged the database

How did it arise ? That the two versions got both launched in different location within the same second - a millisecond apart ?

I think the two instances occurred because about 1.5 to 2 weeks ago I started an older version 1.5.7 because the recording was more reliable (although transcoding was not) and chose start upon log in. And now I remember also choosing start upon login for the new 1.7.5. Both started simultaneously because I rebooted. I’ll get rid of the older version out of the users directory.

Regarding the incorrect path, it probably has to do with me moving files on my external hard drive. Over the past few month a few DVR episodes failed and resulted in only 15 min of a 30 min show. I wanted go through and get rid of the partially recorded shows (I know there’s a setting for this and I want the partial recording so I can decide later if 25 min of 30 min recording is enough). The Finder in macOS only allows you to add the duration column in detailed view if the directory is within a folder called “Movies”. So I created the folder called “Movies” and moved all the TV recordings (default location for DVR recordings) into the newly created Movies folder. I don’t think I’ve been able to record since the move. I clicked on the DVR settings for various shows and the recording location appears to changed to the new location without me having to do anything.

I think, but do not know, that macOS does some clever things with aliases in HFS+, but the fact that when I moved the TV Recording folder into the newly created Movies folder, it took nearly no time at all despite being ~1-2TB of data that it really just created an alias. However, my knowledge of HFS+ and macOS is only surface deep.

PMS crashed sometime overnight. I’ll find the crash log and upload.

Is the library name TV Recordings ?
Can you select the Edit option for the library and then select Add Folders to see what path are set?

Alternatively, you can find out the token for your server and then open browser and go this url
http://10.0.1.33:32400/library/sections?X-Plex-Token=xxxxxxxxxxxxxx
where xxxxxxxxxxxxxxxxx is the token string for your server
This will display xml listing your library names and media paths associated with each

See this support article for how to find the token
https://support.plex.tv/hc/en-us/articles/204059436-Finding-an-authentication-token-X-Plex-Token

I would also like to a screenshot of a recording setting page showing the library and location path selected for the recordings. The setting is made individually for each scheduled recording

Thanks for the attention and steps to find information.

Below is the screenshot of the “Add Folders” and attached is a text file with the copy-paste of the XML for http://127.0.0.1:32400/library/sections?X-Plex-Token=xxxxxxxxxxxxxx. My TV Show library is named “TV Shows” although the folder containing most of library and where DVR recordings go is “TV Recordings”.

Add folders screenshot:

Additionally I attached the Plex Logs in the state they were (from here… /Users/briancoffey/Library/Logs/Plex Media Server) before restarting PMS.

Do you think I need to open each scheduled recording setting and hit save? I’m guessing it is possible that the individual recordings reference the old location and when I open the recording settings it immediately sees the old location is no longer there and chooses the next option in the list (hence why I don’t see it connected to the old location). This is just a guess. I could try this guess out by seeing if there’s an XML page that lists all the recording locations for the various scheduled recording items.

@brianwcoffey said:

Do you think I need to open each scheduled recording setting and hit save? I’m guessing it is possible that the individual recordings reference the old location and when I open the recording settings it immediately sees the old location is no longer there and chooses the next option in the list (hence why I don’t see it connected to the old location). This is just a guess. I could try this guess out by seeing if there’s an XML page that lists all the recording locations for the various scheduled recording items.

Yes !
Open each and see what you find as the library and the location.

I will try and find out but the chances are it is all your scheduled recordings that you need to edit

@brianwcoffey said:
Thanks for the attention and steps to find information.

Below is the screenshot of the “Add Folders” and attached is a text file with the copy-paste of the XML for http://127.0.0.1:32400/library/sections?X-Plex-Token=xxxxxxxxxxxxxx. My TV Show library is named “TV Shows” although the folder containing most of library and where DVR recordings go is “TV Recordings”.

Add folders screenshot:

Additionally I attached the Plex Logs in the state they were (from here… /Users/briancoffey/Library/Logs/Plex Media Server) before restarting PMS.

Do you think I need to open each scheduled recording setting and hit save? I’m guessing it is possible that the individual recordings reference the old location and when I open the recording settings it immediately sees the old location is no longer there and chooses the next option in the list (hence why I don’t see it connected to the old location). This is just a guess. I could try this guess out by seeing if there’s an XML page that lists all the recording locations for the various scheduled recording items.

So the library is TV Shows (Library key="9") and it has the following three locations

<Location id="28" path="/Volumes/BackupHD/Movies/TV Recordings"/>
<Location id="29" path="/Volumes/BackupHD/Movies/TV"/>
<Location id="30" path="/Volumes/BackupHD/Movies/PlayOn"/>

May be you need to delete the recording and recreate it with the library re selected as TV Shows and Location selected as /Volumes/BackupHD/Movies/TV Recordings

Try this
http://10.0.1.33:32400/media/subscriptions/scheduled?X-Plex-Token=xxxxxxxxxxxxx

I have not tried it

Okay, I’ve figured out the solution to the no right access issue. You have to open up the settings for the tv show you want to record, choose a different file save location than the one that is shown, then click to change the location back to the location you want it to be, then click save

The issue regarding PMS randomly quitting continues. I will continue to monitor and upload logs as they happen.

Plex Media Server beta 1.13.7.5369 has just been released. It has a couple of fixes for the problems that were showing in this forum topic - relating to recording library changes and also changing from a multi-location recording library to one with one location path only

See Release Note Plex Media Server

  • (DVR) Changing destination library from one with mulitple paths to one with a single path for a DVR recording no longer causes a recording failure (#7551)
  • (DVR) Give better error message if recording attempts to use a library that doesn’t exist (#7278)

[Please note there is a similar bug in Plex for iOS that arises when changing the recording within the Plex for iOS app from multi-location library to single path library - this has been fixed and the fix will be released soon]