pgriess / node-webworker

A WebWorkers implementation for NodeJS
BSD 3-Clause "New" or "Revised" License
646 stars 84 forks source link

Cannot create worker in 0.4.1 #19

Closed pbcomm closed 13 years ago

pbcomm commented 13 years ago

net.js:1016 throw new Error('Non-socket exists at ' + path); ^ Error: Non-socket exists at /tmp/node-webworker-88948 at net.js:1016:17

pgriess commented 13 years ago

What exists at that path?

pbcomm commented 13 years ago

The folder is there, however it's empty.

pgriess commented 13 years ago

The exception is being thrown because the path exists and is not a UNIX domain socket. Did you by chance manually create this directory? I don't see a codepath in node-webworker that would create a directory here.

pbcomm commented 13 years ago

I did not create the directory. It's being created when the socket is opened by webworker. There is a var being set with the same path:

// Directory for our UNIX domain sockets var SOCK_DIR_PATH = '/tmp/node-webworker-' + process.pid;

mhalle commented 13 years ago

I'm seeing the same behavior on Mac OS 10.6.6.

czapata commented 13 years ago

I'm seeing this error when creating new workers in node version 0.4.1.

kschzt commented 13 years ago

Seems to be because the npm package hasn't been updated? Using master works.

pbcomm commented 13 years ago

Confirmed! Master works fine. Please update npm!!!!! Thanks kschzt.

Tested with 0.4.2 as well, works fine.

mirkokiefer commented 13 years ago

Master fixes the problem for me too. Updating npm would be great!