[mythtv-users] myth_archive_job.pl fails as user job but works when run as mythtv user on CLI

Ian Evans dheianevans at gmail.com
Thu Nov 2 19:45:07 UTC 2023


On Thu, Nov 2, 2023, 3:11 p.m. Roland Ernst <rcrernst at gmail.com> wrote:

>
>
> On Wed, Nov 1, 2023 at 9:48 PM Ian Evans <dheianevans at gmail.com> wrote:
>
>> Running 33.1 fixes
>>
>> I'm running out of space until I get a new drive for the mythbox, so
>> mounted a windows share and set up a user job using the script at:
>>
>> https://www.mythtv.org/wiki/Myth_archive_job.pl
>>
>> I had used this in the past on another system and it worked. All it does
>> is move the recording file if there's enough space. I chose a recording and
>> selected the user job. It failed.
>>
>> The backend log:
>> Nov  1 14:40:46 bhmf mythbackend: mythbackend[210595]: E UserJob_920
>> jobqueue.cpp:2468 (DoUserJobThread) JobQueue: User Job '/usr/bin/
>> myth_archive_job.pl -d /media/disk2/mythtv -f 15709_20231031235900.ts"'
>> failed.
>>
>> When I ran /usr/bin/myth_archive_job.pl -d /media/disk2/mythtv -f
>> 15709_20231031235900.ts from the command line as the mythtv user it worked.
>>
>> Any idea why it would fail as a user job? How can I get some more info on
>> why it failed?
>>
>> Thanks.
>>
>>
> Is it a typo or does the user-job command actually end with one unmatched
> double quote (") ?
> Check in mysql with
> SELECT
> <http://10.0.0.190/phpmyadmin/url.php?url=https://dev.mysql.com/doc/refman/5.5/en/select.html>
> * FROM settings WHERE value LIKE
> <http://10.0.0.190/phpmyadmin/url.php?url=https://dev.mysql.com/doc/refman/5.5/en/string-comparison-functions.html#operator_like>
> 'UserJob_'
>
>
Dang! Good eye! I'll check it out later.

>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20231102/7ca34709/attachment.htm>


More information about the mythtv-users mailing list