[mythtv-users] Auto shutdown not working, scheduler.cpp ?
Olaf Richter
mail at laffinet.de
Mon Apr 29 10:46:51 UTC 2013
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.
Since then automatic shutdown of the backend is no longer working.
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.
Scenario 1:
- Boot backend
- do nothing else (e.g. start remote frontend or mythfrontend on the backend)
- automatic shutdown does not work
Scenario 2:
- Boot backend
- start remote frontend
- shut down frontend
- automatic shutdown does not work
- restart backend service (without reboot)
- automatic shutdown works
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:
2013-04-29 19:18:07.592125 N[660/738] Expire autoexpire.cpp:641
(SendDeleteMessages) - Expiring 156 MBfor 1073 at2013-04-13T11:50:20Z =>
Hulk
2013-04-29 19:18:07.632899 E[660/660] CoreContext mainserver.cpp:2610
(DoHandleDeleteRecording) - ERRORwhen trying todelete file:
myth://192.168.1.103:65103:6543/1070_20120126203445.mpg. File doesn't exist.
Database metadata will not be removed.
2013-04-29 19:18:07.889638 E[660/660] CoreContext mainserver.cpp:2610
(DoHandleDeleteRecording) - ERRORwhen trying todelete file:
myth://192.168.1.103:65103:6543/1022_20120206192600.mpg. File doesn't exist.
Database metadata will not be removed.
I am starting to think this has to do with scheduler.cpp
In scenario 2 (successful) I see the following in the log just before the above
auto expire stuff:
Scheduler scheduler.cpp:2307 (HandleRunSchedulerStartup) - Scheduler: Seem
to be woken upby USER
then a whole heap of auto expiry stuff and finally:
Scheduler scheduler.cpp:2862 (CheckShutdownServer) - CheckShutdownServer
returned- OK to shutdown
2013-04-29 19:19:55.276775 N[660/735] Scheduler scheduler.cpp:2947
(ShutdownServer) - Running the command toset thenext scheduled wakeup
time:-
sudo/home/laffi/scripts/MythSetWakeup
1367229120
2013-04-29 19:19:55.372582 N[660/735] Scheduler scheduler.cpp:2974
(ShutdownServer) - Running the command to shutdownthis computer:-
sudo/home/laffi/scripts/MythShutdown
In scenario 1 (unsuccessfull shutdown) I also get
Scheduler scheduler.cpp:2307 (HandleRunSchedulerStartup) - Scheduler: Seem
to be woken upby USER
and then autoexpiry, but then, once a frontend connects:
ProcessRequest mainserver.cpp:1385 (HandleAnnounce) - adding: frontendas a
client(events: 0)
I don't get autoexpiry of files and no shutdown, both of which I believe are
initiated by scheduler.cpp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20130429/9070d3bc/attachment.html>
More information about the mythtv-users
mailing list