ArchiveTeam / universal-tracker

A configurable, reusable tracker with dashboard
34 stars 17 forks source link

Broadcaster fails to start, object #<Server> has no method 'configure' #33

Open ae-s opened 9 years ago

ae-s commented 9 years ago

I'm building a brand new tracker box to migrate things towards. Debian Jessie, if it matters, and all the packages are freshly installed following the directions at http://archiveteam.org/index.php?title=Dev/Tracker#Tracker_Setup.

https://github.com/ArchiveTeam/universal-tracker/blob/master/broadcaster/server.js#L62

At this location I get the following failure:

$ nodejs server.js /home/tracker/broadcaster/environment.json 

/home/tracker/broadcaster/server.js:62
io.configure(function() {
   ^
TypeError: Object #<Server> has no method 'configure'
    at Object.<anonymous> (/home/tracker/broadcaster/server.js:62:4)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:906:3

environment.json contains:

{   
    "tracker_config": {
        "redis_pubsub_channel": "tracker-log"
    },
    "redis_db": 1
}