[solved] MP will not delete recordings that are on NAS (1 Viewer)

framug

Super Moderator
  • Team MediaPortal
  • January 31, 2005
    4,512
    528
    South of France
    France France
    Country flag
    Thanks again for the suggestions. I'll try updating MP when I get the chance and see if it's any better.
    MP 1.23 increased the timeout delay for NAS.
    Please, again and for last, try with latest MP version and, report with logs (as debug) if it doesn't work for you.
     

    RobNorthcott

    MP Donator
  • Premium Supporter
  • October 9, 2007
    517
    96
    Dartmoor, England
    United Kingdom United Kingdom
    Country flag
    OK, MP 1.23 still won't delete those files.
    I'll make a new log later and upload it (may not be until tomorrow though).
    Does Watchdog not force the log mode to debug anymore? If not I'll switch it manually first.
     

    framug

    Super Moderator
  • Team MediaPortal
  • January 31, 2005
    4,512
    528
    South of France
    France France
    Country flag
    Well, 1 second was clearly not enought for NAS in single-seat on the past.
    Today, timeout is 1.5 seconds but, in case of client/server, maybe 2 seconds are needed ?
    Don't know..
    We are not magicians (at least, not all the time) :)
    That's why sometimes, we need more accurate informations.
    It help us and you (and all others users), if our crystal ball want to help us to fix this problem. ;)
     

    RobNorthcott

    MP Donator
  • Premium Supporter
  • October 9, 2007
    517
    96
    Dartmoor, England
    United Kingdom United Kingdom
    Country flag
    OK, had a chance to make a new log, with TV Server manually switched to debug this time. It does show the attempt to delete the file now - but I still can't tell why it's failing, so I'll have to pass it to the experts again :)

    Oh, @framug - if you weren't joking in your last post then I apologise if you think I'm expecting miracles from you - I know what it's like to be hassled by users (I'm a software developer in my day job) and certainly didn't intend that. I'm not much of an expert on Windows/Linux mixed networking though, and certainly don't know how MP TV Server works, so I'm grateful of any help I can get on here.
     

    Attachments

    mm1352000

    Development Group
  • Team MediaPortal
  • September 1, 2008
    21,571
    8,218
    New Zealand New Zealand
    Country flag
    CyberSimian is right. The TV service is responsible for deleting files. Therefore the Windows user running the TV service process must have appropriate permissions on the NAS. On this point...

    1. Rob, you said:
    Regarding users, the MP client and TV Server do run under different Windows users, but the user they're connecting to the NAS with is the same one (as in the user on the NAS, not in Windows), and this user has full rights to that directory.
    I don't understand what you're saying here. As far as I'm aware, TV Server does not have any explicit NAS credential configuration. It just attempts access with the current Windows user.

    2. If I recall correctly, updating MP (including TV Server) may blow away customisations in the Windows service properties for the TV service (startup properties, run user etc.). Since you've updated from MP 1.21, please make sure that the Windows service properties for the TV service - in particular: run as user - are still all as you expect.


    From the perspective of the log files...
    About all I can say is that the "DeleteRecordingOnDisk" log entries are not followed by any " - deleting '<file name>'" entries. To me this suggests that either the particular recording doesn't have an files (I'd be surprised if this is the case) or the Windows user running the TV service process cannot even list the files in the corresponding recording directory.

    Are you able to confirm whether the file "\\HEDGEHOGNAS\media\OldRecordings\Sound Waves_ The Symphony of Physics - BBC Four - 2017-03-05.ts" and/or its containing directory actually exists on the NAS?
    ...and what files - other than the TS file - associated with that recording (eg. thumbnail, XML metadata file) are present in that directory?

    Since you're a developer, here is the relevant code:
    https://github.com/MediaPortal/Medi...ce/DiskManagement/RecordingFileHandler.cs#L44
    https://github.com/MediaPortal/Medi...e/DiskManagement/RecordingFileHandler.cs#L118
     

    RobNorthcott

    MP Donator
  • Premium Supporter
  • October 9, 2007
    517
    96
    Dartmoor, England
    United Kingdom United Kingdom
    Country flag
    Thanks @mm1352000 - the files definitely exist, and can be played from "Recordings". Is it just _deleting_ that is handled by TVServer, and the playback is done by Mediaportal? If so, then fiddling with the user on TVServer may help. I may be mixing up two different things here I think...
     

    mm1352000

    Development Group
  • Team MediaPortal
  • September 1, 2008
    21,571
    8,218
    New Zealand New Zealand
    Country flag
    the files definitely exist, and can be played from "Recordings".
    Okay.

    Is it just _deleting_ that is handled by TVServer, and the playback is done by Mediaportal? If so, then fiddling with the user on TVServer may help. I may be mixing up two different things here I think...
    To directly answer your question: it depends. :)

    In your case I'm fairly sure the answer is "yes - only deleting is handled by TV Server". I say that because it appears like at some stage you've chosen to enable the use of UNC paths for recording playback instead of using RTSP:
    Advanced Options

    (from your MediaPortal client settings file)
    Code:
    <section name="tvservice">
      ...
      <entry name="usertsp">no</entry>
      ...
    Using UNC paths means that the MediaPortal client accesses and plays the recording files directly. Hence, the Windows user that you use to run the MediaPortal client must have at least read access to the files on the NAS.

    If you hadn't chosen to use UNC paths (ie. default behaviour = RTSP used for recording playback), the TV Server would stream the recording file from the NAS to MediaPortal [client]. In this case the Windows user used to run the TV service process would need at least read access to the files on the NAS.

    As I've previously indicated, for the TV Server always handles deleting. Therefore if you ever want to delete recordings, the Windows user used to run the TV service process will need write (or delete) access to the files on the NAS.

    Hope that's clear. :)
     

    RobNorthcott

    MP Donator
  • Premium Supporter
  • October 9, 2007
    517
    96
    Dartmoor, England
    United Kingdom United Kingdom
    Country flag
    Yes that makes sense, thanks (although I don't think I changed anything on purpose to do with the UNC/RTSP). But yes - I see what you mean about the user running TVService now. I tried just quickly changing the user for tvservice through services.msc to be the normal Windows user and that completely broke it (tvserver not able to run at all by the look of it) - but I'm short of time now, so I just put it back to default account and I'll have another look later when I can think about it more.

    As always, many thanks for the help :)
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    R [solved] Unable to delete single recording General 2
    P Recordings not showing up unless re-imported and not possible to delete General 0
    N [Finished] [MP2-781] Enable one-click deletion of grouped TV recordings MediaPortal 2 70
    G MP 1.21 TVserver race condition when cant delete recording triggered by episode management General Support 0
    N [solved] Cannot delete recordings from remote client MediaPortal 2 32
    R Mediaportal will not delete Recorded TV items that do not exist MediaPortal 1 Talk 0
    H [Finished] [MP2-781] Delete a Folder in TV-Recordings Archive 7
    megahorst Unable to delete unseen recording while TV runs in the background 1.19 11
    coolblue [solved] How to delete Recording? General 16
    M keep check of deleted recording?? General Support 3
    MLH01 MP2 will not delete recordings - log in as admin or user account? General 4
    morpheus_xx Was this spam? I deleted it... Online Facilities 4
    N [Finished] MP2-803 - Delete full series doesn't work when viewing a program in the extended schedule screen MediaPortal 2 12
    G [solved] How do you delete media in Mediaportal2? General 14
    Frans Nijhuis [further infos missing] Deleting all TV channels and all channel groups in "MP 2 TV configuration" fails 2.2 Archive 1
    H [fixed] Series programming/deleting 2.2 Archive 1
    krebbi [solved] Delete Media Files via Context Menu General 8
    toricred Recordings Change : to _ in Series Name General 0
    P Recording films that have an "intermission" General 2
    H MP2 database won't keep in synch with recordings General 3
    toricred Only Show Actual Recordings General 1
    ajs How recreate Recording thumbs TV-Server 4
    P [solved] MP2 new install, 2 x hdhomerun tuners, client on same PC unable to view TV & recordings Newcomers Forum 8
    CyberSimian [Proposal] Tool to display time of next recording MediaPortal 1 0
    Golf4 TV-Records werden als Audio-Files importiert ? Allgemeines Support- und Diskussionsforum 0
    Similar threads

























    Top Bottom