TiVo Community Forum banner

Guide Data checker module for TiVoweb

17295 Views 60 Replies 10 Participants Last post by  mrtickle
Please see the original thread is here first.

I've done a quick update today to check SPs a bit more thoroughly to catch "orphaned" episodes and new rogue SPs that Tribune keep creating :rolleyes: :) . You can now also see the TmsID of every SP linked to, as well as the number of upcoming episode of each series. There is some fuzzy logic to warn of possible childless / kidnapped SPs.

Beware of unavoidable false positives - in my own SP list these are flagged as warnings but are actually different, as they are different series:
Just a Minute - long-running radio series + Discovery Kids TV series
The Armando Iannucci Shows - C4 TV series + different radio series
The Apprentice - BBC2 UK series + BBC2 USA series (Tribune used to get around this by appending USA, eg "The Weakest Link USA" to differentiate)
Absolute Power - radio series + TV series
Arena - BBC2/4 TV series + a movie
The Late Edition BBC2/4 Marcus Brigstoke series + Late Edition CNN series

Hope this helps someone record a programme they would otherwise have missed :)

The AltEPG release, 1.60b, is here:
http://www.tivoland.com/forum/viewtopic.php?f=17&t=949

[Edit: v1.05j and screenshot added 25th Aug 2010]
[Edit: v1.05j removed, link to 1.06b added 13th Aug 2011]

Attachments

See less See more
1 - 20 of 61 Posts
Excellent stuff mrtickle, thanks. It caught a few changes in TmsIDs; I thought I was missing a few recordings! I can't believe that Extras on BBC2 is already showing up with a new TmsID; it's only just started showing!

Thanks again. This will be very useful :)
Cool, not a prob! Glad it's not just me that gets split season passes - now all we need to do is get them fixed :rolleyes:
I keep getting this:

