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

Gcarr

MP Donator
  • Premium Supporter
  • August 17, 2014
    155
    53
    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,306
    795
    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,724
    7,104
    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
    155
    53
    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
    155
    53
    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
    P MP2 TV Recording Logs General 1
    T MP2 - V2.3 MP2 Won't Restart, Requires System Reboot Submit: Bug Reports 2
    ge2301 MP2 - V2.4 [MP2-863] Extend View Mode Settings MediaPortal 2 8
    porky996t Outdated Tuning Parameters in MP2 TVServer Config TV-Server 0
    B IRSS shows button presses, nothing happening out-of-the-box in MP2 Newcomers Forum 1
    D MP2 DLNA status? General 10
    N [solved] MP2 TV-Server DD cine 2 V6, Astra keine deutschen Sender mehr General 4
    H MP2 - V2.4 [MP2-855] Extend Nereus HomeMenuEditor to allow configuration of HomeContent features MediaPortal 2 16
    M MP2 - V2.3 MP2 & USB Problems Submit: Bug Reports 43
    L MP2 - V2.3 Troubles upgrading from MP2 2.2.3 to 2.3 General 0
    T MP2 - V2.3 MP2 x64 won't run Submit: Bug Reports 5
    J Copying Old VHS tapes Newcomers Forum 8
    W MP2 - V2.3 MP2 2.3 Import von Audioquellen / Datenbankprobleme Allgemeines Support- und Diskussionsforum 26
    G MP2 - V2.3 New install and crashing MP2-2.3 General 6
    S MP2 - V2.3 MP2 No video General 6
    W [solved] MP2 Server stürzt immer nach kurzer Zeit ab Allgemeines Support- und Diskussionsforum 89
    toricred MP2 - V2.3 MP2 2.3 Client won't start General 7
    Grisu002 MP2 - V2.3 MP2 2.3 Client startet nicht - bleibt beim Laden hängen Allgemeines Support- und Diskussionsforum 64
    M [solved] MP2 PROBLEME Standby Allgemeines Support- und Diskussionsforum 2
    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 MP2 - V2.4 Porting MP2 to .Net (Core) 5 MediaPortal 2 49
    da3dsoul Does MP2 not have any active devs? General 8

    Similar threads

    Top Bottom