Thank you, all I need now is a few minutes to put it in place. Scripts
that are hacked together are the best ones because they run. The clean
ones end up never existing :-)
Thanks again
Ianic
----- Message initial ----
De : edvale <[EMAIL PROTECTED]>
À : [EMAIL PROTECTED]
Envoyé le : lundi 15 septembre 2008, 00 h 13 min 35 s
Objet : [Bug 229797] Re: Recording will not commence until a PMT is set.
No I don't mind sharing the script at all. I start it from
/etc/rc.local with nohup. I hacked it together in a few minutes, so it
isn't pretty, but here goes:
#!/bin/bash
MYLOGFILE="/root/mythtvBugCheck.log"
MYTHLOGFILNAME="mythbackend.log"
MYTHLOGDIRNAME="/var/log/mythtv/"
OK_STRING="All is well"
MARK_STRING="-- MARK --"
BUGG_STRING="Warning: Recording will not commence until a PMT is set"
typeset -i cnt=0
typeset -i CNT_MAX=60
while (true)
do
cnt=`expr $cnt + 1`
grep "$BUGG_STRING" ${MYTHLOGDIRNAME}${MYTHLOGFILNAME} >/dev/null
if [[ $? -eq 0 ]]; then
echo "`date '+%Y-%m-%d %H:%M:%S'`: Restart MythTV backend..." >>
$MYLOGFILE
/etc/init.d/mythtv-backend stop >> $MYLOGFILE 2>> $MYLOGFILE
cp -p ${MYTHLOGDIRNAME}${MYTHLOGFILNAME} /tmp
grep -v "$BUGG_STRING" /tmp/${MYTHLOGFILNAME} >
${MYTHLOGDIRNAME}${MYTHLOGFILNAME}
/etc/init.d/mythtv-backend start >> $MYLOGFILE 2>> $MYLOGFILE
else
if [[ $cnt -ge $CNT_MAX ]]; then
cnt=0
grep -v "$OK_STRING" $MYLOGFILE > ${MYLOGFILE}.$$
echo "`date '+%Y-%m-%d %H:%M:%S'`: $MARK_STRING" >> ${MYLOGFILE}.$$
mv ${MYLOGFILE}.$$ $MYLOGFILE
else
echo "`date '+%Y-%m-%d %H:%M:%S'`: ${OK_STRING}" >> $MYLOGFILE
fi
fi
sleep 60
done
--
Recording will not commence until a PMT is set.
https://bugs.launchpad.net/bugs/229797
You received this bug notification because you are a direct subscriber
of the bug.
Status in MythTV: New
Status in “mythtv” source package in Ubuntu: Incomplete
Bug description:
A similar bug is located at http://svn.mythtv.org/trac/ticket/3031
Version: 0.21.0+fixes16838-0ubuntu3
I have been seeing recordings fail with an error message that was
supposed to have gone away ages ago. I've got two Air2PC cards that have
been working fine for over a year, and up until Hardy I've never seen
this problem.
2008-05-12 20:59:29.866 TVRec(1): ASK_RECORDING 1 29 0 0
2008-05-12 21:00:00.994 TVRec(1): Changing from RecordingOnly to None
2008-05-12 21:00:02.929 Using runtime prefix = /usr, libdir = /usr/lib
2008-05-12 21:00:02.954 Empty LocalHostName.
2008-05-12 21:00:02.958 Using localhost value of cwawak-desktop
2008-05-12 21:00:03.140 New DB connection, total: 1
2008-05-12 21:00:03.178 Connected to database 'mythconverg' at host: localhost
2008-05-12 21:00:03.215 Closing DB connection named 'DBManager0'
2008-05-12 21:00:03.218 Connected to database 'mythconverg' at host: localhost
2008-05-12 21:00:03.221 New DB connection, total: 2
2008-05-12 21:00:03.223 Connected to database 'mythconverg' at host: localhost
2008-05-12 21:00:03.224 AutoExpire: CalcParams(): Max required Free Space: 3.0
GB w/freq: 8 min
2008-05-12 21:00:03.238 Current Schema Version: 1214
2008-05-12 21:00:03.441 TVRec(1): Changing from None to RecordingOnly
2008-05-12 21:00:03.452 DTVSM(1) Error: Wrong PMT; pmt->pn(3) desired(1)
2008-05-12 21:00:03.483 Program #1 not found in PAT!
Program Association Table
PSIP tableID(0x0) length(13) extension(0x9bf)
version(1) current(1) section(0) last_section(0)
tsid: 2495
programCount: 1
program number 3 has PID 0x 30 data 0x 0 0x 3 0xe0 0x30
2008-05-12 21:00:03.484 But there is only one program in the PAT, so we'll just
use it
2008-05-12 21:00:03.481 TVRec(1): HW Tuner: 1->1
2008-05-12 21:00:03.943 AutoExpire: CalcParams(): Max required Free Space: 3.0
GB w/freq: 8 min
2008-05-12 21:00:03.949 Started recording: House "House's Head": channel 1291
on cardid 1, sourceid 1
2008-05-12 21:00:04.745 Could not find channel 29_1 in TVCT
2008-05-12 21:00:04.750
VCT Terra: channels(1) tsid(0x9b7) seclength(68)
Channel #0 name(KYW-DT) 3-1 mod(ATSC 8-VSB) cTSID(0x9b7)
pnum(1) ETM_loc(0) access_ctrl(0) hidden(0) hide_guide(1) service_type(2)
source_id(1)
descriptors length(23) count(1)
Service Location Descriptor (0xa1) length(21)
2008-05-12 21:00:04.906 DVBRec(1:0) Warning: Recording will not commence until
a PMT is set.
2008-05-12 21:00:04.957 Reschedule requested for id 0.
2008-05-12 21:00:04.964 DVBRec(1:0) Warning: Recording will not commence until
a PMT is set.
2008-05-12 21:00:05.051 DVBRec(1:0) Warning: Recording will not commence until
a PMT is set.
2008-05-12 21:00:05.137 DVBRec(1:0) Warning: Recording will not commence until
a PMT is set.
2008-05-12 21:00:05.197 DVBRec(1:0) Warning: Recording will not commence until
a PMT is set.
2008-05-12 21:00:05.255 DVBRec(1:0) Warning: Recording will not commence until
a PMT is set.
2008-05-12 21:00:05.311 DVBRec(1:0) Warning: Recording will not commence until
a PMT is set.
If I can assist with any other informatoin, please let me know.
Devenez un meilleur amigo grâce à Yahoo! Courriel
http://cf.promos.yahoo.com/courriel/visiteguidee2/
--
Recording will not commence until a PMT is set.
https://bugs.launchpad.net/bugs/229797
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs