<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
 </head><body style="">
 
 
  <div> 
   <div style="font-family: -moz-fixed; font-size: 12px;" class="moz-text-flowed" lang="x-western">
    I recently updated my arch system which is running my dedicated backend/remote frontend setup. This pulled in 0.26 and the arch change to systemd, amongst other things. 
    <br/>Since then automatic shutdown of the backend is no longer working. 
    <br/> 
    <br/>I think I have established a pattern and believe the problem is related to scheduler.cpp, but I have no idea how to fix this. 
    <br/> 
    <br/>Scenario 1: 
    <br/> 
    <br/>- Boot backend 
    <br/> 
    <br/>- do nothing else (e.g. start remote frontend or mythfrontend on the backend) 
    <br/> 
    <br/>- automatic shutdown does not work 
    <br/> 
    <br/>Scenario 2: 
    <br/> 
    <br/>- Boot backend 
    <br/> 
    <br/>- start remote frontend 
    <br/> 
    <br/>- shut down frontend 
    <br/> 
    <br/>- automatic shutdown does not work 
    <br/> 
    <br/>- restart backend service (without reboot) 
    <br/> 
    <br/>- automatic shutdown works 
    <br/> 
    <br/>I also notice that in scenario 2 (when automatic shutdown works) there are a whole heap of these kind of messages right until shutdown occurs: 
    <br/> 
    <br/>2013-04-29&#160; 19:18:07.592125&#160; N[660/738]&#160; Expire&#160; autoexpire.cpp:641&#160; (SendDeleteMessages)&#160; -&#160; Expiring&#160; 156&#160; MBfor&#160; 1073&#160; at2013-04-13T11:50:20Z&#160; =&#62;&#160; Hulk 
    <br/>2013-04-29&#160; 19:18:07.632899&#160; E[660/660]&#160; CoreContext&#160; mainserver.cpp:2610&#160; (DoHandleDeleteRecording)&#160; -&#160; ERRORwhen&#160; trying todelete&#160; file:&#160; myth://192.168.1.103:65103:6543/1070_20120126203445.mpg. File doesn&#39;t exist.&#160; Database metadata will not be removed. 
    <br/>2013-04-29&#160; 19:18:07.889638&#160; E[660/660]&#160; CoreContext&#160; mainserver.cpp:2610&#160; (DoHandleDeleteRecording)&#160; -&#160; ERRORwhen&#160; trying todelete&#160; file:&#160; myth://192.168.1.103:65103:6543/1022_20120206192600.mpg. File doesn&#39;t exist.&#160; Database metadata will not be removed. 
    <br/> 
    <br/>I am starting to think this has to do with scheduler.cpp 
    <br/> 
    <br/>In scenario 2 (successful) I see the following in the log just before the above auto expire stuff: 
    <br/> 
    <br/>Scheduler&#160; scheduler.cpp:2307&#160; (HandleRunSchedulerStartup)&#160; -&#160; Scheduler:&#160; Seem&#160; to be woken upby&#160; USER 
    <br/> 
    <br/>then a whole heap of auto expiry stuff and finally: 
    <br/> 
    <br/>Scheduler&#160; scheduler.cpp:2862&#160; (CheckShutdownServer)&#160; -&#160; CheckShutdownServer&#160; returned-&#160; OK to shutdown 
    <br/>2013-04-29&#160; 19:19:55.276775&#160; N[660/735]&#160; Scheduler&#160; scheduler.cpp:2947&#160; (ShutdownServer)&#160; -&#160; Running&#160; the command toset&#160; thenext&#160; scheduled wakeup time:- 
    <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sudo/home/laffi/scripts/MythSetWakeup&#160; 1367229120 
    <br/>2013-04-29&#160; 19:19:55.372582&#160; N[660/735]&#160; Scheduler&#160; scheduler.cpp:2974&#160; (ShutdownServer)&#160; -&#160; Running&#160; the command to shutdownthis&#160; computer:- 
    <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sudo/home/laffi/scripts/MythShutdown 
    <br/> 
    <br/>In scenario 1 (unsuccessfull shutdown) I also get 
    <br/> 
    <br/>Scheduler&#160; scheduler.cpp:2307&#160; (HandleRunSchedulerStartup)&#160; -&#160; Scheduler:&#160; Seem&#160; to be woken upby&#160; USER 
    <br/> 
    <br/>and then autoexpiry, but then, once a frontend connects: 
    <br/> 
    <br/>ProcessRequest&#160; mainserver.cpp:1385&#160; (HandleAnnounce)&#160; -&#160; adding:&#160; frontendas&#160; a client(events:&#160; 0) 
    <br/> 
    <br/>I don&#39;t get autoexpiry of files and no shutdown, both of which I believe are initiated by scheduler.cpp 
    <br/> 
   </div> 
  </div>
 
</body></html>