1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Automatic soft padding running on the TiVo

Discussion in 'TiVo Series 1 - UK' started by sanderton, Oct 8, 2003.

Thread Status:
Not open for further replies.
  1. Jan 10, 2004 #621 of 1197
    iankb

    iankb New Member

    6,468
    0
    Oct 9, 2000
    Reading, UK
    Is that because it wasn't adding padding, or because you couldn't see the process, or because it stopped writing to the endpad log?

    Maybe running a second copy caused the reboot. I would think that the endpad log would be the easiest indicator of whether it is running or not.
     
  2. Jan 10, 2004 #622 of 1197
    mbriody

    mbriody New Member

    200
    0
    Mar 30, 2002
    Northampton, UK
    All three.

    The log entry stopped in the middle of a sentence, there is no process in the list and of course the padding stopped.

     
  3. Jan 11, 2004 #623 of 1197
    kweller

    kweller New Member

    137
    0
    Mar 10, 2002
    Near Dover,...
    This isn't exactly crritical and someone else may have reported it already although I couldn't see it in this thread - endpad crashes if there are fewer than two recordings in the todo list; see log below.

    I've skip read through the thread but this is such a massive thread to come in to this late that I may have missed something. Is the current recommendation for endpad restarts after a crash a cron job or the amendment to rc.sysinit.author ((sleep 120 && while ! /var/hack/endpad.tcl n -run 2>>/var/hack/endpad.err) &).

    Thanks.

    Endpad log

    ***** NO RECORDINGS *****

    Sunday 14:01:57 : endpad.tcl 1.3.3 log file, starting up
    Sunday 14:01:57 : Start padding set to 60 seconds
    Sunday 14:01:57 : End padding set to 120 seconds
    Sunday 14:01:57 : Error detected
    can't read "rectype": no such variable
    while executing
    "if {$rectype == 3} {

    # Recording active

    set isrec 1

    # Get details of curently recording programme

    RetryTransaction {
    set crec [db $d..."
    Sunday 14:01:57 : Attempting to recover
    Sunday 14:02:27 : Error detected
    can't read "rectype": no such variable
    while executing
    "if {$rectype == 3} {

    # Recording active

    set isrec 1

    # Get details of curently recording programme

    RetryTransaction {
    set crec [db $d..."
    Sunday 14:02:27 : Attempting to recover
    Sunday 14:02:27 : Too many errors, stopping

    ***** ONE RECORDING *****
    Sunday 14:27:07 :
    Sunday 14:27:07 : endpad.tcl 1.3.3 log file, starting up
    Sunday 14:27:07 : Start padding set to 60 seconds
    Sunday 14:27:07 : End padding set to 120 seconds
    Sunday 14:27:08 : Error detected
    can't read "nextbutonerecstartdate": no such variable
    while executing
    "expr $nextbutonerecstartdate * 86400 + $nextbutonerecstarttime"
    Sunday 14:27:08 : Attempting to recover
    Sunday 14:27:38 : Error detected
    can't read "nextbutonerecstartdate": no such variable
    while executing
    "expr $nextbutonerecstartdate * 86400 + $nextbutonerecstarttime"
    Sunday 14:27:38 : Attempting to recover
    Sunday 14:27:38 : Too many errors, stopping
     
  4. Jan 12, 2004 #624 of 1197
    Fatbloke

    Fatbloke New Member

    620
    0
    Feb 26, 2002
    Deepest Barking
    Here's an update to the manual endpad load I was trying over the weekend.

    I retraced my steps carefully once more and this time changed the chmod from 777 to 755. Now I dont know whether this made a difference or that I corrected a typo from the other (two) times I tried it. But I managed to get endpad running via the serial connection.

    Two small points to note, dont know if they have been mentioned before...

    1) After installing, I rebooted and tried a 5 minute manual recording. This started about 4 minutes after my reboot, but of course this was only entered a minute or so after the reboot (endpad had ben running fo a short while by now). Anyway, the 5 min manual recording was not endpad'd at all. I could see in the log that it was waiting for the first to-do item in a few hours time.

    2) The manual instructions mention that a serial prompt will appear without going through the x,p,root= method. This was certainly the case, only thing was I couldn't see what I was typing in! I was getting the bash prompt (although it wasn't line breaking) and any results from the commands I typed (echo * etc.) but I couldn't check for typos as I typed my commands :| I assume a hyperterminal settings problem but can anyone suggest what I could do?
     
  5. Jan 12, 2004 #625 of 1197
    doubledrat

    doubledrat should know better

    208
    0
    Aug 24, 2001
    Attleborough...
    fb: type

    stty sane

    to get an echo of what you type
     
  6. Jan 12, 2004 #626 of 1197
    LampyDave

    LampyDave New Member

    62
    0
    Sep 4, 2003
    Cardiff, UK
    Endpad wakes up every half hour to check for upcoming recordings. If it was watching for changes in the ToDo all the time then it would 'load' the processor too much.

    Therefore a recording added after endpad last woke up, and starting before it wakes up again, will not be 'seen' and will not get padded.

    Therefore it's as designed as far as I know.

    Cheers,

    Dave

    Edited for poor grammar :confused:
     
  7. Jan 12, 2004 #627 of 1197
    sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    Yes, it will. :) I'll fix that.
     
  8. Jan 12, 2004 #628 of 1197
    mbriody

    mbriody New Member

    200
    0
    Mar 30, 2002
    Northampton, UK
    My endpad has died again. This time a real error maybe?

    Sunday 17:25:00 : Recording Futurama on SKYONE now
    Sunday 17:25:00 : Recording Scheduled End Time: 17:30
    Sunday 17:25:00 : Next recording is Futurama on SKYONE at 17:30
    Sunday 17:25:00 : Added Futurama to series list
    Sunday 17:25:00 : Added episode {My Problem With Popplers} to tracker list
    Sunday 17:25:00 : Error detected
    no space left on device
    while executing
    "close $episodelist"
    Sunday 17:25:00 : Attempting to recover
    Sunday 17:25:30 : Woken up
    Sunday 17:25:30 : Recording Futurama on SKYONE now
    Sunday 17:25:30 : Recording Scheduled End Time: 17:30
    Sunday 17:25:30 : Next recording is Futurama on SKYONE at 17:30
    Sunday 17:25:30 : Added episode {My Problem With Popplers} to tracker list
    Sunday 17:25:30 : Error detected
    no space left on device
    while executing
    "close $episodelist"
    Sunday 17:25:30 : Attempting to recover
    Sunday 17:25:30 : Too many errors, stopping
     
  9. Jan 12, 2004 #629 of 1197
    doubledrat

    doubledrat should know better

    208
    0
    Aug 24, 2001
    Attleborough...
    looks like your /var/tmp might be full?!
     
  10. Jan 12, 2004 #630 of 1197
    mbriody

    mbriody New Member

    200
    0
    Mar 30, 2002
    Northampton, UK
    Is there a maximum size for this then and is it configurable anywhere?

    There's a lot a stuff in there - can I just delete it all?
     
  11. Jan 12, 2004 #631 of 1197
    sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    You can delete anything in /var/tmp - and I'd do it soon; if TiVo find's that /var is full it can decide to simply delete it and start again, and you'd lose all your hacks!
     
  12. Jan 12, 2004 #632 of 1197
    doubledrat

    doubledrat should know better

    208
    0
    Aug 24, 2001
    Attleborough...
    if you type

    ls -l /var/tmp

    you will see how big things are. It might be interesting to establish what is hogging the space
     
  13. Jan 12, 2004 #633 of 1197
    mbriody

    mbriody New Member

    200
    0
    Mar 30, 2002
    Northampton, UK
    Deleted it now. This was the output from ls:

    total 6219
    drwxr-xr-x 3 0 0 3072 Jan 12 10:01 .
    drwxr-xr-x 14 0 0 1024 Jan 1 1970 ..
    -rw------- 1 0 0 12 Jan 10 12:23 EventSwitcher
    srwxr-xr-x 1 0 0 0 Jan 10 12:23 EventSwitcherSocket106
    -rw------- 1 0 0 12 Jan 10 12:23 EvtMaster::Run135
    -rw------- 1 0 0 12 Jan 10 12:23 EvtMaster::Run145
    -rw------- 1 0 0 12 Jan 10 12:23 EvtMaster::Run160
    -rw------- 1 0 0 12 Jan 10 12:23 EvtMaster::Run163
    -rw-r--r-- 1 0 0 1747 Jan 10 13:20 HServer.recv
    -rw-r--r-- 1 0 0 2215 Jan 10 13:19 HServer.send
    srwxr-xr-x 1 0 0 0 Jan 10 12:23 MasterSocket135
    srwxr-xr-x 1 0 0 0 Jan 10 12:23 MasterSocket145
    srwxr-xr-x 1 0 0 0 Jan 10 12:23 MasterSocket160
    srwxr-xr-x 1 0 0 0 Jan 10 12:23 MasterSocket163
    -rw------- 1 0 0 12 Jan 10 12:23 MyWorld
    -rw------- 1 0 0 12 Jan 10 12:23 Osd
    -rw-r--r-- 1 0 0 102400 Jan 12 01:33 Program.temp.0
    -rw-r--r-- 1 0 0 102400 Jan 12 01:36 Program.temp.1
    -rw-r--r-- 1 0 0 102400 Jan 12 01:53 Program.temp.10
    -rw-r--r-- 1 0 0 102400 Jan 12 01:55 Program.temp.11
    -rw-r--r-- 1 0 0 102400 Jan 12 01:57 Program.temp.12
    -rw-r--r-- 1 0 0 102400 Jan 12 01:59 Program.temp.13
    -rw-r--r-- 1 0 0 102400 Jan 11 08:10 Program.temp.14
    -rw-r--r-- 1 0 0 102400 Jan 11 08:11 Program.temp.15
    -rw-r--r-- 1 0 0 102400 Jan 11 08:12 Program.temp.16
    -rw-r--r-- 1 0 0 102400 Jan 10 14:40 Program.temp.17
    -rw-r--r-- 1 0 0 102400 Jan 10 14:41 Program.temp.18
    -rw-r--r-- 1 0 0 102400 Jan 10 14:41 Program.temp.19
    -rw-r--r-- 1 0 0 102400 Jan 12 01:37 Program.temp.2
    -rw-r--r-- 1 0 0 102400 Jan 10 14:42 Program.temp.20
    -rw-r--r-- 1 0 0 102400 Jan 10 14:42 Program.temp.21
    -rw-r--r-- 1 0 0 102400 Jan 10 14:42 Program.temp.22
    -rw-r--r-- 1 0 0 102400 Jan 10 14:43 Program.temp.23
    -rw-r--r-- 1 0 0 102400 Jan 10 14:43 Program.temp.24
    -rw-r--r-- 1 0 0 102400 Jan 10 14:44 Program.temp.25
    -rw-r--r-- 1 0 0 102400 Jan 10 14:44 Program.temp.26
    -rw-r--r-- 1 0 0 102400 Jan 10 14:45 Program.temp.27
    -rw-r--r-- 1 0 0 102400 Jan 10 14:45 Program.temp.28
    -rw-r--r-- 1 0 0 102400 Jan 10 14:45 Program.temp.29
    -rw-r--r-- 1 0 0 102400 Jan 12 01:39 Program.temp.3
    -rw-r--r-- 1 0 0 102400 Jan 12 01:41 Program.temp.4
    -rw-r--r-- 1 0 0 102400 Jan 12 01:43 Program.temp.5
    -rw-r--r-- 1 0 0 102400 Jan 12 01:44 Program.temp.6
    -rw-r--r-- 1 0 0 102400 Jan 12 01:46 Program.temp.7
    -rw-r--r-- 1 0 0 102400 Jan 12 01:48 Program.temp.8
    -rw-r--r-- 1 0 0 102400 Jan 12 01:50 Program.temp.9
    -rw-r--r-- 1 0 0 0 Jan 12 01:25 ProgramToSeries.temp.0
    -rw-r--r-- 1 0 0 0 Jan 12 01:26 ProgramToSeries.temp.1
    -rw-r--r-- 1 0 0 0 Jan 12 01:28 ProgramToSeries.temp.2
    -rw-r--r-- 1 0 0 0 Jan 12 01:30 ProgramToSeries.temp.3
    -rw-r--r-- 1 0 0 0 Jan 12 01:32 ProgramToSeries.temp.4
    -rw-r--r-- 1 0 0 63216 Jan 11 07:59 ProgramToSeries.temp.8
    -rw------- 1 0 0 12 Jan 10 12:23 Sark (mcp)
    -rw-r--r-- 1 0 0 0 Jan 12 01:23 ShowcaseHasClipIndex.temp.0
    -rw-r--r-- 1 0 0 1520 Jan 12 01:23 ShowcaseHasProgramIndex.temp.0
    -rw-r--r-- 1 0 0 0 Jan 12 01:23 ShowcaseIdentToIdIndex.temp.0
    -rw-r--r-- 1 0 0 0 Jan 12 01:44 Showing.temp.10
    -rw-r--r-- 1 0 0 0 Jan 12 01:45 Showing.temp.11
    -rw-r--r-- 1 0 0 0 Jan 12 01:46 Showing.temp.12
    -rw-r--r-- 1 0 0 102396 Jan 12 01:48 Showing.temp.13
    -rw-r--r-- 1 0 0 102396 Jan 12 01:49 Showing.temp.14
    -rw-r--r-- 1 0 0 102396 Jan 12 01:50 Showing.temp.15
    -rw-r--r-- 1 0 0 102396 Jan 12 01:52 Showing.temp.16
    -rw-r--r-- 1 0 0 102396 Jan 12 01:53 Showing.temp.17
    -rw-r--r-- 1 0 0 102396 Jan 12 01:54 Showing.temp.18
    -rw-r--r-- 1 0 0 102396 Jan 12 01:56 Showing.temp.19
    -rw-r--r-- 1 0 0 0 Jan 12 01:36 Showing.temp.2
    -rw-r--r-- 1 0 0 102396 Jan 12 01:57 Showing.temp.20
    -rw-r--r-- 1 0 0 102396 Jan 12 01:58 Showing.temp.21
    -rw-r--r-- 1 0 0 97488 Jan 12 01:59 Showing.temp.22
    -rw-r--r-- 1 0 0 102396 Jan 12 01:59 Showing.temp.23
    -rw-r--r-- 1 0 0 129024 Jan 12 01:59 Showing.temp.24
    -rw-r--r-- 1 0 0 161792 Jan 11 08:13 Showing.temp.25
    -rw-r--r-- 1 0 0 614376 Jan 10 14:46 Showing.temp.30
    -rw-r--r-- 1 0 0 695296 Jan 10 14:46 Showing.temp.36
    -rw-r--r-- 1 0 0 102396 Jan 12 01:39 Showing.temp.5
    -rw-r--r-- 1 0 0 102396 Jan 12 01:40 Showing.temp.6
    -rw-r--r-- 1 0 0 49152 Jan 12 01:41 Showing.temp.7
    -rw-r--r-- 1 0 0 0 Jan 12 01:42 Showing.temp.8
    -rw-r--r-- 1 0 0 0 Jan 12 01:43 Showing.temp.9
    -rw-r--r-- 1 0 0 317 Jan 10 13:19 TCD411.recv
    -rw-r--r-- 1 0 0 364 Jan 10 13:19 TCD411.send
    -rw-r--r-- 1 0 0 0 Jan 11 14:27 TClient.res
    -rw------- 1 0 0 12 Jan 10 12:23 TclEvent138
    -rw------- 1 0 0 12 Jan 10 12:24 TclEvent171
    -rw-r--r-- 1 0 0 0 Jan 12 01:24 Tms.temp.0
    -rw-r--r-- 1 0 0 0 Jan 12 01:25 Tms.temp.1
    -rw-r--r-- 1 0 0 13200 Jan 11 07:59 Tms.temp.14
    -rw-r--r-- 1 0 0 0 Jan 12 01:27 Tms.temp.2
    -rw-r--r-- 1 0 0 0 Jan 12 01:28 Tms.temp.3
    -rw-r--r-- 1 0 0 0 Jan 12 01:29 Tms.temp.4
    -rw-r--r-- 1 0 0 0 Jan 12 01:30 Tms.temp.5
    -rw-r--r-- 1 0 0 0 Jan 12 01:32 Tms.temp.6
    -rw------- 1 0 0 12 Jan 10 12:23 dbgc-mcp
    -rw------- 1 0 0 12 Jan 10 12:23 fsmem
    -rw------- 1 0 0 1358 Jan 11 14:27 keyquery.post
    -rw-r--r-- 1 0 0 4 Jan 10 13:20 keyquery.response
    -rw------- 1 0 0 12 Jan 10 12:24 mom
    -rw-r--r-- 1 0 0 0 Jan 10 12:24 mwstate
    -rw-r--r-- 1 0 0 0 Jan 10 12:24 myworld.lck
    srwxr-xr-x 1 0 0 0 Jan 10 12:24 serialPortArbitrator
    -rw-r--r-- 1 0 0 131072 Jan 11 14:27 syslog
    -rw-r--r-- 1 0 0 20455 Jan 11 18:58 tclIndex
    -rw------- 1 0 0 12 Jan 10 12:23 tcphonehome
    -rw-r--r-- 1 0 0 0 Jan 10 12:23 tcphonehome.lck
    drwxr-xr-x 2 0 0 1024 Jan 10 13:28 unbundle
    bash-2.02#

    Looks like the showing.temp files and program.temp were taking the space. Any ideas what these are?

    I've stll got a directory called unbundle. Is it safe to remove?
     
  14. Jan 13, 2004 #634 of 1197
    tivouser

    tivouser New Member

    9
    0
    Jan 25, 2002
    sanderton - great addition to Tivo.

    I have been running endpad for a week and it's a great improvement.
    My only issue is with consecutive suggestions on the same channel, I think that the first suggestion gets end padding applied and the second suggestion is not recorded.
    If this is so, is it possible to compare the channel for the 2 suggestions and records both of them adding the end padding to the last one as appropriate.
     
  15. Jan 13, 2004 #635 of 1197
    doubledrat

    doubledrat should know better

    208
    0
    Aug 24, 2001
    Attleborough...
    Perhaps it could even add double the end Padding! :) ;)
     
  16. Jan 13, 2004 #636 of 1197
    Ashley

    Ashley Aibo nut

    697
    0
    Apr 20, 2002
    Windsor UK
    Endpad has stopped with this error:

    Sleeping, checking every minute for kill signal............................
    Sunday 20:55:00 : Woken up
    Sunday 20:55:00 : Recording {Time Team} on DISC1 now
    Sunday 20:55:00 : Recording Scheduled End Time: 21:00
    Sunday 20:55:00 : Next recording is {Location, Location, Location} on DHL1 at 21:00
    Sunday 20:55:01 : Error detected
    couldn't open "/var/hack/tracker/SH339649": too many open files
    while executing
    "open "$trackerdir/$seriestmsid" a"
    Sunday 20:55:01 : Attempting to recover
    Sunday 20:55:31 : Woken up
    Sunday 20:55:31 : Recording {Time Team} on DISC1 now
    Sunday 20:55:31 : Recording Scheduled End Time: 21:00
    Sunday 20:55:31 : Next recording is {Location, Location, Location} on DHL1 at 21:00
    Sunday 20:55:31 : Error detected
    couldn't open "/var/hack/tracker/series": too many open files
    while executing
    "open "$trackerdir/series" r"
    Sunday 20:55:31 : Attempting to recover
    Sunday 20:55:31 : Too many errors, stopping

    So it's Tracker that seems to be the culprit. Can I just remove it?
     
  17. Jan 13, 2004 #637 of 1197
    sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    This was reported further up. Just delete or rename the /var/hack/tracker folder
     
  18. Jan 13, 2004 #638 of 1197
    pahunt

    pahunt New Member

    1,719
    0
    Apr 7, 2003
    England
    If you rename the Tracker folder that will disable it.
     
  19. Jan 14, 2004 #639 of 1197
    jonnydeath

    jonnydeath New Member

    21
    0
    Mar 2, 2002
    New Haven, CT
    Hello,
    I looked through the entire thread and saw this question asked, but I am not sure if it has been implimented in 1.3.3. Sorry to repost if it has been answered.

    Here is the US, NBC has decided to start a lot of shows a minute early.

    Ie, 9:59 instead of 10:00

    I have another show on another channel that goes from 9:30 to 10:00. Therefore, I loose the entire second show. Will this hack automatically negative pad the second show to start at 10:00?

    I don't care which show is padded, I just want them both to be recorded.

    Thanks a million,
     
  20. Jan 14, 2004 #640 of 1197
    sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    No, I'm afraid not.
     
Thread Status:
Not open for further replies.

Share This Page