[mythtv-users] Fwd: User Jobs Failing

Conor Klecker conor at ronoc.net
Wed Sep 28 22:25:28 UTC 2011


I just started working with user jobs and I cannot seem to get them to
run. There are two jobs I have trying to run. One runs mythlink.pl the
other runs mythnuv2mkv.pl
Here is what have in the user job text field:

> /usr/share/doc/mythtv-backend/contrib/user_jobs/mythlink.pl --link /var/lib/mythtv/recordings/recorded/ --format '%T/%T%-%S'

> /usr/share/doc/mythtv-backend/contrib/user_jobs/mythnuv2mkv.sh --jobid=%JOBID% chanid=%CHANID% --starttime=%STARTTIME%

Permissions on files in their folders:

mythman at xeon:~$ ls -la /usr/share/doc/mythtv-backend/contrib/user_jobs/
total 144
drwxr-xr-x 2 root   root     4096 2011-09-27 20:39 .
drwxr-xr-x 9 root   root     4096 2011-04-25 19:27 ..
-rwxr-xr-x 1 mythtv mythtv  16845 2010-12-07 02:05 mythlink.pl
-rwxrwxrwx 1 mythtv mythtv 113350 2011-09-27 21:57 mythnuv2mkv.sh
-rwxr-xr-x 1 mythtv mythtv   3477 2011-09-13 22:36 mythtv-transcode-h264.sh

Backend Log



2011-09-27 22:11:58.824 Received a remote 'Clear Cache' request
2011-09-27 22:11:58.824 Received a remote 'Clear Cache' request
2011-09-27 22:11:58.827 Reschedule requested for id 0.
2011-09-27 22:11:59.880 Scheduled 335 items in 1.0 = 0.00 match + 1.04 place
2011-09-27 22:11:59.884 scheduler: Scheduled items: Scheduled 335
items in 1.0 = 0.00 match + 1.04 place
2011-09-27 22:12:46.779 JobQueue: Started nuv2mkv for Glee:"I Am
Unicorn" recorded from channel 2471 at 2011-09-27T19:00:00
2011-09-27 22:12:46.786 jobqueue: Job "nuv2mkv" Started: Started
nuv2mkv for Glee:"I Am Unicorn" recorded from channel 2471 at
2011-09-27T19:00:00
2011-09-27 22:12:48.285 JobQueue Error: User Job
'/usr/share/doc/mythtv-backend/contrib/user_jobs/mythnuv2mkv.sh
--jobid=1021 --chanid=2471 --starttime=20110927190000' failed.
2011-09-27 22:12:48.289 jobqueue: User Job Errored: User Job
'/usr/share/doc/mythtv-backend/contrib/user_jobs/mythnuv2mkv.sh
--jobid=1021 --chanid=2471 --starttime=20110927190000' failed.
2011-09-27 22:13:05.395 Reschedule requested for id -1.
2011-09-27 22:13:06.774 Scheduled 335 items in 1.4 = 0.06 match + 1.31 place
2011-09-27 22:13:06.778 scheduler: Scheduled items: Scheduled 335
items in 1.4 = 0.06 match + 1.31 place
2011-09-27 22:13:12.971 Reloading backend settings
2011-09-27 22:13:12.980 Received a remote 'Clear Cache' request
2011-09-27 22:13:12.981 Received a remote 'Clear Cache' request
2011-09-27 22:13:52.549 Reloading backend settings
2011-09-27 22:13:52.556 Received a remote 'Clear Cache' request
2011-09-27 22:13:52.557 Received a remote 'Clear Cache' request
2011-09-27 22:15:21.722 MainServer::ANN Monitor
2011-09-27 22:15:21.723 adding: xeon as a client (events: 0)
2011-09-27 22:15:21.726 MainServer::ANN Monitor
2011-09-27 22:15:21.727 adding: xeon as a client (events: 1)
2011-09-27 22:16:19.190 MainServer::ANN Monitor
2011-09-27 22:16:19.191 adding: xeon as a client (events: 0)
2011-09-27 22:16:19.192 MainServer::ANN Monitor
2011-09-27 22:16:19.193 adding: xeon as a client (events: 1)
2011-09-27 22:16:37.152
RingBuf(/var/lib/mythtv/recordings/2151_20110927213600.mpg): Waited
1.0 seconds for data
                       to become available... 13712 < 32768
2011-09-27 22:16:37.642 [ac3 @ 0x7f68e4631580]incomplete frame
2011-09-27 22:16:46.179 MainServer::ANN Monitor
2011-09-27 22:16:46.180 adding: xeon as a client (events: 0)
2011-09-27 22:16:46.183 MainServer::ANN Monitor
2011-09-27 22:16:46.184 adding: xeon as a client (events: 1)
2011-09-27 22:16:46.784 ~MythContext waiting for threads to exit.
2011-09-27 22:16:47.128 MainServer::ANN Monitor
2011-09-27 22:16:47.130 adding: xeon as a client (events: 0)
2011-09-27 22:16:47.139 MainServer::ANN Monitor
2011-09-27 22:16:47.141 adding: xeon as a client (events: 1)
2011-09-27 22:16:47.997 commflag: Commercial Detection Finished:
Parenthood:"Step Right Up" recorded from channel 2151 at
2011-09-27T21:36:00 (2 commercial break(s))
2011-09-27 22:16:51.831 JobQueue: Started Create human readable
symlinks for Parenthood:"Step Right Up" recorded from channel 2151 at
2011-09-27T21:36:00
2011-09-27 22:16:51.835 jobqueue: Job "Create human readable symlinks"
Started: Started Create human readable symlinks for Parenthood:"Step
Right Up" recorded from channel 2151 at 2011-09-27T21:36:00
2011-09-27 22:16:52.659 MainServer::ANN Monitor
2011-09-27 22:16:52.660 adding: xeon as a client (events: 0)
Couldn't remove old symlink Parenthood- Hard Times Come Again No
More.2.mpg: Permission denied
2011-09-27 22:16:52.799 JobQueue Error: User Job
'/usr/share/doc/mythtv-backend/contrib/user_jobs/mythlink.pl --link
/var/lib/mythtv/recordings/recorded/ --format '%T/%T%-%S'' failed.
2011-09-27 22:16:52.802 jobqueue: User Job Errored: User Job
'/usr/share/doc/mythtv-backend/contrib/user_jobs/mythlink.pl --link
/var/lib/mythtv/recordings/recorded/ --format '%T/%T%-%S'' failed.
2011-09-27 22:17:03.079 MainServer::ANN Monitor
2011-09-27 22:17:03.080 adding: xeon as a client (events: 2)
2011-09-27 22:18:26.253 Reschedule requested for id -1.
2011-09-27 22:18:27.140 Scheduled 335 items in 0.9 = 0.04 match + 0.84 place
2011-09-27 22:18:27.144 scheduler: Scheduled items: Scheduled 335
items in 0.9 = 0.04 match + 0.84 place


What am I doing wrong? I know that the script for the renaming works
since I type it in as:

sudo ./usr/share/doc/mythtv-backend/contrib/user_jobs/mythlink.pl
--link /var/lib/mythtv/recordings/recorded/ --format '%T/%T%-%S'

and it runs great. nuv2mkv runs and errors out with mecoder errors at
the end but it runs.

Thanks


More information about the mythtv-users mailing list