Open jarmitage opened 6 years ago
Sometimes scsynth or node gets stuck in the background even if you close the app. In order to boot the server in Siren, you need to make sure that those aren't running and the sockets are free. you can quit them using Activity Monitor on mac
It seems like another application is using the port 4003 (most likely node). Could you run a quick netstat
to make sure?
Here's another output from attempting to stop the server from within Siren
[0] debug : SuperColliderJS.interpret("cjh7j6s8t00024bvyc5l3hdrg","s.quit;",nil,false,false,false);
[0] debug :
[0] SUPERCOLLIDERJS:cjh7j6s8t00024bvyc5l3hdrg:CAPTURE:START
[0] server 'localhost' disconnected shared memory interface
[0] debug : '/quit' sent
[0] debug :
[0] SUPERCOLLIDERJS:cjh7j6s8t00024bvyc5l3hdrg:CAPTURE:END
[0] debug :
[0] SUPERCOLLIDERJS:cjh7j6s8t00024bvyc5l3hdrg:START:Result
[0] SUPERCOLLIDERJS:cjh7j6s8t00024bvyc5l3hdrg:CHUNK:{"string": "localhost","compileString": "s","class": "Server"}
[0] SUPERCOLLIDERJS:cjh7j6s8t00024bvyc5l3hdrg:END:Result
[0] SUPERCOLLIDERJS.interpreted
[0] ### sendSC: { string: 'localhost', compileString: 's', class: 'Server' }
[0] debug : ->
[0] Unhandled rejection TypeError: Cannot read property 'status' of null
[0] at /Users/jarm/Documents/git/livecode/Siren/server/app.js:391:15
[0] at tryCatcher (/Users/jarm/Documents/git/livecode/Siren/node_modules/bluebird/js/release/util.js:16:23)
[0] at Promise._settlePromiseFromHandler (/Users/jarm/Documents/git/livecode/Siren/node_modules/bluebird/js/release/promise.js:512:31)
[0] at Promise._settlePromise (/Users/jarm/Documents/git/livecode/Siren/node_modules/bluebird/js/release/promise.js:569:18)
[0] at Promise._settlePromise0 (/Users/jarm/Documents/git/livecode/Siren/node_modules/bluebird/js/release/promise.js:614:10)
[0] at Promise._settlePromises (/Users/jarm/Documents/git/livecode/Siren/node_modules/bluebird/js/release/promise.js:693:18)
[0] at Async._drainQueue (/Users/jarm/Documents/git/livecode/Siren/node_modules/bluebird/js/release/async.js:133:16)
[0] at Async._drainQueues (/Users/jarm/Documents/git/livecode/Siren/node_modules/bluebird/js/release/async.js:143:10)
[0] at Immediate.Async.drainQueues [as _onImmediate] (/Users/jarm/Documents/git/livecode/Siren/node_modules/bluebird/js/release/async.js:17:14)
[0] at runCallback (timers.js:763:18)
[0] at tryOnImmediate (timers.js:734:5)
[0] at processImmediate (timers.js:716:5)
[0] debug : RESULT = 0
Throws an error such as: