Recordings will not stop (1 Viewer)

willemx

MP Donator
  • Premium Supporter
  • November 20, 2008
    48
    8
    Netherlands Netherlands
    My recordings will not stop anymore. They go on for days if I don't stop them manually by restarting the TV service. Stopping them on the client does not work.
    In the error log I see lots of errors like:
    Scheduler: stop record did not succeed (trying again in 1 min.)
     

    Attachments

    Owlsroost

    Development Group
  • Team MediaPortal
  • October 28, 2008
    5,540
    5,038
    Cambridge
    United Kingdom United Kingdom
    Country flag
    It looks like the filenames are too long (due to the TV program titles being very long, I assume):

    Code:
    [2019-05-29 20:36:02,353]
    [2019-05-29 20:36:02,353] [Log    ] [TVService] [DEBUG] - ExecutePendingDeletions: trying to remove file : D:\recordings\een HD\Murder in the First\Murder in the First - 2018-09-12 - Amerikaanse misdaadserie. Nothing But The Truth. Jamie bekomt van haar tirade. Wanneer haar familie wordt bedreigd, zweert Hildy de zaak tot op het bot te zullen uitspitten.ts
    [2019-05-29 20:36:02,353] [Log    ] [TVService] [DEBUG] - DeleteRecordingOnDisk: 'D:\recordings\een HD\Murder in the First\Murder in the First - 2018-09-12 - Amerikaanse misdaadserie. Nothing But The Truth. Jamie bekomt van haar tirade. Wanneer haar familie wordt bedreigd, zweert Hildy de zaak tot op het bot te zullen uitspitten.ts'
    [2019-05-29 20:36:02,353] [Log    ] [TVService] [DEBUG] -  - deleting 'C:\ProgramData\Team MediaPortal\MediaPortal TV Server\thumbs\Murder in the First - 2018-09-12 - Amerikaanse misdaadserie. Nothing But The Truth. Jamie bekomt van haar tirade. Wanneer haar familie wordt bedreigd, zweert Hildy de zaak tot op het bot te zullen uitspitten.jpg'
    [2019-05-29 20:36:02,353] [Log    ] [TVService] [ERROR] - RecordingFileHandler: Error while deleting a recording from disk: Het opgegeven pad, de bestandsnaam of beide zijn te lang. De volledig gekwalificeerde bestandsnaam moet minder dan 260 tekens bevatten en de mapnaam minder dan 248 tekens.
    (The error message in English is: "The specified path, file name, or both are too long. The fully qualified file name must contain fewer than 260 characters and the folder name must contain fewer than 248 characters.")

    It looks like there is a problem in TV Server, in that it shouldn't be creating files it can't delete, but where are you getting your EPG data from - it seems to be joining the program description and the title together, creating a very long title?
     

    willemx

    MP Donator
  • Premium Supporter
  • November 20, 2008
    48
    8
    Netherlands Netherlands
    I am using WebGrab++. It grabs the EPG from tv sites, so I think some tv site must have changed its format recently. I will check and report back.
    Thank you for looking into this!
     

    Owlsroost

    Development Group
  • Team MediaPortal
  • October 28, 2008
    5,540
    5,038
    Cambridge
    United Kingdom United Kingdom
    Country flag
    When I have time, I'll take a look at the filename length checking that is done when recordings are started by TV Server - e.g. it might not be checking for the path lengths to the 'thumbs' folder.
     

    CyberSimian

    Test Group
  • Team MediaPortal
  • June 10, 2013
    2,073
    1,283
    Southampton
    United Kingdom United Kingdom
    Country flag
    I am using WebGrab++. It grabs the EPG from tv sites, so I think some tv site must have changed its format recently. I will check and report back.
    Are you including the episode name in the file name?

    You specify the style of the file name in "TV Server Config" (see this page in the Wiki). If your EPG source has incorrectly defined the episode name (it looks like the complete programme description :eek:), that might explain the cause of the overlong file name.

    -- from CyberSimian in the UK
     

    Owlsroost

    Development Group
  • Team MediaPortal
  • October 28, 2008
    5,540
    5,038
    Cambridge
    United Kingdom United Kingdom
    Country flag
    When I have time, I'll take a look at the filename length checking that is done when recordings are started by TV Server - e.g. it might not be checking for the path lengths to the 'thumbs' folder.
    @willemx - If you are using MP 1.22 TV Server, attached is a replacement 'TvService.exe' which checks the record filename lengths and will adjust (truncate) if necessary to keep within the Windows limits.

    (The change will also be included in MP 1.23 pre-release)
     

    Attachments

    willemx

    MP Donator
  • Premium Supporter
  • November 20, 2008
    48
    8
    Netherlands Netherlands
    @CyberSimian : Thanks for stepping in: I checked the file name settings, but they are ok, just %title% - %channel% - %date%.
    I did not change the WebGrab or MP settings lately, so I don´t understand what happened. I guess maybe WebGrab or the EPG site had some sort of hiccup.
    I have made sure that filenames cannot be too long anymore. I made a small script that parses the tvguide.xml and corrects long titles, but they haven´t shown up anymore. With the new TvService.exe made by OwlsRoost, that script shouldn´t be necessary anymore...

    @Owlsroost : The errors about ExecutePendingDeletions still appear in the logfile. Somehow MediaPortal insists on deleting these files even though the files don´t even exist anymore on the file system.
    Is there a way to force MediaPortal to ´forget´ these pending deletions?

    I tried to find a way to do this in the TV Server Configuration app: I opened ´Recording > Database import´
    Nothing appeared in the entries window, but when I clicked ´Remove invalid entries´, I was being presented with lots of ´Recording not found on disk´ dialogs, asking to delete the entries.
    However if I click ´Ýes´ to delete an entry, there is an error message ´Cleanup failed. Unable to remove objects that have not yet been persisted´
    Unfortunately there is no way to stop these dialogs. You have to click through an endless list of entries. And even more unfortunately, the dialogs are placed on different screen positions depending on the content, so it is difficult to click the right button every time. And after clicking hundreds of times, it is very easy to miss the last dialog and then you automatically click the ´Remove invalid entries´ again, forcing you through the whole procedure again (and again.:()'
    Is there another way to get rid of these invalid entries?

    Do you think the ExecutePendingDeletions are also the cause of the recordings not stopping?
    I will install your new TvService.exe and will report back...
     

    CyberSimian

    Test Group
  • Team MediaPortal
  • June 10, 2013
    2,073
    1,283
    Southampton
    United Kingdom United Kingdom
    Country flag
    Is there another way to get rid of these invalid entries?
    Yes, there is :). In MP, go to the "Recorded TV" panel, and then move the focus left to display the left side menu. There should be a button called "Clean-up recordings". Select that. An alarming pop-up appears warning you that recordings will be deleted, but ignore that and continue. On the next pop-up, select "Invalid recordings". This deletes invalid entries from the SQL database, it does not delete files from the disk.

    I checked the file name settings, but they are ok, just %title% - %channel% - %date%.
    If you look at the log extract that @Owlsroost showed in his post, you will see that the file name in the log file does not correspond to the style that you mention above. From the title, it looks as though the recording is part of a series. Remember that in "TV Server Config" you can specify separate styles for series recordings and for single recordings. Did you check the style for series recordings?

    -- from CyberSimian in the UK
     

    willemx

    MP Donator
  • Premium Supporter
  • November 20, 2008
    48
    8
    Netherlands Netherlands
    @CyberSimian : 'Cleanup recordings' worked; invalid entries are gone now.
    You were right about the file name settings: in the 'series style' title there was an episode-name parameter that must have caused the trouble.
    Thanks!
     

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

    OP Similar threads Forum Replies Date
    M MP 2.2.3 Unable to play .ts recordings and MediaPortal stops working for TV viewing General 31
    R [solved] Watching a record during recording stops sometimes 2.2 Archive 30
    N [confirm] Calling RemoveScheduleForProgramAsync does not stop the recording if it is currently in progress MediaPortal 2 1
    N [confirm] Playing a recording, then pressing stop does not leave cursor on the recording MediaPortal 2 21
    D Skip to end/live during dvbip recording causes it to stop playing instead. General Support 15
    C [solved] how to stop recording? General 3
    P Blocking TV recordings on client? General 3
    1gkar [solved] LiveTV Records Causing 100% Drive Activity Television (MyTV frontend and TV-Server) 10
    toricred Recordings Change : to _ in Series Name General 0
    P Recording films that have an "intermission" General 3
    H MP2 database won't keep in synch with recordings General 8
    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
    R [solved] Unable to delete single recording General 2
    R Correct setting for recordings on shared folder General 0
    W [solved] MP suddenly Crashes when starting live TV on most channels and on recordings from the same channels General Support 20
    W [solved] MP suddenly Crashes when starting live TV on some channels and on some recordings Television (MyTV frontend and TV-Server) 1
    S Shortcuts MP1 My Recorded & TV Guide General 10
    F How to reset tv recordings database General 5
    P Recordings not showing up unless re-imported and not possible to delete General 0
    X Recording import hängt Allgemeines Support- und Diskussionsforum 0
    F Recording starts at second time only MediaPortal 1 Talk 6
    Similar threads

























    Top Bottom