democracy.io
democracy.io copied to clipboard
Server sometimes gets stuck in restart loop
Sometimes this happens when you're first starting the app, and a killall node fixes it. Other times it starts happening while the app is running.
events.js:72
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE
at errnoException (net.js:904:11)
at Server._listen2 (net.js:1042:14)
at listen (net.js:1064:10)
at Server.listen (net.js:1138:5)
at EventEmitter.listen (/Users/sina/Git/democracy.io/node_modules/express/lib/application.js:617:24)
at Object.<anonymous> (/Users/sina/Git/democracy.io/server.js:8:18)
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)
Program node /Users/sina/Git/democracy.io/server.js exited with code 8
@l12s If you can take a look at this by Tuesday that'd be really helpful. Worried about the server getting stuck in a redirect loop like this, but maybe that's not likely.
I'm almost certain that this is solely when running with browser-sync, which is only in dev mode via gulp serve.
I'll try and figure it out later in the week. LMK if there's an issue in prod sooner than that though!