[mythtv-users] User job runs on wrong backend

Andre Newman mythtv-list at dinkum.org.uk
Sat Apr 4 10:43:37 UTC 2009

On 4 Apr 2009, at 01:27, Michael T. Dean wrote:
> echo 'SELECT * FROM settings WHERE value = "JobsRunOnRecordHost";' |
> mysql -umythtv -p mythconverg

JobsRunOnRecordHost	1	NULL

so that seems fine, MythWeb concurs.
> But the first question should be, "Did you restart all the backends/ 
> frontends/mythjobqueues/etc after setting, 'Run Jobs only on  
> original recording backend'?"

I'd say yes but to be certain I've shut down both backends (I don't  
use a frontend other than for settings) checked for any stray  
processes. Then started both back up, master first then slave,  
scheduled two recordings such that both backends have to be used  
including the relevant scheduled jobs. Both backends ran the jobs as  
scheduled on the right hosts, the slave job failed as I'd left a  
temporary file around but otherwise it would have run properly.

I then re-scheduled the job on the slave host's recording (from  
MythWeb) and it tried to run on the master! I re-scheduled the job  
again (exactly as before) and it ran on the correct slave host and  

Now the slave backend is not responding, it seems alive and mythweb  
says it's connected but I can't schedule any recordings on it.  
Restarted mythtv-backend and scheduled the same two 1 minute test  

I've tried the above about 15 times and so far no failures, as soon as  
I manually schedule a job it's 50/50, so based on a small sample I'd  
suggest that  JobsRunOnRecordHost is not honoured if the job is  
manually scheduled. I've still had examples of jobs failing over the  
past few weeks that weren't manually scheduled but maybe there is some  
other circumstance where a job gets re-scheduled and again the flag is  
not honoured.

The problem been going on for many weeks but I've been blaming my user  
job scripts, now I'm not so sure.

The only other multiple backend setting I can see is override master  
backend (which is set) but I don't think this is related.

Thanks for the help, does my theory hold water?


More information about the mythtv-users mailing list