Had to put in overtime at work to make a deadline but now getting some more free time. Will review procedures to get up-to-speed again and then contribute more logs…
last comment by a Plex person (sa2000) is that they have been unable to reproduce the issue, and were hoping to get some more folks to provide requested log files.
Thanks @j-sta
Would like to see more logs and more users to confirm that it is the agent process that is locking the file (exporting/saving all displayed lines from d OpenedFilesView - View opened/locked files in your system (sharing violation issues)) and ideally for the logs to cover the time when the file was being streamed and then the first and subsequent attempts to delete fail.
I do know that a scan due to new episodes being added at the time would access the files but there should not be a left over lock after this.
The number of log files can be increased from the default of 6 to say 50 - using Regedit to add LogNumFiles a DWORD (32-bit) value item below HKEY_CURRENT_USER\Software\Plex, Inc.\Plex Media Server and set it to, say, decimal 50
I’m getting the same errors SHFileOperationW returned 0x20.
It’s pretty annoying, have to remember what I’ve watched the previous day so I can go through the show folders and delete items I’ve watched to manage my storage.
For all that are having issues, taking the time to contribute logs to Plex as described in previous posts here is what is needed.
It is annoying when people repeatedly complain about a problem but won’t do anything constructive to help solve it…
@sa2000 said:
last comment by a Plex person (sa2000) is that they have been unable to reproduce the issue, and were hoping to get some more folks to provide requested log files.
I’ve PM’d you my logs for a time period when I had the delete issues.
@WoodyJ007 said:
@sa2000 said:
last comment by a Plex person (sa2000) is that they have been unable to reproduce the issue, and were hoping to get some more folks to provide requested log files.
I’ve PM’d you my logs for a time period when I had the delete issues.
Thank you. Did you download the OpenedFIlesView tool I suggested ?
Would like to get all the output from that tool at the time of the attempt to delete fails and together with the logs (as you have done)
So install this tool
Experiment with using it - running the tool and see what it displayed and then selecting all displayed items and exporting / saving to excel
Once that can be done then on delete fail, run the tool, save all its output and send me the excel file by private message and get the logs zip as usual
@sa2000 said:
@WoodyJ007 said:
@sa2000 said:
last comment by a Plex person (sa2000) is that they have been unable to reproduce the issue, and were hoping to get some more folks to provide requested log files.
I’ve PM’d you my logs for a time period when I had the delete issues.
Thank you. Did you download the OpenedFIlesView tool I suggested ?
OpenedFilesView - View opened/locked files in your system (sharing violation issues)Would like to get all the output from that tool at the time of the attempt to delete fails and together with the logs (as you have done)
So install this tool
Experiment with using it - running the tool and see what it displayed and then selecting all displayed items and exporting / saving to excel
Once that can be done then on delete fail, run the tool, save all its output and send me the excel file by private message and get the logs zip as usual
Ive sent you logs and result from openfiles. PlexScriptHost.exe has two open handles on the file.
@WoodyJ007 said:
@sa2000 said:
@WoodyJ007 said:
@sa2000 said:
last comment by a Plex person (sa2000) is that they have been unable to reproduce the issue, and were hoping to get some more folks to provide requested log files.
I’ve PM’d you my logs for a time period when I had the delete issues.
Thank you. Did you download the OpenedFIlesView tool I suggested ?
OpenedFilesView - View opened/locked files in your system (sharing violation issues)Would like to get all the output from that tool at the time of the attempt to delete fails and together with the logs (as you have done)
So install this tool
Experiment with using it - running the tool and see what it displayed and then selecting all displayed items and exporting / saving to excel
Once that can be done then on delete fail, run the tool, save all its output and send me the excel file by private message and get the logs zip as usualIve sent you logs and result from openfiles. PlexScriptHost.exe has two open handles on the file.
Thank you very much. In your case it is pointing to two plugin channels
ted and fullmoviesonreddit
Logs for user added channels are not picked up by the Download Logs command and would need to be copied out manually
I do not know if the logs still cover the period of time
The file that could not be deleted was D:\Download\Movies\Justice League (2017)\Justice League 2017.mkv
The logs for the PlexScriptHost.exe processes that had the file open would be
C:\Users\John\AppData\Local\Plex Media Server\Logs\PMS Plugin Logs\com.plexapp.plugins.ted.log
C:\Users\John\AppData\Local\Plex Media Server\Logs\PMS Plugin Logs\com.plexapp.plugins.ted.log.1
C:\Users\John\AppData\Local\Plex Media Server\Logs\PMS Plugin Logs\com.plexapp.plugins.ted.log.2
C:\Users\John\AppData\Local\Plex Media Server\Logs\PMS Plugin Logs\com.plexapp.plugins.ted.log.3
C:\Users\John\AppData\Local\Plex Media Server\Logs\PMS Plugin Logs\com.plexapp.plugins.ted.log.4
C:\Users\John\AppData\Local\Plex Media Server\Logs\PMS Plugin Logs\com.plexapp.plugins.ted.log.5
C:\Users\John\AppData\Local\Plex Media Server\Logs\PMS Plugin Logs\com.plexapp.plugins.fullmoviesonreddit.log
C:\Users\John\AppData\Local\Plex Media Server\Logs\PMS Plugin Logs\com.plexapp.plugins.fullmoviesonreddit.log.1
C:\Users\John\AppData\Local\Plex Media Server\Logs\PMS Plugin Logs\com.plexapp.plugins.fullmoviesonreddit.log.2
C:\Users\John\AppData\Local\Plex Media Server\Logs\PMS Plugin Logs\com.plexapp.plugins.fullmoviesonreddit.log.3
C:\Users\John\AppData\Local\Plex Media Server\Logs\PMS Plugin Logs\com.plexapp.plugins.fullmoviesonreddit.log.4
C:\Users\John\AppData\Local\Plex Media Server\Logs\PMS Plugin Logs\com.plexapp.plugins.fullmoviesonreddit.log.5
I do not know how or why these two plugins had the file open and would need to be referred to the plugin developers
@sa2000 said:
Thanks @j-sta
Would like to see more logs and more users to confirm that it is the agent process that is locking the file (exporting/saving all displayed lines from d OpenedFilesView - View opened/locked files in your system (sharing violation issues)) and ideally for the logs to cover the time when the file was being streamed and then the first and subsequent attempts to delete fail.
I do know that a scan due to new episodes being added at the time would access the files but there should not be a left over lock after this.
The number of log files can be increased from the default of 6 to say 50 - using Regedit to add
LogNumFilesaDWORD (32-bit) valueitem belowHKEY_CURRENT_USER\Software\Plex, Inc.\Plex Media Serverand set it to, say, decimal 50
I have PM’d you logs.
@changelin said:
@sa2000 said:
Thanks @j-sta
Would like to see more logs and more users to confirm that it is the agent process that is locking the file (exporting/saving all displayed lines from d OpenedFilesView - View opened/locked files in your system (sharing violation issues)) and ideally for the logs to cover the time when the file was being streamed and then the first and subsequent attempts to delete fail.
I do know that a scan due to new episodes being added at the time would access the files but there should not be a left over lock after this.
The number of log files can be increased from the default of 6 to say 50 - using Regedit to add
LogNumFilesaDWORD (32-bit) valueitem belowHKEY_CURRENT_USER\Software\Plex, Inc.\Plex Media Serverand set it to, say, decimal 50I have PM’d you logs.
I have PM’d you a second set of logs just to make sure.
@changelin said:
@changelin said:
@sa2000 said:
Thanks @j-sta
Would like to see more logs and more users to confirm that it is the agent process that is locking the file (exporting/saving all displayed lines from d OpenedFilesView - View opened/locked files in your system (sharing violation issues)) and ideally for the logs to cover the time when the file was being streamed and then the first and subsequent attempts to delete fail.
I do know that a scan due to new episodes being added at the time would access the files but there should not be a left over lock after this.
The number of log files can be increased from the default of 6 to say 50 - using Regedit to add
LogNumFilesaDWORD (32-bit) valueitem belowHKEY_CURRENT_USER\Software\Plex, Inc.\Plex Media Serverand set it to, say, decimal 50I have PM’d you logs.
I have PM’d you a second set of logs just to make sure.
Thanks - will check them out later today
Could you consider (if no bug impact to you) to try this
When you get the error, to sign the server out within settings / server / general and then wait a minute and then re claim the server and then try the deletion again and the open files view and logs in there is still an error
@sa2000 said:
@WoodyJ007 said:
@sa2000 said:
@WoodyJ007 said:
@sa2000 said:
last comment by a Plex person (sa2000) is that they have been unable to reproduce the issue, and were hoping to get some more folks to provide requested log files.
I’ve PM’d you my logs for a time period when I had the delete issues.
Thank you. Did you download the OpenedFIlesView tool I suggested ?
OpenedFilesView - View opened/locked files in your system (sharing violation issues)Would like to get all the output from that tool at the time of the attempt to delete fails and together with the logs (as you have done)
So install this tool
Experiment with using it - running the tool and see what it displayed and then selecting all displayed items and exporting / saving to excel
Once that can be done then on delete fail, run the tool, save all its output and send me the excel file by private message and get the logs zip as usualIve sent you logs and result from openfiles. PlexScriptHost.exe has two open handles on the file.
Thank you very much. In your case it is pointing to two plugin channels
tedandfullmoviesonredditLogs for user added channels are not picked up by the Download Logs command and would need to be copied out manually
I do not know if the logs still cover the period of time
The file that could not be deleted was
D:\Download\Movies\Justice League (2017)\Justice League 2017.mkvThe logs for the PlexScriptHost.exe processes that had the file open would be
C:\Users\John\AppData\Local\Plex Media Server\Logs\PMS Plugin Logs\com.plexapp.plugins.ted.log C:\Users\John\AppData\Local\Plex Media Server\Logs\PMS Plugin Logs\com.plexapp.plugins.ted.log.1 C:\Users\John\AppData\Local\Plex Media Server\Logs\PMS Plugin Logs\com.plexapp.plugins.ted.log.2 C:\Users\John\AppData\Local\Plex Media Server\Logs\PMS Plugin Logs\com.plexapp.plugins.ted.log.3 C:\Users\John\AppData\Local\Plex Media Server\Logs\PMS Plugin Logs\com.plexapp.plugins.ted.log.4 C:\Users\John\AppData\Local\Plex Media Server\Logs\PMS Plugin Logs\com.plexapp.plugins.ted.log.5 C:\Users\John\AppData\Local\Plex Media Server\Logs\PMS Plugin Logs\com.plexapp.plugins.fullmoviesonreddit.log C:\Users\John\AppData\Local\Plex Media Server\Logs\PMS Plugin Logs\com.plexapp.plugins.fullmoviesonreddit.log.1 C:\Users\John\AppData\Local\Plex Media Server\Logs\PMS Plugin Logs\com.plexapp.plugins.fullmoviesonreddit.log.2 C:\Users\John\AppData\Local\Plex Media Server\Logs\PMS Plugin Logs\com.plexapp.plugins.fullmoviesonreddit.log.3 C:\Users\John\AppData\Local\Plex Media Server\Logs\PMS Plugin Logs\com.plexapp.plugins.fullmoviesonreddit.log.4 C:\Users\John\AppData\Local\Plex Media Server\Logs\PMS Plugin Logs\com.plexapp.plugins.fullmoviesonreddit.log.5I do not know how or why these two plugins had the file open and would need to be referred to the plugin developers
Ok, I’ve removed all the plugins as they’ve been there for years and never use them. Anyway, same result today. Can’t delete so don’t think it was anything to do with these plugins.
@sa2000, PM’d you a OneDrive link to my Plex Logs and OpenFiles.
@changelin said:
@changelin said:
@sa2000 said:
Thanks @j-sta
Would like to see more logs and more users to confirm that it is the agent process that is locking the file (exporting/saving all displayed lines from d OpenedFilesView - View opened/locked files in your system (sharing violation issues)) and ideally for the logs to cover the time when the file was being streamed and then the first and subsequent attempts to delete fail.
I do know that a scan due to new episodes being added at the time would access the files but there should not be a left over lock after this.
The number of log files can be increased from the default of 6 to say 50 - using Regedit to add
LogNumFilesaDWORD (32-bit) valueitem belowHKEY_CURRENT_USER\Software\Plex, Inc.\Plex Media Serverand set it to, say, decimal 50I have PM’d you logs.
I have PM’d you a second set of logs just to make sure.
@QuadPC-Plex said:
@sa2000, PM’d you a OneDrive link to my Plex Logs and OpenFiles.
Thanks for the logs - in one case it shows PlexScriptHost.exe agent processes having the file open and in the other case Plex Transcoder and Plex Media Server having the file open - so there may be more then one issue
Will look into why all the agent processes having the file open (in evidence from @changelin ) and why transcoder and Plex Media Server processes had the file open in the case of @QuadPC-Plex logs
Thanks to logs and opened files view - the last set of diagnostics from @QuadPC-Plex and @changelin and @WoodyJ007 have been good - showing agent PlexScriptHost.exe processes and also PlexTranscoder.exe processes having files open when they should not - in the case of the transcoder processes, the file was unrelated and the process should not have had an open file handle to it.
There is now a hypothesis as to why this is happening and this will be followed up. So no need for any more diagnostics. We wait for changes to be made and see if they fix the problem
Thank you for persevering with this and providing the diagnostics
@sa2000 said:
Thanks to logs and opened files view - the last set of diagnostics from @QuadPC-Plex and @changelin and @WoodyJ007 have been good - showing agent PlexScriptHost.exe processes and also PlexTranscoder.exe processes having files open when they should not - in the case of the transcoder processes, the file was unrelated and the process should not have had an open file handle to it.There is now a hypothesis as to why this is happening and this will be followed up. So no need for any more diagnostics. We wait for changes to be made and see if they fix the problem
Thank you for persevering with this and providing the diagnostics
Thanks for the update! Glad to hear you all might be on to something.
@j-sta said:
@sa2000 said:
Thanks to logs and opened files view - the last set of diagnostics from @QuadPC-Plex and @changelin and @WoodyJ007 have been good - showing agent PlexScriptHost.exe processes and also PlexTranscoder.exe processes having files open when they should not - in the case of the transcoder processes, the file was unrelated and the process should not have had an open file handle to it.There is now a hypothesis as to why this is happening and this will be followed up. So no need for any more diagnostics. We wait for changes to be made and see if they fix the problem
Thank you for persevering with this and providing the diagnostics
Thanks for the update! Glad to hear you all might be on to something.
All the evidence now fits in beautifully with the hypothesis ! It was only through getting the different and diverse sets of evidence of the Open Files Viewer output and logs that the clues to the issue became visible.
Totally unrelated processes having open file handles to the media files ! That was the clue
I don’t know if any one with access to betas can easily bring the issue on - I could look into getting a special beta pre-release build to have the fix confirmed by user repeatedly getting the issue
What say you about this? Are you happy now? Lol.
@sa2000 said:
There is now a hypothesis as to why this is happening and this will be followed up. So no need for any more diagnostics. We wait for changes to be made and see if they fix the problem
Great news. This has been slowly driving me mad. Crossing fingers and toes …
@sa2000, if you need some volunteers to install and play with a pre-beta release to see if this issue if fixed, let me know.