[mythtv-users] 0.25 lookup metadata as part of jobqueue?

Michael Watson michael at thewatsonfamily.id.au
Sat Mar 17 16:00:52 UTC 2012


On 18/03/2012 1:42 AM, Scott & Nicole Harris wrote:
>>>> In both cases, mythtranscode was unable to create the temporary file in
>>>> which it planned to transcode.
>>>> It looks like you're running mythjobqueue as a user that doesn't have
>>>> permissions on (at least some of) the /mythtv_storage*/recordings/
>>>> directories (meaning that mythtranscode then inherits the
>>>> user/permissions of mythjobqueue).  This may also explain why some of
>>>> the transcodes succeed--because some of those directories have more lax
>>>> permissions.  You should check ownership of all your recordings to
>>>> ensure they're correct (likely mythtv user) so that you don't have
>>>> problems deleting them at some later date.
>>>> FWIW, I don't think the --user argument works for mythjobqueue, so you'd
>>>> need some other way to start it as the right user.  I'm clueless on
>>>>> upstart, so I'll let someone else help you figure out how that's done.
>>>> And, BTW, thanks for helping figure this out.  Once it's figured out,
>>>> perhaps we can get Ubuntu to start shipping a proper mythjobqueue start
>>>> script (or at least get one on the wiki).
>> At one point I was starting mythjobqueue via a init.d script (from
>> memory I think I modified the Fedora script found on the wiki)
>> I dont recall why I stopped using it, but I found it better (or easier)
>> to run the full backend with a Dummy Tuner configured.  (As it
>> wasnt/isn't an "approved" configuration for a backend without any tuners
>> configured.
>>> Mike
>>> I was wondering (it amazes me the things that run through my head when
>>> I'm
>>> supposed to be sleeping) if it might be something with permissions.
>>> However, as far as I can tell, all the mythtv_storage* folders have the
>>> same
>>> permissions, which were set with the -R flag...
>>>
>>> drwxrwsr-x   4 mythtv mythtv     0 2012-03-17 08:03 mythtv_storage1
>>> drwxrwsr-x   3 mythtv mythtv     0 2012-03-17 08:03 mythtv_storage2
>>> drwxrwsr-x   3 mythtv mythtv     0 2012-03-17 08:03 mythtv_storage3
>>> drwxrwsr-x   3 mythtv mythtv     0 2012-03-17 08:03 mythtv_storage4
>>> drwxrwsr-x   3 mythtv mythtv     0 2012-03-17 08:03 mythtv_storage5
>> Is this the permissions as seen by the MBE or the SBE (mythjobqueue)
>> machine.    How are you mounting the directories on the remote machine?
> These are the permissions as seen by the SBE.  The directories are mount via
> smb...
>
> mount -t cifs -o
> username=USER,password=PASS,rsize=8192,wsize=8192,noatime,_netdev
> //192.168.25.30/mythtv_storage1 /mythtv_storage1
>
>
Try this as your init script.  Will run mythjobqueue as mythtv User

------------------------------------------------------------------
# MythTV Jobqueue service

description     "MythTV Jobqueue"
author          "Me"

start on (local-filesystems and net-device-up IFACE!=lo and started 
udev-finish)
stop on runlevel [016]

respawn
respawn limit 2 3600

script
         test -f /etc/default/locale && . /etc/default/locale || true
         exec sudo -H -u mythtv LANG=$LANG /usr/bin/mythjobqueue 
--logfile /var/log/mythtv/mythjobqueue.log
end script



More information about the mythtv-users mailing list