INTERNAL SERVER ERROR
--cut here--
action_gdchecker '/orphansps' ''
can't read "anyresultsdisplayed": no such variable
while executing
"if {$anyresultsdisplayed == 1 && $founddesiredtmsid == 0 && $desiredtmsid != ""} {
append warnings [tr "" [td "COLSPAN=2" "Warning - This SP'..."
(procedure "action_spsearch" line 150)
invoked from within
"action_spsearch $title $tmsid"
(procedure "action_orphansps" line 142)
invoked from within
"action_orphansps $chan "" $env"
(procedure "::action_gdchecker" line 20)
invoked from within
"::action_$action $chan $part $env"
("eval" body line 1)
invoked from within
"eval {::action_$action $chan $part $env}"
--cut here--

I've tried completely stopping and re-starting Tivoweb but still the same. Any ideas mrtickle?
See less See more
Hmm. I sometimes get the "no such variable" error with various different modules seemingly at random. I suspect my own disc.

In this case, anyresultsdisplayed should be defined at the top of proc action_spsearch. It is in my copy :). Try deleting the gdchecker.itcl file from the tivo, ftping a new copy of that file from your PC and then reboot the TiVo for luck.
mrtickle said:
Hmm. I sometimes get the "no such variable" error with various different modules seemingly at random. I suspect my own disc.

In this case, anyresultsdisplayed should be defined at the top of proc action_spsearch. It is in my copy :).
No it's not - you've declared it as a global, but that does not initialise it; only assigning it a value does that.
Ok, I just tried a bit of self-help. First I tried setting it to 0 (just after it's declared) but got some very strange results. So, I tried setting it to 1 and now all seems ok. Have I fixed it or did I just get lucky for my current scenario?!
I run Tivoweb Plus (which I thought is 1.9.4 with the extra ahem abilities), I get this error after it has shown me the output of several SPs below the error. It seems to have messed up after SP no 6 Bad Girls (SH867352) ITV1LON No matches found in the current Guide Data.

INTERNAL SERVER ERROR
--cut here--
action_gdchecker '/orphansps' ''
can't open object (errDbNotFound)

while executing
"db $db openid $fsid"
("uplevel" body line 2)
invoked from within
"uplevel $body"
invoked from within
"transaction {uplevel $body}"
(procedure "RetryTransaction" line 5)
invoked from within
"RetryTransaction {
set series [db $db openid $fsid]
set seriesfsid 0
if { $series != "" } {
set seriesfsid [dbobj $series fsid]
set t..."
(procedure "action_spsearch" line 83)
invoked from within
"action_spsearch $title $tmsid"
(procedure "action_orphansps" line 142)
invoked from within
"action_orphansps $chan "" $env"
(procedure "::action_gdchecker" line 20)
invoked from within
"::action_$action $chan $part $env"
("eval" body line 1)
invoked from within
"eval {::action_$action $chan $part $env}"
--cut here--
See less See more
You often get the errDbNotFound error when the MFS filesystem has allocation errors. Try running mfscheck at the bash prompt.
Sometimes TiVo TCL just seems to lose its connection to the database. It's erratic and umpredictable.
If it's unpredictable, then it's probably a resource problem (e.g. too many concurrent database handles, resource leaking, etc), and a reboot may well clear it. If it's repeatable, then I suspect a logical or physical database problem. Mfscheck should find physical problems, but not necessarily logical problems.
Hmm. I restarted when I first installed it and got the problem last night. It didn't help. I've just run mfscheck and got:

[/var/tmp] %mfscheck
EventSwitcher stopped
mfscheck scan begins
Checking reference counts
All reference counts are OK.
mfscheck scan ends
mfscheck: 0 fatal errors, 0 severe errors, 0 warnings.

You must manually restart the EventSwitcher
[/var/tmp] %

I've restarted again and I still get the error. Does it definitely work with Tivoweb+ for you people?
See less See more
sanderton said:
No it's not - you've declared it as a global, but that does not initialise it; only assigning it a value does that.
Thanks - will fix.
iankb said:
If it's unpredictable, then it's probably a resource problem (e.g. too many concurrent database handles, resource leaking, etc), and a reboot may well clear it. If it's repeatable, then I suspect a logical or physical database problem. Mfscheck should find physical problems, but not necessarily logical problems.
Indeed, but it can also be the TiVo being busy. TiVoweb runs at a lower priority so that the TiVo UI can carry on, and calls a "RetryTransaction" routine so that hopefully eventually it'll get what it needs from the database if the TiVo isn't too busy. Sometimes if the TiVo is too busy, RetryTransaction runs out of attempts and returns an error - in these case you have to reload the page in TiVoweb to make it try again. It usually works the 2nd time. There are also notes about 'Lock Conflict' or 'Background Holdoff' in the TiVoweb readme file.

Anyway in this case the problem was a schoolboy error of mine, thanks to Sanderton for spotting it.

I've attached v1.04 to the first post in this thread. (Fingers crossed!)
mrtickle said:
Indeed, but it can also be the TiVo being busy.
But then I find processor time is a very useful resource. :p
mrtickle said:
I've attached v1.04 to the first post in this thread. (Fingers crossed!)
Ooops (from Tivoweb console):

Code:
gdchecker
NONE missing close-brace
    while compiling
"proc action_orphansps {chan path env} { ..."
    (file "/var/hack/tivoweb-tcl/modules/gdchecker.itcl" line 533)
    invoked from within
"source $module "
That's another of the random errors I get (with UI on my installation). When I re-ftp the file to the tivo and restart it works. Could you try that please? If that doesn't work, I don't know what else to suggest - assuming the zip file I uploaded wasn't corrupted which I'll check now.
ok. I've checked, and the file in the zip was correct.

The errors I mentioned before on my TiVo are like this:
Loading modules...
20040118-backup
NONE extra characters after close-quote
while compiling
"puts $chan "can easily occur - check carefully b}..."
(file "./modules/20040118-backup.itcl" line 2438)
invoked from within
"source $module "
This example is angra's backup module (http://www.boygenius.co.uk/tivo/index.html). I know it's ok and nothing has changed, but the error doesn't go away until I re-upload the file. Then later if I re-upload a new version of something (ui2 in today's case) the backup module decides it's corrupted again. I'm not sure what is going on here, maybe I have too many modules or not enough memory allocated to tivoweb, or what! :confused:
1 - 20 of 61 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top