[mythtv-users] Backend no-longer shuts down after yesterdays update...

Douglas Peale Douglas_Peale at comcast.net
Sat Oct 5 21:55:53 UTC 2013


On 10/05/2013 08:35 AM, Bill Meek wrote:
> On 10/04/2013 09:54 PM, Douglas Peale wrote:
> ...
>
> Better; try this:
>
> mythshutdown --check and verify no frontends are running.
>
> If/when that says you're ready to shutdown, do this
>
> tailf /var/log/mythtv/mythbackend.log (or your log location)
>
> From another terminal window do this:
>
> mythbackend --setverbose system,idle
>
> Watch the log, you should see, among other things:
>
>      Verbose mask changed, new mask is:  general system
>      ...
>      Managed child (PID: 6496) has exited! command=/usr/local/sbin/LocalPreShutdownTests.sh, status=256, result=1
>
> The script failed, in my case, as I was logged in (like you.)
> Then logout and wait however long your script takes to allow
> shutdown. After that period, log back in and look at the backend
> log. And the /temp file for why it failed.
>
> Bill
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
>
I only have the one system, so there are no external front ends to keep the system from shutting down.
I found I was getting error messages every 15 minutes where it attempted to delete a non-existing file. I created a dummy file
of the same name for it to delete, and now it appears happy after deleting it.
My script is failing because it is never being called. I let the tailf run for more than half an hour, my script should be
called every 3 minutes, but it was never called.

$ mythshutdown --check
OK to shutdown

$ tailf /var/log/mythtv/mythbackend.log
Oct  5 13:28:44 Compromise mythbackend: mythbackend[3043]: E CoreContext programinfo.cpp:2369 (GetPlaybackURL)
ProgramInfo(1021_20130119035000.mpg): GetPlaybackURL: '1021_20130119035000.mpg' should be local, but it can not be found.
Oct  5 13:28:44 Compromise mythbackend: mythbackend[3043]: E CoreContext mainserver.cpp:2665 (DoHandleDeleteRecording) ERROR
when trying to delete file: GetPlaybackURL/UNABLE/TO/FIND/LOCAL/FILE/ON/Compromise/1021_20130119035000.mpg. File doesn't exist. 
Database metadata will not be removed.
Oct  5 13:35:35 Compromise mythbackend: mythbackend[3043]: I ProcessRequest mainserver.cpp:1430 (HandleAnnounce) MainServer::ANN
Monitor
Oct  5 13:35:35 Compromise mythbackend: mythbackend[3043]: I ProcessRequest mainserver.cpp:1432 (HandleAnnounce) adding:
Compromise as a client (events: 0)
Oct  5 13:35:35 Compromise mythbackend: mythbackend[3043]: I ProcessRequest mainserver.cpp:1430 (HandleAnnounce) MainServer::ANN
Monitor
Oct  5 13:35:35 Compromise mythbackend: mythbackend[3043]: I ProcessRequest mainserver.cpp:1432 (HandleAnnounce) adding:
Compromise as a client (events: 1)
Oct  5 13:43:44 Compromise mythbackend: mythbackend[3043]: N Expire autoexpire.cpp:264 (CalcParams) AutoExpire: CalcParams():
Max required Free Space: 1.0 GB w/freq: 15 min
Oct  5 13:43:44 Compromise mythbackend: mythbackend[3043]: N Expire autoexpire.cpp:641 (SendDeleteMessages) Expiring 13628 MB
for 1021 at 2013-01-19T03:50:00Z => Fringe:"Liberty; An Enemy of Fate"
Oct  5 13:43:44 Compromise mythbackend: mythbackend[3043]: E CoreContext programinfo.cpp:2369 (GetPlaybackURL)
ProgramInfo(1021_20130119035000.mpg): GetPlaybackURL: '1021_20130119035000.mpg' should be local, but it can not be found.
Oct  5 13:43:44 Compromise mythbackend: mythbackend[3043]: E CoreContext mainserver.cpp:2665 (DoHandleDeleteRecording) ERROR
when trying to delete file: GetPlaybackURL/UNABLE/TO/FIND/LOCAL/FILE/ON/Compromise/1021_20130119035000.mpg. File doesn't exist. 
Database metadata will not be removed.
Oct  5 13:58:44 Compromise mythbackend: mythbackend[3043]: N Expire autoexpire.cpp:264 (CalcParams) AutoExpire: CalcParams():
Max required Free Space: 1.0 GB w/freq: 15 min
Oct  5 13:58:44 Compromise mythbackend: mythbackend[3043]: N Expire autoexpire.cpp:641 (SendDeleteMessages) Expiring 13628 MB
for 1021 at 2013-01-19T03:50:00Z => Fringe:"Liberty; An Enemy of Fate"
Oct  5 14:02:09 Compromise mythbackend: mythbackend[3043]: I ProcessRequest mainserver.cpp:1430 (HandleAnnounce) MainServer::ANN
Playback
Oct  5 14:02:09 Compromise mythbackend: mythbackend[3043]: I ProcessRequest mainserver.cpp:1432 (HandleAnnounce) adding:
Compromise as a client (events: 0)
Oct  5 14:02:09 Compromise mythbackend: mythbackend[3043]: I ProcessRequest mainserver.cpp:1430 (HandleAnnounce) MainServer::ANN
Monitor
Oct  5 14:02:09 Compromise mythbackend: mythbackend[3043]: I ProcessRequest mainserver.cpp:1432 (HandleAnnounce) adding:
Compromise as a client (events: 1)
Oct  5 14:02:09 Compromise mythbackend: mythbackend[3043]: N ProcessRequest mainserver.cpp:5326 (HandleSetVerbose) Verbose mask
changed, new mask is:  general system idle
Oct  5 14:13:44 Compromise mythbackend: mythbackend[3043]: N Expire autoexpire.cpp:264 (CalcParams) AutoExpire: CalcParams():
Max required Free Space: 1.0 GB w/freq: 15 min
Oct  5 14:28:44 Compromise mythbackend: mythbackend[3043]: N Expire autoexpire.cpp:264 (CalcParams) AutoExpire: CalcParams():
Max required Free Space: 1.0 GB w/freq: 15 min
Oct  5 14:30:00 Compromise mythbackend: mythbackend[3043]: I Scheduler mythdbcon.cpp:409 (PurgeIdleConnections) New DB
connection, total: 11
Oct  5 14:43:44 Compromise mythbackend: mythbackend[3043]: N Expire autoexpire.cpp:264 (CalcParams) AutoExpire: CalcParams():
Max required Free Space: 1.0 GB w/freq: 15 min


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20131005/9474c101/attachment.sig>


More information about the mythtv-users mailing list