Git Product home page Git Product logo

Comments (5)

iangreenleaf avatar iangreenleaf commented on July 20, 2024

Could you provide some more details, please? What are your trying to run, and when does the crash occur? If you can provide sample code to help me reproduce the issue, that would be ideal.

from node-supervisor.

d0rc avatar d0rc commented on July 20, 2024

I was running simple coffeescript under supervisor, it was crashing just after start and while I was thinking how to fix it, I've found supervisor crashed. The project is too big to provide an example:(

Here is more detailed log. It starts with process crashing, then after modification you can see supervisor crashing, and new supervisor fails to start process, because EADDRINUSE - old process is still running.

DEBUG: Starting child process with 'coffee gslot.coffee'
Error: Cannot find module 'accounts'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/raid/games/gslot_connector/gslot.coffee:12:14)
    at Object.<anonymous> (/raid/games/gslot_connector/gslot.coffee:70:4)
    at Module._compile (module.js:449:26)
    at Object.exports.run (/usr/lib64/node_modules/coffee-script/lib/coffee-script/coffee-script.js:83:25)
    at compileScript (/usr/lib64/node_modules/coffee-script/lib/coffee-script/command.js:177:29)
    at fs.stat.notSources.(anonymous function) (/usr/lib64/node_modules/coffee-script/lib/coffee-script/command.js:152:18)
DEBUG: Program coffee gslot.coffee exited with code 1

DEBUG: Starting child process with 'coffee gslot.coffee'
Error: Cannot find module 'accounts'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/raid/games/gslot_connector/gslot.coffee:12:14)
    at Object.<anonymous> (/raid/games/gslot_connector/gslot.coffee:70:4)
    at Module._compile (module.js:449:26)
    at Object.exports.run (/usr/lib64/node_modules/coffee-script/lib/coffee-script/coffee-script.js:83:25)
    at compileScript (/usr/lib64/node_modules/coffee-script/lib/coffee-script/command.js:177:29)
    at fs.stat.notSources.(anonymous function) (/usr/lib64/node_modules/coffee-script/lib/coffee-script/command.js:152:18)
DEBUG: Program coffee gslot.coffee exited with code 1

DEBUG: Starting child process with 'coffee gslot.coffee'
Error: Cannot find module 'accounts'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/raid/games/gslot_connector/gslot.coffee:12:14)
    at Object.<anonymous> (/raid/games/gslot_connector/gslot.coffee:70:4)
    at Module._compile (module.js:449:26)
    at Object.exports.run (/usr/lib64/node_modules/coffee-script/lib/coffee-script/coffee-script.js:83:25)
    at compileScript (/usr/lib64/node_modules/coffee-script/lib/coffee-script/command.js:177:29)
    at fs.stat.notSources.(anonymous function) (/usr/lib64/node_modules/coffee-script/lib/coffee-script/command.js:152:18)
DEBUG: Program coffee gslot.coffee exited with code 1

DEBUG: Starting child process with 'coffee gslot.coffee'
Error: Cannot find module 'accounts'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/raid/games/gslot_connector/gslot.coffee:12:14)
    at Object.<anonymous> (/raid/games/gslot_connector/gslot.coffee:70:4)
    at Module._compile (module.js:449:26)
    at Object.exports.run (/usr/lib64/node_modules/coffee-script/lib/coffee-script/coffee-script.js:83:25)
    at compileScript (/usr/lib64/node_modules/coffee-script/lib/coffee-script/command.js:177:29)
    at fs.stat.notSources.(anonymous function) (/usr/lib64/node_modules/coffee-script/lib/coffee-script/command.js:152:18)
DEBUG: Program coffee gslot.coffee exited with code 1

DEBUG: Starting child process with 'coffee gslot.coffee'
Error: Cannot find module 'accounts'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/raid/games/gslot_connector/gslot.coffee:12:14)
    at Object.<anonymous> (/raid/games/gslot_connector/gslot.coffee:70:4)
    at Module._compile (module.js:449:26)
    at Object.exports.run (/usr/lib64/node_modules/coffee-script/lib/coffee-script/coffee-script.js:83:25)
    at compileScript (/usr/lib64/node_modules/coffee-script/lib/coffee-script/command.js:177:29)
    at fs.stat.notSources.(anonymous function) (/usr/lib64/node_modules/coffee-script/lib/coffee-script/command.js:152:18)
DEBUG: Program coffee gslot.coffee exited with code 1

DEBUG: Starting child process with 'coffee gslot.coffee'
Error: Cannot find module 'accounts'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/raid/games/gslot_connector/gslot.coffee:12:14)
    at Object.<anonymous> (/raid/games/gslot_connector/gslot.coffee:70:4)
    at Module._compile (module.js:449:26)
    at Object.exports.run (/usr/lib64/node_modules/coffee-script/lib/coffee-script/coffee-script.js:83:25)
    at compileScript (/usr/lib64/node_modules/coffee-script/lib/coffee-script/command.js:177:29)
    at fs.stat.notSources.(anonymous function) (/usr/lib64/node_modules/coffee-script/lib/coffee-script/command.js:152:18)
DEBUG: Program coffee gslot.coffee exited with code 1

DEBUG: Starting child process with 'coffee gslot.coffee'
Error: Cannot find module 'accounts'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/raid/games/gslot_connector/gslot.coffee:12:14)
    at Object.<anonymous> (/raid/games/gslot_connector/gslot.coffee:70:4)
    at Module._compile (module.js:449:26)
    at Object.exports.run (/usr/lib64/node_modules/coffee-script/lib/coffee-script/coffee-script.js:83:25)
    at compileScript (/usr/lib64/node_modules/coffee-script/lib/coffee-script/command.js:177:29)
    at fs.stat.notSources.(anonymous function) (/usr/lib64/node_modules/coffee-script/lib/coffee-script/command.js:152:18)
DEBUG: Starting child process with 'coffee gslot.coffee'
DEBUG: crashing child

timers.js:103
            if (!process.listeners('uncaughtException').length) throw e;
                                                                      ^
Error: kill ESRCH
    at errnoException (node.js:278:13)
    at process.startup.processKillAndExit.process.kill (node.js:445:15)
    at Object._onTimeout (/usr/lib64/node_modules/supervisor/lib/supervisor.js:233:15)
    at Timer.list.ontimeout (timers.js:101:19)
dex77 gslot_connector # supervisor gslot.coffee 

DEBUG: Running node-supervisor with
DEBUG:   program 'gslot.coffee'
DEBUG:   --watch '.'
DEBUG:   --ignore 'undefined'
DEBUG:   --extensions 'node|js|coffee'
DEBUG:   --exec 'coffee'

DEBUG: Starting child process with 'coffee gslot.coffee'
DEBUG: Watching directory '/raid/games/gslot_connector' for changes.

events.js:66
        throw arguments[1]; // Unhandled 'error' event
                       ^
Error: listen EADDRINUSE
    at errnoException (net.js:776:11)
    at Server._listen2._connectionKey (net.js:917:26)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)
DEBUG: Program coffee gslot.coffee exited with code 1

from node-supervisor.

iangreenleaf avatar iangreenleaf commented on July 20, 2024

Thanks. What version of node are you running? Does it crash every time you start supervisor, or was this a one-time thing?

from node-supervisor.

d0rc avatar d0rc commented on July 20, 2024

It's node v0.8.2
It was one-time thing, still I guess it's important.

from node-supervisor.

iangreenleaf avatar iangreenleaf commented on July 20, 2024

Closing as I can't reproduce.

from node-supervisor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.