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

Tracker module v3.3 for TivoWeb/TivoWebPlus

Discussion in 'TiVo Series 1 - UK' started by spitfires, Mar 30, 2013.

  1. Fizz

    Fizz New Member

    34
    0
    Feb 22, 2003
    No errors on starting in console mode and strangly it works now. However it was only after i did a quit in tivoweb and my tivo reported itself that it works. Most odd... But thanks for taking the time to help and keep the great work.
     
  2. steveroe

    steveroe Must do some work...

    1,118
    0
    Oct 29, 2002
    Oxford, UK
    Is there any way to automate the Tracker process so I don't need to manually run tracker_update, tracker_todo and tracker_todosug?

    I can see I could cron a job to wget tracker_update but the other two require some interactivity. Is there a way to tell it what to do from the command line etc?
     
  3. spitfires

    spitfires wassock

    724
    0
    Dec 19, 2006
    South Coast, UK
    For tracker_todo & tracker_todosugg not currently no. I believe the ethos of Tracker was that it wouldn't delete anything without you checking it first. This could be changed but I don't have time to work on it at the mo', sorry.

    You might be able to find a tool which would send automated keystrokes to the webpage perhaps?
    e.g. request htt.://tivo/tracker_todo ; wait 10 seconds ; send carriage return ; wait 5 seconds ; send carriage return.
     
  4. spitfires

    spitfires wassock

    724
    0
    Dec 19, 2006
    South Coast, UK

    Attached Files:

  5. steveroe

    steveroe Must do some work...

    1,118
    0
    Oct 29, 2002
    Oxford, UK
    Many thanks, a fantastic surprise! Will have a tinker later...
     
  6. steveroe

    steveroe Must do some work...

    1,118
    0
    Oct 29, 2002
    Oxford, UK
    This is working nicely, thanks again
     
  7. DaveLane

    DaveLane New Member

    7
    0
    Jun 6, 2003
    I've been using Tracker for a long time and it's so useful. With the latest version, everything runs more quickly and I've added a cron job to process the ToDo list automatically. Thank you so much for all your work!
     
  8. lloyd

    lloyd New Member

    87
    0
    Feb 15, 2003
    Bedfordshire
    On the slim chance that someone is still viewing this thread, can anyone help me with a new installation of tracker?

    Have just installed a clean altepg1.0d image, and would like to use tracker. However everything I do seems to fail, and all the error messages seem to suggest an absence of a series file? (/var/hack/tracker/series). How should this get created?

    Thanks
     
  9. spitfires

    spitfires wassock

    724
    0
    Dec 19, 2006
    South Coast, UK
    Can you confirm you are running tracker >= v3.3.4?

    Tracker should create the files necessary the first time you click on "Create/Update Tracking List". What error message are you getting.


    p.s. the UK S1 people are now mostly over at http://www.altepg.com/forum/
     
  10. lloyd

    lloyd New Member

    87
    0
    Feb 15, 2003
    Bedfordshire
    Tried 3.3.3 and 3.3.4. Creates the config file correctly, but that is it. No other files (except .bak) in /var/hack/tracking

    If I try and run create/update tracking list I get

    -------INTERNAL SERVER ERROR------
    --cut here--
    action:tracker_update, path:, env:, code:'NONE'
    can't unset "seriescache": no such variable
    while executing
    "unset seriescache"
    (procedure "scan_cancelled" line 146)
    invoked from: "scan_cancelled $::TRK::lastupdate $chan"
    (procedure "MOD::action_tracker_update" line 11)
    invoked from: "$cmd $chan $path $env"
    --cut here--

    I'm sure I must have missed a fundamental step in running this, but I can't find what it is.

    Lloyd
     
  11. spitfires

    spitfires wassock

    724
    0
    Dec 19, 2006
    South Coast, UK
    [fx=Penny Dropping]
    Ah you've just built this disc haven't you? I vaguely recall something about Tracker not playing nicely until there exists a programme for it to track. :) Try making a recording (or partial) and then deleting it; that should give Tracker something to play with if you then go to Create/Update
     
  12. lloyd

    lloyd New Member

    87
    0
    Feb 15, 2003
    Bedfordshire
    The disc has now been in use for about a week, so I have number of recordings and deletions, so I don't think it is that. I seem to remember reading somewhere that endpad plays a part, or was that just for an early version?
     
  13. spitfires

    spitfires wassock

    724
    0
    Dec 19, 2006
    South Coast, UK
    Ok, in that case I'd try:
    1. Stop TWP
    2. Remove (or rename) /var/hack/tracker
    3. Start TWP

    Then try Create/Update again.

    (I don't think it would make a difference but I think there's a later version of TWP on the altepg site than that which comes with 1.0d)
     
  14. lloyd

    lloyd New Member

    87
    0
    Feb 15, 2003
    Bedfordshire
    Different error message this time:


    -------INTERNAL SERVER ERROR------
    --cut here--
    action:tracker, path:, env:, code:'NONE'
    can't read "trackerdir": no such variable
    while executing
    "file mkdir $trackerdir "
    (procedure "tracker_init" line 61)
    invoked from: "tracker_init"
    (procedure "MOD::action_tracker" line 2)
    invoked from: "$cmd $chan $path $env"
    --cut here--


    I am running the altepg specific version of tivowebplus (2.1.b3)

    Lloyd
     
  15. spitfires

    spitfires wassock

    724
    0
    Dec 19, 2006
    South Coast, UK
    Unfortunately there are several versions of TivoWebPlus all called 2.1.b3 :(
    Go to the home page of TWP and check it says
    Code:
    TivoWebPlus version 2.1.b3 (UK-20120723)

    Create the directory manually with
    mkdir /var/hack/tracker
    and then retry
     
  16. lloyd

    lloyd New Member

    87
    0
    Feb 15, 2003
    Bedfordshire
    Actual version is TivoWebPlus version 2.1.b3 (UK-20120818) .

    Deleting /hack/tracker and manually recreating results in the following error the first time I try to run tracker:

    Code:
    -------INTERNAL SERVER ERROR------  
    --cut here--
    action:tracker, path:, env:, code:'POSIX ENOENT {no such file or directory}'
    couldn't open "/var/hack/tracker/series": no such file or directory
        while executing
    "open $::TRK::trackerdir/$trkfn"
        (procedure "tracker_update_conversion" line 19)
        invoked from: "tracker_update_conversion $currentversion $thisversion"
        (procedure "tracker_init" line 75)
        invoked from: "tracker_init"
        (procedure "MOD::action_tracker" line 2)
        invoked from: "$cmd $chan $path $env"
    --cut here--
    The full trace from the log file is

    Code:
    192.168.98.104 - - [01/Jan/2016 09:18:29] /tracker
    loading module tracker (798364)
      Tracker config file read ok
    Updating files to version 3.3.4
    current = 0.0 target = 3.3
    Using tar
    /hack/tracker
    Files backed-up to backup/tracker_pre3.3.4.tgz
    Processing : series
    <br />-------INTERNAL SERVER ERROR------  <br />--cut here--<br />action:tracker, path:, env:, code:'POSIX ENOENT {no such file or directory}'
    couldn't open "/var/hack/tracker/series": no such file or directory
        while executing
    "open $::TRK::trackerdir/$trkfn"
        (procedure "tracker_update_conversion" line 19)
        invoked from: "tracker_update_conversion $currentversion $thisversion"
        (procedure "tracker_init" line 75)
        invoked from: "tracker_init"
        (procedure "MOD::action_tracker" line 2)
        invoked from: "$cmd $chan $path $env"<br />--cut here--
    If I now run tracker update, this is what is logged:

    Code:
    192.168.98.11 - - [01/Jan/2016 09:40:21] /tracker
    192.168.98.11 - - [01/Jan/2016 09:40:24] /tracker_update
    <br />-------INTERNAL SERVER ERROR------  <br />--cut here--<br />action:tracker_update, path:, env:, code:'NONE'
    can't unset "seriescache": no such variable
        while executing
    "unset seriescache"
        (procedure "scan_cancelled" line 146)
        invoked from: "scan_cancelled $::TRK::lastupdate $chan"
        (procedure "MOD::action_tracker_update" line 11)
        invoked from: "$cmd $chan $path $env"<br />--cut here--
     
  17. spitfires

    spitfires wassock

    724
    0
    Dec 19, 2006
    South Coast, UK
    What you've described doesn't make logical sense (from a code perspective).

    Ensure your /hack/tracker and /var/hack/tracker point the same place (the former is AFAIR a symlink to the latter) and are empty (apart from maybe tracker.cfg and backup/ )

    If so then try changing the line (c. line 299) in tracker.itcl which says
    Code:
    variable trackerdir "/var/hack/tracker"
    to
    Code:
    variable trackerdir "/hack/tracker"
     
  18. lloyd

    lloyd New Member

    87
    0
    Feb 15, 2003
    Bedfordshire
    Def a sym link:

    Code:
    [TiVo [p0] /var/hack/tracker]# ls -l /var
    total 24
    drwxr-xr-x   2 0        0            1024 Jan  1  1970 bin
    drwxr-xr-x   2 0        0            1024 Jan  1  1970 dev
    lrwxrwxrwx   1 0        0               5 Jan  1  1970 hack -> /hack
    drwxr-xr-x   3 0        0            1024 Dec 29 17:36 install
    drwxr-xr-x   2 0        0            1024 Jan  1 08:54 log
    drwxr-xr-x   2 0        0           12288 Jan  1  1970 lost+found
    lrwxrwxrwx   1 0        0              13 Jan  1  1970 mfs_ftp -> /hack/mfs_ftp
    -rw-r--r--   1 0        0              75 Jan  1  1970 mtab
    drwxr-xr-x   2 0        0            1024 Jan  1 00:32 packages
    drwxr-xr-x   2 0        0            1024 Jan  1  1970 persist
    drwxr-xr-x   2 0        0            1024 Jan  1 08:54 run
    drwxr-xr-x   3 0        0            1024 Jan  1  1970 state
    -rw-r--r--   1 0        0               0 Jan  1 08:54 teletextin
    -rw-r--r--   1 0        0               0 Jan  1 00:29 timestamp
    drwxr-xr-x   3 0        0            2048 Jan  1 10:10 tmp
    drwxr-xr-x   2 0        0            1024 Jan  1  1970 utils
    [TiVo [p0] /var/hack/tracker]#
    Changing the source makes no difference (apart from reflecting the code change):

    Code:
    ------============------ Loading ------============------
    TivoWebPlus - v2.1.b3 2.1.b3 (UK-20120818)
    The program comes with ABSOLUTELY NO WARRANTY.
    This program is licensed under the GPL.
    See the 'docs/copyright' and 'docs/index.html' files for copyright and credit information.
    Loading libs...
    btutils,html,http,index,rec,sendkey,sendkeyavail=1
    timezone,ui,util,zz_altepglib,zz_mrt_utils,
    TimeZone: GB
    -running init_channelList--- completed in 0 seconds
    -running init_logoindex--failed to create logoTable
    -error running init_logoindex; aborted - 
    -running init_series_cache >>cache_ns_cnt=10
     >>size=9 
    --- completed in 0 seconds
    -running init_sp_cache--- completed in 1 seconds
    
    Loading modules...ChannelMap,addchannel,backup,blocklist,channelgrid,channelprefs,chanpref,confirm,confresManual,extract,folders,gallery,gdchecker,higuide,info,livetv,logos,logs,mail,managedailymail,manrec,menus,mfsbrowser,netconfig,norerecord,phone,preferences,reorder,resources,rowformat,rss,screen,screentext,search,sysadmin,theme,thumbs,todo_old,todofeed,tracker,ui_channel,ui_compat,ui_deletedshows,ui_history,ui_listings,ui_nowshowing,ui_record,ui_search,ui_season_pass,ui_series,ui_showing,ui_todo,update,webremote,whatson,wishlists,zz_mrt_utils,
    --Info: The following modules won't be loaded, they may be disabled or rely on an unavailable feature (e.g. events or sendkey)
    cidrss,cvsupdate,folderize,merge,mrv,zz_altepg,
    
     - [01/Jan/2016:10:33:41] saving module.cache
    Building menus...
    Loading completed in 16 seconds
    Attempting to open port 80
    Accepting Connections
     - [01/Jan/2016:10:33:42] saving dyncfg.cfg
    Preload Favs done
    192.168.98.11 - - [01/Jan/2016 10:36:12] /menu/7
    192.168.98.11 - - [01/Jan/2016 10:36:14] /logs
    loading module logs (786044)
    192.168.98.11 - - [01/Jan/2016 10:36:19] /logs
    192.168.98.11 - - [01/Jan/2016 10:36:33] /logs
    192.168.98.11 - - [01/Jan/2016 10:36:35] /menu/2
    192.168.98.11 - - [01/Jan/2016 10:36:36] /tracker
    loading module tracker (819572)
      Tracker config file read ok
    Updating files to version 3.3.4
    current = 0.0 target = 3.3
    Using tar
    /hack/tracker
    Files backed-up to backup/tracker_pre3.3.4.tgz
    Processing : series
    <br />-------INTERNAL SERVER ERROR------  <br />--cut here--<br />action:tracker, path:, env:, code:'POSIX ENOENT {no such file or directory}'
    couldn't open "/hack/tracker/series": no such file or directory
        while executing
    "open $::TRK::trackerdir/$trkfn"
        (procedure "tracker_update_conversion" line 19)
        invoked from: "tracker_update_conversion $currentversion $thisversion"
        (procedure "tracker_init" line 75)
        invoked from: "tracker_init"
        (procedure "MOD::action_tracker" line 2)
        invoked from: "$cmd $chan $path $env"<br />--cut here--
    192.168.98.11 - - [01/Jan/2016 10:38:13] /menu/2
     
  19. spitfires

    spitfires wassock

    724
    0
    Dec 19, 2006
    South Coast, UK
    Is that symlink the right way round? I thought /hack pointed to /var/hack but I don't have 1.0d so I can't be sure.

    According to the error, the tracker script is finding a file a called "series" when it's doing a directory list but the file doesn't exist when it tries to open it.
    Code:
    find / -name  series
    Also, check your directory permissions.
     
  20. lloyd

    lloyd New Member

    87
    0
    Feb 15, 2003
    Bedfordshire
    Ok. Seems to be sorted.

    Tracked the problem down to ForeachChangedMfsFileTrans, which was never successfully returning. Seems it was never finding a program with a cancel reason that it was interested in (24, 6, 12 or 33). I was only getting 2 or 21.

    So created a recording and deleted without viewing, and hey presto, it burst into life.

    Surprised that it only seems to acknowledge that one file - the other things that I have watched and deleted, should they not be added to the list?

    Thanks for all your help,

    Lloyd
     
    Last edited: Jan 2, 2016

Share This Page