"Unable to Delete File: ..." (1 Viewer)

acrimonis

Portal Member
May 31, 2008
5
0
Home Country
France France
Hello,

I have a pb w/ tv-series. When I attempt to delete seasons or episodes (using option delete from disk and DB), it always fails and I get the error "Unable to delete file".

The pb occurs wither I do it from within the UI and/or within the plugin itself thru the "Details" tab.


I'm on XP with Admins rights... Everything else seem to work fine as far as UI can tell...
Of course, attempting to delete the files thru the explorer works just fine...


Any suggestions on how to trouble shoot this?

Thanks in advance,

-n
 

RoChess

Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    The only times I see this problem is when I delete a multi-episode file. For example "Show S01E01+02.avi" and then when you delete 1x01 the 1x02 can give an error as the file at that moment is already gone.

    Troubleshooting you do via the log files, just be sure to switch MediaPortal config to debug log mode, so that you get the information needed to resolve your issue.

    It can also be difficult to debug it when you are dealing with other Windows processes, in which case you might need 3rd party tools such as SysInternals Process Monitor or File Explorer, etc. For example Windows itself can have a lock on the file for something else preventing MediaPortal from being able to delete it. Or your anti-virus solution, or something else.

    In most cases however it is something related to the permission level though, or ACLs as they are called on Windows.
     

    acrimonis

    Portal Member
    May 31, 2008
    5
    0
    Home Country
    France France
    The only times I see this problem is when I delete a multi-episode file. For example "Show S01E01+02.avi" and then when you delete 1x01 the 1x02 can give an error as the file at that moment is already gone.

    Yup, this is not the case...It happens whether I delete one episode or a folder...

    Troubleshooting you do via the log files, just be sure to switch MediaPortal config to debug log mode, so that you get the information needed to resolve your issue.

    I'll try that to check if the log gives me more info...

    It can also be difficult to debug it when you are dealing with other Windows processes, in which case you might need 3rd party tools such as SysInternals Process Monitor or File Explorer, etc. For example Windows itself can have a lock on the file for something else preventing MediaPortal from being able to delete it. Or your anti-virus solution, or something else.
    In most cases however it is something related to the permission level though, or ACLs as they are called on Windows.

    On that one, I'm not quite sure...
    It doesn't seem that my files are locked by anything else (I use unlocker to check those)... Though, I don't thing it would get the handle if it is the case within the app (i guess it would depend on how the delete call is implemented) .Also, I never had a pb outside of MP-TVseries.

    At the same time, very recently, I installed a clean system, and I did setup some, stuff I didn't have before. I'm thinking the windows indexer service, and the everything search tool. So I guess those *could* be the issue, but I don't really believe it as the pb is consistent and not intermittent.

    As far as permissions... Same thing... All my files are local and I run on XP w/ admins rights...

    I guess my next steps are:
    - verify acl perms (but u know...)
    - stop all indexing services and crap like that and try again
    - go dig in the debug logs to see if there is a clue in there.

    Thanks for your answer... I was hoping it would be a "real" known issue...

    Cheers,

    -n
     

    Users who are viewing this thread

    Top Bottom