TZM / tzm-blade

ZMGC Application empowers members with on-line tools, by providing a free infrastructure to easily exchange, analyse and disseminate information in a scalable, non-blocking manner using only Open Source software build by the community for the community. It is about building lasting and deep solidarity versus cheap and fast Facebook or Twitter campaigns
www.zmgc.net
GNU General Public License v3.0
4 stars 8 forks source link

TypeError: Object has no method 'on' #22

Open nkhine opened 11 years ago

nkhine commented 11 years ago

get this error when i push to appfog and heroku

====> /logs/stderr.log <====

/mnt/var/vcap.local/dea/apps/blade-0-6b574d3bbe94acc506b4a7b79b1a6a8d/app/node_modules/socket.io/lib/manager.js:104
  server.on('error', function(err) {
         ^
TypeError: Object 523701 has no method 'on'
    at new Manager (/mnt/var/vcap.local/dea/apps/blade-0-6b574d3bbe94acc506b4a7b79b1a6a8d/app/node_modules/socket.  io/lib/manager.js:104:10)
    at Object.exports.listen (/mnt/var/vcap.local/dea/apps/blade-0-6b574d3bbe94acc506b4a7b79b1a6a8d/app/node_modules/socket.    io/lib/socket.io.js:78:10)
    at Object.<anonymous> (/mnt/var/vcap.local/dea/apps/blade-0-6b574d3bbe94acc506b4a7b79b1a6a8d/app/app/server.coffee:29:25)
    at Object.<anonymous> (/mnt/var/vcap.local/dea/apps/blade-0-6b574d3bbe94acc506b4a7b79b1a6a8d/app/app/server.coffee:48:4)
    at Module._compile (module.js:449:26)
    at Object.loadFile (/mnt/var/vcap.local/dea/apps/blade-0-6b574d3bbe94acc506b4a7b79b1a6a8d/app/node_modules/coffee-  script/lib/coffee-script/coffee-script.js:182:19)
    at Module.load (/mnt/var/vcap.local/dea/apps/blade-0-6b574d3bbe94acc506b4a7b79b1a6a8d/app/node_modules/coffee-  script/lib/coffee-script/coffee-script.js:211:36)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/mnt/var/vcap.local/dea/apps/blade-0-6b574d3bbe94acc506b4a7b79b1a6a8d/app/run.js:2:1)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.runMain (module.js:492:10)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)

====> /logs/stdout.log <====

and heroku

2013-07-02T19:25:58.878368+00:00 app[web.1]: NOW USING CPU: # 0
2013-07-02T19:25:58.878368+00:00 app[web.1]: socket io using port:  555501
2013-07-02T19:25:58.880025+00:00 app[web.1]:
2013-07-02T19:25:58.880352+00:00 app[web.1]: /app/node_modules/socket.io/lib/manager.js:104
2013-07-02T19:25:58.880623+00:00 app[web.1]:   server.on('error', function(err) {
2013-07-02T19:25:58.883676+00:00 app[web.1]: TypeError: Object 555501 has no method 'on'
2013-07-02T19:25:58.883676+00:00 app[web.1]:     at Object.<anonymous> (/app/app/server.coffee:29:25)
2013-07-02T19:25:58.880623+00:00 app[web.1]:          ^
2013-07-02T19:25:58.883676+00:00 app[web.1]:     at new Manager (/app/node_modules/socket.io/lib/manager.js:104:10)
2013-07-02T19:25:58.883862+00:00 app[web.1]:     at require (module.js:380:17)
2013-07-02T19:25:58.883676+00:00 app[web.1]:     at Object.<anonymous> (/app/app/server.coffee:48:4)
2013-07-02T19:25:58.883676+00:00 app[web.1]:     at Object.exports.listen (/app/node_modules/socket.io/lib/socket.io.js:78:10)
2013-07-02T19:25:58.883676+00:00 app[web.1]:     at Module.require (module.js:364:17)
2013-07-02T19:25:58.883862+00:00 app[web.1]:     at Function.Module.runMain (module.js:497:10)
2013-07-02T19:25:58.883862+00:00 app[web.1]:     at Object.Module._extensions..js (module.js:474:10)
2013-07-02T19:25:58.883676+00:00 app[web.1]:     at Object.loadFile (/app/node_modules/coffee-script
/lib/coffee-script/coffee-script.js:182:19)
2013-07-02T19:25:58.883862+00:00 app[web.1]:     at Module.load (module.js:356:32)
2013-07-02T19:25:58.883676+00:00 app[web.1]:     at Module._compile (module.js:456:26)
2013-07-02T19:25:58.883676+00:00 app[web.1]:     at Module.load (/app/node_modules/coffee-script/lib/coffee-script/coffee-  script.js:211:36)
2013-07-02T19:25:58.883862+00:00 app[web.1]:     at node.js:901:3
2013-07-02T19:25:58.883676+00:00 app[web.1]:     at Function.Module._load (module.js:312:12)
2013-07-02T19:25:58.883862+00:00 app[web.1]:     at Object.<anonymous> (/app/run.js:2:1)
2013-07-02T19:25:58.883862+00:00 app[web.1]:     at Module._compile (module.js:456:26)
2013-07-02T19:25:58.883862+00:00 app[web.1]:     at Function.Module._load (module.js:312:12)
2013-07-02T19:25:58.883862+00:00 app[web.1]:     at startup (node.js:119:16)
2013-07-02T19:26:00.147565+00:00 heroku[web.1]: State changed from starting to crashed
2013-07-02T19:26:00.134325+00:00 heroku[web.1]: Process exited with status 8