Page 1 of 1

Tivoweb Space Used Internal Server Error

PostPosted: Mon Jan 02, 2012 4:36 pm
by steveroe
Hi all,

Running Tivoweb 1.94, the "Space Used" module gives me the following error in the "DailyData" column:

Code: Select all
INTERNAL SERVER ERROR
--cut here--
action_spaceused '/' ''
syntax error in expression " / 745.1"
    while executing
"expr $amount / $mbperhr"
    (procedure "::action_spaceused" line 287)
    invoked from within
"::action_$action $chan $part $env"
    ("eval" body line 1)
    invoked from within
"eval {::action_$action $chan $part $env}"
--cut here-


Looks like $amount hasn't gained a value somewhere, any ideas?

Re: Tivoweb Space Used Internal Server Error

PostPosted: Mon Jan 02, 2012 6:53 pm
by mrtickle
Autospace bombs and dies with the same error sometimes. I think it's when a recording or new live buffer segment is created but doesn't have a length yet - can happen if you're unlucky and it tries to get the value at the wrong time.

In this case it's trying to divide null by 745.1 instead of <size> by 745.1

Just reload the page and see if it goes away!

Re: Tivoweb Space Used Internal Server Error

PostPosted: Mon Jan 02, 2012 11:39 pm
by steveroe
Hmmm. I've never had anything but this error on this page, i.e. it's never worked for me since I started with Tivoweb in October (just finally annoyed me enough to post about it!)

Re: Tivoweb Space Used Internal Server Error

PostPosted: Tue Jan 03, 2012 12:30 am
by nick1austin
Thread here seems to describe the same problem & suggests a fix:
http://archive2.tivocommunity.com/tivo-vb/showthread.php?t=253697

Re: Tivoweb Space Used Internal Server Error

PostPosted: Tue Jan 03, 2012 7:07 am
by mrtickle
nick1austin wrote:Thread here seems to describe the same problem & suggests a fix:
http://archive2.tivocommunity.com/tivo-vb/showthread.php?t=253697


What a helpful person in that thread that was :wink:

Re: Tivoweb Space Used Internal Server Error

PostPosted: Tue Jan 03, 2012 9:26 am
by steveroe
Well found!. Thanks and thanks.

Re: Tivoweb Space Used Internal Server Error

PostPosted: Tue Jan 03, 2012 7:05 pm
by mrtickle
Actually I've noticed I made a few more tweaks since then. And I've tidied it a bit more today.

Try this one:
20120103-spaceused.zip
space used
(4.49 KiB) Downloaded 221 times

I've maintained it a bit. The Info and Info+ modules in TiVoweb went off in a different direction, and TiVoweb+ went further. A few people however prefer the layout of this space module. TiVoweb+ even has a go at accounting for the Clips space (reserved area of disc, only used once for Dossa and Joe) but gets the size of this wrong on tivos where you've reclaimed the space.

For comparison here's my take on the Info+ module for Tivoweb:
17-a-infoplus-UKdefault.zip
Info+
(5.58 KiB) Downloaded 219 times

again you need to edit the bitrates lines 422-426 to your tivo's values.

These could both potentially read all the values from your tivo, but as it's an edit-once then forget operation (unless you're constantly tweaking your bitrates) I've never bothered.

Re: Tivoweb Space Used Internal Server Error

PostPosted: Sat Jan 21, 2012 12:49 pm
by mrtickle
mrtickle wrote:Autospace bombs and dies with the same error sometimes. I think it's when a recording or new live buffer segment is created but doesn't have a length yet - can happen if you're unlucky and it tries to get the value at the wrong time.


I have created a fix for Autospace, and posted it on tivocommunity here:
http://www.tivocommunity.com/tivo-vb/sh ... ost8911852

Re: Tivoweb Space Used Internal Server Error

PostPosted: Thu Jan 26, 2012 11:04 pm
by Furbag
Just noticed mine does the same .......havent got a scoobys what to do with the zip file mind you :lol: :lol:

Re: Tivoweb Space Used Internal Server Error

PostPosted: Thu Jan 26, 2012 11:54 pm
by millsb
Furbag wrote:....havent got a scoobys what to do with the zip file mind you :lol: :lol:

Look out for the next release of altepg for the answer to that.