Tivoweb problem

General Discussion

Tivoweb problem

Postby philg » Fri Feb 14, 2014 11:28 am

Not a problem with ALT-EPG, but there is nowhere else to ask these days

Suddenly my Tivoweb is failing with these type of messages

Code: Select all
INTERNAL SERVER ERROR
--cut here--
action_showwishlists '/2' ''
can't read "cache_sp_key": no such variable
    while executing
"lsearch $cache_sp_key "$sfsid|*""
    (procedure "action_search" line 297)
    invoked from within
"action_search $chan $path $env"
    (procedure "::action_showwishlists" line 90)
    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 restarted Tivoweb (which caused a Tivo reboot) but still seeing the same messages

I cleaned out a lot of dead space across /var/hack/

That didn't help either

So I am at a loss to know what to do next

And I don't know why they're suddenly appearing

Cheers
philg
TiVo lover
TiVo lover
 
Posts: 198
Joined: Tue Feb 15, 2011 3:51 pm
Location: Buxton

Re: Tivoweb problem

Postby mrtickle » Fri Feb 14, 2014 3:19 pm

I suspect there's a corruption in your tivoweb installation somehow. You said that starting TiVoweb caused a reboot, so that's rather damning evidence in that direction. :mrgreen: Do you have a backup of your tivoweb installation can ftp back onto the tivo?

It's not a disc space problem. It wants to use the variable "cache_sp_key" which is created when Tivoweb starts up. Wishlists that auto-record are just like Season Passes effectively. You will probably find that the Season Pass page in the User Interface module also fails, as it won't be able to read the cache_sp_key variable to produce the numbered list of season passes.

Try:
1. full shutdown of tivoweb
2. from the command line, change to the directory where tivoweb is, and
Code: Select all
./tivoweb console

3. watch the output for errors. A working set up should produce output like this
Code: Select all
~/tivoweb-tcl # TiVo Web Project - TCL - v1.9.4
The program comes with ABSOLUTELY NO WARRANTY.
This program is licensed under the GPL.
See the 'copyright' and 'README' files for copyright and credit information.
Loading modules...

(a nice list of 1 line per module)

Accepting Connections


A corrupted set up will have random errors like this

Code: Select all
~/tivoweb-tcl # TiVo Web Project - TCL - v1.9.4
The program comes with ABSOLUTELY NO WARRANTY.
This program is licensed under the GPL.
See the 'copyright' and 'README' files for copyright and credit information.
Loading modules...
18infoplus
20110219-search
20111228-advsearch
20111228-sl
20120103-spaceused
20130203-movies
addchannel
digiguide-0.43-rc7
NONE can't read "logname": no such variable
    while executing
"e/$logname/" "$logname"]] [td [file size $log]] [td [clock format [expr [file mtime $log] + $tzoffset] -format "%a %d %b %Y %T"]]]"
    (file "./modules/digiguide-0.43-rc7.itcl" line 1614)
    invoked from within
"source $module "
favicon
etc


4. Make sure you do a full Quit of tivoweb, and then start it again in the normal way, not with "console".

If it's not a simple thing that you can fix yourself, such as uploading from a backup, the best thing is to migrate with tivoweb+ as it's the only version we can really support with fixes and updates these days. 'classic' tivoweb was splintered into a ridiculous number of different branches and patches, a totally out of control mess (as can happen with an open source free for all with no central repository). I documented all the branches of TiVoweb I could find back in 2011, which was a huge amount of work, and then there was no interest from anyone else in taking it further.
TiVoweb+ v2.3b1 on the other hand, has had lots of development by a few of the team here, sometimes in concert with our own service. It's also faster, more efficient, and more reliable. An example of the development is the IMDb links from movies in TiVoweb+ - these are now actual links to the single correct movie taken from the number in brackets at the end of the synopsis, because we put the number there on the server side! Previously, all you could do in tivoweb was a search on the movie's title and hope for a decent match.
--
links to my TiVo logos, TivoWebPlus 2.1.b3 UK-20120818, Tracker v3.3.3 & v3.3.4 (17th Jun 2013), GDchecker v1.06b, Digiguide checker v0.4.3-rc5 and Autospace v1.65 can all be found in this post.
mrtickle
TVGuide Admin
TVGuide Admin
 
Posts: 3292
Joined: Sat May 14, 2011 1:46 pm
Location: Birmingham, UK

Re: Tivoweb problem

Postby philg » Fri Feb 14, 2014 3:44 pm

Thanks Dave

I'll give this a go later when swmbo isn't recording (or watching) Olympics

I get these errors on many of the Tivoweb modules (search, channel guide etc)

I take a full backup of /var/hack every weekend so I do have the ability to restore anything that is missing

I'll report back later

Phil G
philg
TiVo lover
TiVo lover
 
Posts: 198
Joined: Tue Feb 15, 2011 3:51 pm
Location: Buxton

Re: Tivoweb problem

Postby mrtickle » Fri Feb 14, 2014 8:47 pm

I'm not Dave!
Beware that the filesizes of the corrupt modules will look right, if any are affected just restore individually from a backup taken before any of this started, and then repeat the test. :)
--
links to my TiVo logos, TivoWebPlus 2.1.b3 UK-20120818, Tracker v3.3.3 & v3.3.4 (17th Jun 2013), GDchecker v1.06b, Digiguide checker v0.4.3-rc5 and Autospace v1.65 can all be found in this post.
mrtickle
TVGuide Admin
TVGuide Admin
 
Posts: 3292
Joined: Sat May 14, 2011 1:46 pm
Location: Birmingham, UK

Re: Tivoweb problem

Postby philg » Fri Feb 14, 2014 8:51 pm

OK, humble pie time!

I have to admit doubting that this would fix the problem

Anyway, I refreshed the whole of the tivoweb directory from a backup

Did the restart with console - all was OK

Quitted and restarted normally

Now everything is working just fine

So, thanks for the help - I should have more faith :oops:

Phil G
philg
TiVo lover
TiVo lover
 
Posts: 198
Joined: Tue Feb 15, 2011 3:51 pm
Location: Buxton

Re: Tivoweb problem

Postby philg » Fri Feb 14, 2014 8:51 pm

mrtickle wrote:I'm not Dave!
Beware that the filesizes of the corrupt modules will look right, if any are affected just restore individually from a backup taken before any of this started, and then repeat the test. :)


Sorry - anyway, as I say below

BIG THANKS!
philg
TiVo lover
TiVo lover
 
Posts: 198
Joined: Tue Feb 15, 2011 3:51 pm
Location: Buxton


Return to General

Who is online

Users browsing this forum: No registered users and 15 guests