[mythtv-users] Lossless cut works from command line but not as user job
Stephen Robertson
stephengrobertson at gmail.com
Fri Oct 12 19:18:06 UTC 2012
I'm having a problem getting lossless_cut to work as a user job. It's
run from the queue apparently successfully
Oct 12 20:07:36 bressay mythbackend[26982]: I JobQueue
jobqueue.cpp:1361 (GetJobsInQueue) JobQueue: GetJobsInQueue: Found 'LL
Cut to MythVideo' Job for chanid 9700 @ 20121011072500 in Queued
state.
Oct 12 20:07:36 bressay mythbackend[26982]: I JobQueue
jobqueue.cpp:1168 (InJobRunWindow) JobQueue: Currently set to run new
jobs from 00:00 to 23:59
Oct 12 20:07:36 bressay mythbackend[26982]: I JobQueue
jobqueue.cpp:249 (ProcessQueue) JobQueue: Currently Running 0 jobs.
Oct 12 20:07:36 bressay mythbackend[26982]: I JobQueue
jobqueue.cpp:462 (ProcessQueue) JobQueue: Processing 'LL Cut to
MythVideo' job for chanid 9700 @ 20121011072500, current status is
'Queued'
Oct 12 20:07:36 bressay mythbackend[26982]: I JobQueue
jobqueue.cpp:976 (ChangeJobStatus) JobQueue: ChangeJobStatus(2122,
Pending, '')
Oct 12 20:07:36 bressay mythbackend[26982]: I JobQueue
jobqueue.cpp:976 (ChangeJobStatus) JobQueue: ChangeJobStatus(2122,
Starting, '')
Oct 12 20:07:36 bressay mythbackend[26982]: I UserJob_2122
jobqueue.cpp:976 (ChangeJobStatus) JobQueue: ChangeJobStatus(2122,
Running, '')
Oct 12 20:07:36 bressay mythbackend[26982]: I UserJob_2122
jobqueue.cpp:2409 (DoUserJobThread) JobQueue: Started LL Cut to
MythVideo for "Peppa Pig":"The Long Grass" recorded from channel 9700
at 2012-10-11T07:25:00Z
Oct 12 20:07:36 bressay mythbackend[26982]: I UserJob_2122
jobqueue.cpp:2424 (DoUserJobThread) JobQueue: Running command:
'/usr/bin/lossless_cut -f
/media/disk/Recordings/9700_20121011072500.mpg -e -k'
Oct 12 20:07:36 bressay mythbackend[26982]: I ProcessRequest
mainserver.cpp:1395 (HandleAnnounce) MainServer::ANN Monitor
Oct 12 20:07:36 bressay mythbackend[26982]: I ProcessRequest
mainserver.cpp:1397 (HandleAnnounce) adding: bressay as a client
(events: 2)
Oct 12 20:07:36 bressay mythbackend[26982]: I ProcessRequest
mainserver.cpp:1395 (HandleAnnounce) MainServer::ANN Monitor
Oct 12 20:07:36 bressay mythbackend[26982]: I ProcessRequest
mainserver.cpp:1397 (HandleAnnounce) adding: bressay as a client
(events: 2)
Oct 12 20:07:37 bressay mythbackend[26982]: I Scheduler
scheduler.cpp:2239 (HandleReschedule) Scheduled 319 items in 11.6 =
6.94 match + 0.67 check + 4.01 place
Oct 12 20:07:37 bressay mythbackend[26982]: I UserJob_2122
jobqueue.cpp:2461 (DoUserJobThread) JobQueue: Finished LL Cut to
MythVideo for "Peppa Pig":"The Long Grass" recorded from channel 9700
at 2012-10-11T07:25:00Z
Oct 12 20:07:37 bressay mythbackend[26982]: I UserJob_2122
jobqueue.cpp:976 (ChangeJobStatus) JobQueue: ChangeJobStatus(2122,
Finished, 'Successfully Completed.')
But it completes straight away and there is no log.
Running the exact same command from a prompt works as the logged in user
stephen at bressay:~/mythgit/mythtv$ /usr/bin/lossless_cut -f
/media/disk/Recordings/9700_20121011072500.mpg -e -k
Copying "/media/disk/Recordings/Peppa Pig - S02E17 - The Long
Grass.mkv" to myth://Videos@bressay/Review/Peppa Pig - S02E17 - The
Long Grass.mkv
Running the job as mythtv user(which is what mythbackend runs as.
This is ubuntu/mythbuntu packages)
stephen at bressay:~/mythgit/mythtv$ sudo -umythtv /usr/bin/lossless_cut
-f /media/disk/Recordings/9700_20121011072500.mpg -e -k
[sudo] password for stephen:
Processing the configuration file failed. Error(The script does not
have read and write permissions for the "workpath" variables path:
"/tmp/lossless_cut")
So obviously there is something wrong with my permissions, but the
script seems to be returning success to the job queue. As far as I
know I have not interfered with what the permissions are on /tmp/ from
the default.
Stephen
More information about the mythtv-users
mailing list