Error starting node-theseus

153 views
Skip to first unread message

Raymond Camden

unread,
Aug 28, 2013, 11:10:44 AM8/28/13
to theseus...@googlegroups.com
I've got a simple express app. Trying to start it with node-theseus I get:

[node-theseus] caught uncaught exception
Error: listen EADDRINUSE
    at errnoException (net.js:901:11)
    at Server._listen2 (net.js:1039:14)
    at listen (net.js:1061:10)
    at Server.listen (net.js:1127:5)
    at Object.exports.listen (/usr/local/lib/node_modules/node-theseus/node_modules/websocket.io/lib/websocket.io.js:62:10)
    at Object.exports.listen (/usr/local/lib/node_modules/node-theseus/node-theseus.js:88:14)
    at Object.<anonymous> (/usr/local/lib/node_modules/node-theseus/bin/node-theseus:92:14)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
[node-theseus] caught process.exit(), not exiting
Express server listening on port 3000

Note that the app *does* start.

Raymond Camden

unread,
Aug 28, 2013, 11:13:39 AM8/28/13
to theseus...@googlegroups.com
I went ahead and tried to test anyway. Not sure what else I need to do though.

My expectation is that Brackets will show the call counts as in the video, but running the app doesn't show that.

Tom Lieber

unread,
Aug 28, 2013, 11:13:42 AM8/28/13
to Raymond Camden, theseus...@googlegroups.com
Is it possible that you have another app running with node-theseus already? Unfortunately, only one can be running at a time.


--
You received this message because you are subscribed to the Google Groups "Theseus Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to theseus-discu...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Tom Lieber
http://AllTom.com/
http://infinite-sketchpad.com/

Raymond Camden

unread,
Aug 28, 2013, 11:16:25 AM8/28/13
to Tom Lieber, theseus...@googlegroups.com
Not as far as I know. I hit localhost:3000 to see (after killing node-theseus), and nothing came up. If I have Theseus "on" in Brackets, would that do it? But it would seem to weird to turn it off there.


--
You received this message because you are subscribed to a topic in the Google Groups "Theseus Discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/theseus-discuss/VP3nCagCtTs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to theseus-discu...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
===========================================================================
Raymond Camden, Adobe Developer Evangelist

Email : raymon...@gmail.com
Blog : www.raymondcamden.com
Twitter: cfjedimaster

Tom Lieber

unread,
Aug 28, 2013, 11:28:44 AM8/28/13
to Raymond Camden, theseus...@googlegroups.com
node-theseus attempts to listen on port 8888, which I didn't take much care in choosing, so it's possible another service on your computer is already using it. It's not possible to customize that port yet (also on my list), so to get around this you'll need to kill the other service or change the port number in node-theseus and Theseus.

Raymond Camden

unread,
Aug 28, 2013, 11:32:44 AM8/28/13
to theseus...@googlegroups.com, Raymond Camden
Boom. That was it. Killed it and now it is running. About to test.

Btw - I'm planning a blog post on this stuff - mainly all the things that confused me. This is all really helpful. Thank you.

Tom Lieber

unread,
Aug 28, 2013, 11:33:55 AM8/28/13
to Raymond Camden, theseus...@googlegroups.com
I'd love to read that post. :) Thank you too!


--
You received this message because you are subscribed to the Google Groups "Theseus Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to theseus-discu...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Raymond Camden

unread,
Aug 28, 2013, 11:37:13 AM8/28/13
to Tom Lieber, theseus...@googlegroups.com
Wow, it worked!

Ok - this is kinda curious. Imagine this in app.js:

app.get('/', routes.index);
app.get('/data', routes.data);
app.get('/cached', routes.cached);

I noticed that Theseus wasn't updating it. Turns out it *was* updated routes/index.js. Which I guess made sense. On app start up Express registered that routes.index is used for so and so path, but when I ran it, it's really index.js's function being called.

Again... it makes sense - but I'm going to call this out to folks.

Freaking cool. Freaking cool. Freaking cool.

Now I'm going to see if I can get it working with Node and the front end at the same time.



--
You received this message because you are subscribed to a topic in the Google Groups "Theseus Discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/theseus-discuss/VP3nCagCtTs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to theseus-discu...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--

Tom Lieber

unread,
Aug 28, 2013, 11:40:36 AM8/28/13
to Raymond Camden, theseus...@googlegroups.com
Unless your HTML is static, you'll probably need Proxy Mode (in the File menu), which proxies to localhost:3000 instead of serving files directly from disk. Heads up since I just realized that's not in the README yet.
Reply all
Reply to author
Forward
0 new messages