MP 1.21 TVserver race condition when cant delete recording triggered by episode management (1 Viewer)

gavo

Portal Member
July 27, 2008
24
8
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).

[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,
 

Users who are viewing this thread

Similar threads

Could be that a sudden powercut corrupts the database, or give all your pcs a new ipadres, or several more things that can break up a running mediaportal setup. Without the logs however, I don't have a clue on what exactly is wrong...
Could be that a sudden powercut corrupts the database, or give all your pcs a new ipadres, or several more things that can break up...
Hi there, I'm a happy long time user and am currently using MP 1.25. Up until now I had no issues with my setup. Yesterday...
Replies
1
Views
558
I've been using version 1.2.2.0 for years and have found no need to upgrade to newer version. I hate it that skins loose compatibility with almost every new version. And new skins are too 'fancy' for my taste. I use a customized version of the default wide skin with only Videos and TV in the main menu. I use mediaportal for recording...
I've been using version 1.2.2.0 for years and have found no need to upgrade to newer version. I hate it that skins loose...
I've been using version 1.2.2.0 for years and have found no need to upgrade to newer version. I hate it that skins loose...
Replies
0
Views
204
We'll, again I have posted a problem then found the solution myself :whistle: I incorrectly used "Multi seat setup: use UNC paths" when I was setting up initially and having some trouble with paths. I had clicked help for that setting before I tried using it, but many of the help links in the config utility are broken. Today I...
We'll, again I have posted a problem then found the solution myself :whistle: I incorrectly used "Multi seat setup: use UNC paths"...
I've been a MP1 user for a very long time. I had been using Argus for OTA ATSC recording and viewing which has been flawless...
Replies
1
Views
2K
Ok, the importer also remembers the queue of items that are still needed to be processed in settings file. If there is something stuck, it will try again on next server start and probably stuck again. But removing the media source also removes the associated queue. The server's TV plugin automatically creates the media sources for...
Ok, the importer also remembers the queue of items that are still needed to be processed in settings file. If there is something...
Hi, I’ve been struggling with MP 2 now for several weeks. Initially all was fine. Then in the client, the listings of recorded TV...
Replies
8
Views
911
Well, I've found out what it was :) People's advice to run the tvservice as the normal user was correct, but it turns out that Windows won't run a service as a user with no password. It doesn't complain when you set the user in the service properties, but fails with a login error when it tries to start the service. Adding a password...
Well, I've found out what it was :) People's advice to run the tvservice as the normal user was correct, but it turns out that...
I've moved a load of my old recordings onto a NAS to clear space on my internal drive. I've pointed the recording directory of an...
Replies
23
Views
8K
Top Bottom