The DeleteRecordingOnDisk() runs forever if the file is not exist on the disk.

Discussion in 'General Support' started by wouter1971, February 16, 2015.

  1. wouter1971
    • Premium Supporter

    wouter1971 MP Donator

    Joined:
    November 19, 2008
    Messages:
    911
    Likes Received:
    106
    Gender:
    Male
    Occupation:
    Security Officer
    Location:
    Purmerend, Holland
    Ratings:
    +143 / 6
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Hi,

    I get in the TVservice.log a forever running scheduler activity:
    This episode does not exist anymore and is deleted from the NAS.
    How can i fix this? I found a "Won't Fix " jira issue.
    If it's not gonna be fixed, how can i stop this?


    02-16 18:26:51,943] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Divorce zondag 30 maart 2014 20:58:00
    [2015-02-16 18:26:51,943] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Divorce zondag 30 maart 2014 20:58:00
    [2015-02-16 18:26:51,953] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Divorce zondag 30 maart 2014 20:58:00
    [2015-02-16 18:26:51,953] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Divorce zondag 30 maart 2014 20:58:00
    [2015-02-16 18:26:51,953] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Divorce zondag 30 maart 2014 20:58:00
    [2015-02-16 18:26:51,953] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Divorce zondag 30 maart 2014 20:58:00
    [2015-02-16 18:26:51,963] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Divorce zondag 30 maart 2014 20:58:00
    [2015-02-16 18:26:51,963] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Divorce zondag 30 maart 2014 20:58:00
    [2015-02-16 18:26:51,963] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Divorce zondag 30 maart 2014 20:58:00
    [2015-02-16 18:26:51,963] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Divorce zondag 30 maart 2014 20:58:00
    [2015-02-16 18:26:51,973] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Divorce zondag 30 maart 2014 20:58:00




    https://issues.team-mediaportal.com/browse/MP1-4568
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. morpheus_xx
    • Team MediaPortal

    morpheus_xx Lead Dev MP2

    Joined:
    March 24, 2007
    Messages:
    11,081
    Likes Received:
    4,765
    Ratings:
    +6,822 / 11
    Home Country:
    Germany Germany
    Show System Specs
    Funny, I stumbled upon same bug :p

    My solution was to create the missing folder structure in explorer. Once I got it up to recording folder, it got immediately deleted and message was gone. No need to place a file, folders were enough for my case.

    Stupid bug...
     
    • Thank You! Thank You! x 1
    • Agree Agree x 1
  4. disaster123
    • Premium Supporter

    disaster123 MP Donator

    Joined:
    May 14, 2008
    Messages:
    3,546
    Likes Received:
    417
    Ratings:
    +431 / 2
    Home Country:
    Germany Germany
    $ git show dea90a5530e9a22aa81608
    commit dea90a5530e9a22aa81608692c964d44c6ac33b6
    Author: Stefan Priebe <stefan@prie.be>
    Date: Sat Sep 14 20:30:40 2013 +0200

    RecordingFileHandler: do not loop when recording dir does not exist

    diff --git a/TvEngine3/TVLibrary/TvService/DiskManagement/RecordingFileHandler.cs b/TvEngine3/TVLibrary/TvService/DiskManagement/Recordi leHandler.cs
    index 7ea94f4..e3b0402 100644
    --- a/TvEngine3/TVLibrary/TvService/DiskManagement/RecordingFileHandler.cs
    +++ b/TvEngine3/TVLibrary/TvService/DiskManagement/RecordingFileHandler.cs
    @@ -63,6 +63,10 @@ namespace TvService
    }
    filesDeleted = true;
    }
    + else {
    + Log.Debug("DeleteRecordingOnDisk: Directory does not exist!: '{0}'", Path.GetDirectoryName(fileNameForRec));
    + filesDeleted = true;
    + }
    }
    catch (Exception ex)
    {
     
  5. wouter1971
    • Premium Supporter

    wouter1971 MP Donator

    Joined:
    November 19, 2008
    Messages:
    911
    Likes Received:
    106
    Gender:
    Male
    Occupation:
    Security Officer
    Location:
    Purmerend, Holland
    Ratings:
    +143 / 6
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Thanks Morpheus for putting me in the right direction. I created the previous dir's and it looks like it doesn't come back. Thanks!
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!