MP 1.21 TVserver race condition when cant delete recording triggered by episode management

Discussion in 'General Support' started by gavo, April 4, 2019.

  1. gavo

    gavo Portal Member

    Joined:
    July 27, 2008
    Messages:
    24
    Likes Received:
    4
    Ratings:
    +7 / 0
    Hi all,

    I haven’t had a good look into this yet but I have a suspicion of what’s going on so I thought I would I'll describe here to see if anyone else has had this experience.

    I think its a bit of an obscure case, but basically a few days ago the HD on which I save my TV recordings had a meltdown (physical drive problems). I redirected my recording folder to an alternate drive in my PC, removed the failing drive and have managed to recover maybe 80% of the recordings offline. I am just waiting for a replacement HD to arrive and I'll reinstall in my server PC, recombine all recordings (recovered and those recorded post failure) back onto the new drive and reset the recording path.

    Since this time I've noticed TVServer occasionally get pinned at 20% CPU and although live TV continues to work, no scheduled recordings kick off until I forceably end and restart the TVservice (stopping the service from the services control panel fails).

    Today I think I've seen what triggers this. Basically I have my setup configured to record the nightly news and have episode management set to only maintain 2 episodes. Looking at the tvservice.log I see TVServer is in a frenzy trying to delete one of the earlier recordings that no longer exists (there is no longer an E drive in the computer). All TVservice.log files are filled with this message and it is repeating a bucket load of times per second (see log extract).

    TVService.log (open)

    [2019-04-04 11:30:04,850] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,866] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,866] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,866] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,866] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,881] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,881] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,881] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,881] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,881] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,881] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,881] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,881] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,897] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,897] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,897] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,897] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,897] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,897] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,897] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,897] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,897] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,897] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,897] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,912] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,912] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,912] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,912] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,912] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,912] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,912] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,912] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,912] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,912] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,928] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,928] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,928] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,928] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,928] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,928] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,928] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,928] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,928] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,944] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,944] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,944] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,944] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,944] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,944] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,944] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,944] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,944] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,959] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,959] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,959] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,959] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,959] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,959] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,959] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,959] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,959] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,959] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,959] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,959] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,975] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,975] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,975] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,975] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,975] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,975] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,975] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,975] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,991] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,991] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,991] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM
    [2019-04-04 11:30:04,991] [Log ] [scheduler thread] [INFO ] - diskmanagement: Delete episode TvDatabase.Channel Newshub Live At 6pm Saturday, 30 March 2019 5:55:06 PM

    I've now manually removed this offending entry from the recording table in the database so I'll be interested to see if I have this problem again. I dont have episode management enabled for anything else so if my theory is correct I shouldnt have any further problems. The only reason I've left all the recordings in the database is that I intended to recover the majority of them and when I do they will be stored in the same path as recorded in the database.

    Maybe I should have just deleted all recordings from the database and reimported them once I had recovered the actual files - but I didnt think about that at the time.



    Anyway, just interested in peoples thoughts on all of this really, seemed like an interesting problem :)

    Cheers,
     
    • Thank You! Thank You! x 1
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!