[fixed] [MP2-811] Forced client wake-up at 2:00 (1 Viewer)

Gcarr

MP Donator
  • Premium Supporter
  • August 17, 2014
    100
    23
    United States of America United States of America
    Country flag
    Both of my v.2.2.1 PCs wakes up every night at 2am. The only setting I can find in settings is for share refresh, which I have set for 6am. I finally found two settings files (there may be more) that schedule a wakeup at that time.
    MediaPortal.Common.Services.MediaManagement.ImporterWorkerSettings.xml
    MediaPortal.Common.Services.TaskScheduler.TaskSchedulerSettings.xml
    I tried to edit them but they just change back to 2am on their own. Is there any way to change these? One of these PCs is in my bedroom so you can imagine what that's like.
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,431
    2,334
    Germany Germany
    Country flag
    That's a very interesting finding as I have been struggling with the same phenomenon and was not able to identify the cause.

    I finally found two settings files (there may be more) that schedule a wakeup at that time.
    MediaPortal.Common.Services.MediaManagement.ImporterWorkerSettings.xml
    MediaPortal.Common.Services.TaskScheduler.TaskSchedulerSettings.xml
    @henso, can you comment about the ImporterWorkingSettings? We may have a bug here.
     

    henso

    Development Group
  • Team MediaPortal
  • February 16, 2012
    2,204
    757
    Denmark Denmark
    Country flag
    I’m not home until next weekend. I can take look when I’m home again.
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,431
    2,334
    Germany Germany
    Country flag
    @henso,
    Regardless of an active or inactive User Management the behavior stays the same. Deleting MediaPortal.Common.Services.TaskScheduler.TaskSchedulerSettings.xml leads to recreation of the file at the new start of the client app with 2:00 scheduled as wakeup time. Changing the times or the expiration date doesn't help either as reported by @Gcarr, in fact expiration is reset to 9999-12-31 at every start.

    I'll move this thread to the Bug section.
     

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,540
    7,040
    Germany Germany
    Country flag
    Deleting MediaPortal.Common.Services.TaskScheduler.TaskSchedulerSettings.xml leads to recreation of the file at the new start of the client app with 2:00 scheduled as wakeup time
    This is an expected behavior: when settings files are deleted, they will be recreated with the defaults defined in code. For media importer it's 2 o'clock import run that is enabled by default.

    On a single seat system this file exists both for client and server. So for testing please open both files in text editor and change "true" to "false" here:
    <Property Name="EnableAutoRefresh">
    <boolean>true</boolean>
    </Property>
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,431
    2,334
    Germany Germany
    Country flag
    This is an expected behavior: when settings files are deleted, they will be recreated with the defaults defined in code. For media importer it's 2 o'clock import run that is enabled by default.
    Yes and no. The file is recreated with the standard settings but in the Client settings the automatic refresh continues to display as "No".

    So for testing please open both files in text editor and change "true" to "false" here:
    <Property Name="EnableAutoRefresh">
    <boolean>true</boolean>
    The one on the server was set to "false". I now also changed the one on the clients.

    EDIT: As this is only for the importer and share refresh, which is running server-based, I presume that the version on the client has no practical use and should not be there, correct?
     

    Gcarr

    MP Donator
  • Premium Supporter
  • August 17, 2014
    100
    23
    United States of America United States of America
    Country flag
    The one on the server was set to "false". I now also changed the one on the clients.
    Funny, on mine the server was enabled and set to 6am, which is what I had in my Settings. Both clients are still set to 2am. I set false for all 3 of them.
    @HTPCSourcer you asked earlier about whether I was running user management. I initially tried to set it up with users but disabled it. The two users I was setting up still exist though. Should I delete them? I was leaving them there because I thought I might try again when I get more familiar with MP2.
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,431
    2,334
    Germany Germany
    Country flag
    Funny, on mine the server was enabled and set to 6am, which is what I had in my Settings.
    That's the correct behavior. The file in the server part is reflects the what you've defined in the settings (and vice-versa). The automatic refresh is deactivated on my system, hence the file is set to false while the time has always been 2am.

    I set false for all 3 of them.
    Did they wake up this night?

    The two users I was setting up still exist though. Should I delete them?
    No, the user management is unrelated.
     

    Gcarr

    MP Donator
  • Premium Supporter
  • August 17, 2014
    100
    23
    United States of America United States of America
    Country flag
    Did they wake up this night?
    .
    Yes, they both woke up at 2am. I don't have time to post logs this morning but I will if you need them after work today.
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,431
    2,334
    Germany Germany
    Country flag
    Yes, they both woke up at 2am.
    Thanks. So setting this to false on the client has unfortunately no effect. We will need to wait for @henso to take a look at the situation when he returns from vacation.
     

    Users who are viewing this thread

    Similar threads
    OP Title Forum Replies Date
    toricred MP2 - V2.3 MP2 2.3 Client won't start General 6
    Grisu002 MP2 - V2.3 MP2 2.3 Client startet nicht - bleibt beim Laden hängen Allgemeines Support- und Diskussionsforum 29
    M MP2 PROBLEME Standby Allgemeines Support- und Diskussionsforum 1
    Scheibes Was passiert bei MP2? Allgemeines Support- und Diskussionsforum 42
    S Programmierte Aufnahme in MP2 - kein Aufwachen des PC Allgemeines Support- und Diskussionsforum 5
    morpheus_xx [Finished] "What's New" plugin for MP2 upgrades MediaPortal 2 20
    da3dsoul [Request] An MVP Plugin example for custom settings in MP2 Plugin Development 2
    morpheus_xx [Evaluate] Checking MP2 code portability to .Net Core MediaPortal 2 11
    da3dsoul Does MP2 not have any active devs? General 8
    da3dsoul MP2 Plugin - Getting Started (Directory Tree and Player) Plugin Development 27
    R [solved] Kein Player registriert Allgemeines Support- und Diskussionsforum 1
    -Merkur- MP2 Client startet nicht, "libXBMC_addon.dll" fehlt Allgemeines Support- und Diskussionsforum 1
    mp2-ulrich [solved] MP 2.2.3 spielt nur manche Sender Allgemeines Support- und Diskussionsforum 2
    H MP2 database won't keep in synch with recordings General 8
    H [solved] MP2 Wiedergabe von Aufnahmen und Live TV geht nicht Allgemeines Support- und Diskussionsforum 6
    ge2301 [WiP] MP2Web - A platform independent web client for MP2 MediaPortal 2 72
    F Problems with new install of MP2 Newcomers Forum 3
    catalpa Bug MP2-837 Allgemeines Support- und Diskussionsforum 2
    P MP2: US user, OTA - can NOT get SchedulesDirect plugin to work on MP1 or MP2 --> how do I get OTA schedule? General 5
    bigboss97 Does anyone has a SoundGraph imon remote file for MP2 to share? General 0
    ge2301 Android based client for MP2 MediaPortal 2 3
    R MP2 GUI Issues General 7
    P [solved] MP2 new install, 2 x hdhomerun tuners, client on same PC unable to view TV & recordings Newcomers Forum 8
    Lichloathe MP2 importing keyart instead of poster General 0
    Lichloathe Trakt for MP2 question General 7

    Similar threads

    Top Bottom