-
Notifications
You must be signed in to change notification settings - Fork 77
Node.js app with cluster does not execute inside Nodeclipse // Unknown system errno 203 #81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@paulvi I was able to reproduce this. It affects nodeclipse version 0.5.0.201309080643 and latest 0.6; reverting to 0.4.0.201305191444 resolves the issue (temp fix). Error: write EPIPE - cannot write to IPC channel.
Version Information:
I used the following updates to switch between versions (clean uninstalls and restarts of workspace each time, of course):
...In other news, it would be nice to keep the version history intact on the primary update site(s) so you can revert to a previous eclipse configuration (under "Installation History"). When using the current update sites for 0.5 and 0.6, Eclipse says it cannot find the old plugin versions. |
Do you mean that the same Node.js code produces different errors in Eclipse? by the way http://dl.bintray.com/nodeclipse/nodeclipse is actually mirror of 0.5 The latest 0.7 $ git clone git://github.com/Nodeclipse/nodeclipse-1.git Then build with $ mvn package |
@zamnuts There is no need to install/unistall plugins. Just get second(third..) Eclipse . For example Enide Studio http://sourceforge.net/projects/nodeclipse/files/Enide-Studio/ Then you can set once more Eclipse and update Nodeclipse. there is very convinient Nodeclipse plugin list under Help menu. |
@paulvi Using your original Cluster source I get the same results you do:
That is with a new project and nodeclipse 0.6. The error I received was also relevant to ChildProcess and occurred during provisioning of those child processes. The difference is that To reproduce (using the sample code from http://nodejs.org/api/child_process.html#child_process_child_send_message_sendhandle), first use
...and
Works in 0.4, but produces in 0.6:
I'm not saying it is the same error, but it is a pretty close coincidence, don't you think? If you feel these are unrelated, I can open a separate bug report. btw, i ended up just duplicating my eclipse directory and installed the other version (for now), thanks for the tip |
I wonder if using V8 debugger coming with 0.4 version e.g. taking Nodeclipse NTS http://sourceforge.net/projects/nodeclipse/files/ but with Nodeclipse itself being the latest could work. |
I'm seeing this issue (in a different context) as well. Exercising a little Google-fu, I came up with errno 203 is "Environment variable missing" Looking at process.env, it only has one item, "SystemRoot". No PATH, no nothing else. |
It looks like in the "Edit launch configuration properties" window that the "Append to environment" is not working properly; it appears that no matter what that the native environment variables are getting nuked. copied to #122 |
OK, workaround on my system. YMMV; you may need more than these. Open cmd.exe and run "set" to get the environment variables for your system. Take note of the values for "PATH", "TEMP", "TMP", and "SystemDrive". Open the properties for the nodeclipse project. Click on Run/Debug Settings, then edit the launch configuration that is failing. Click on "Environment". Add the four environment variables above. |
Do I understand right that the cause errno 203 is "Environment variable missing" |
With commit above the example code can run inside Eclipse at least on Windows
|
@zamnuts example also works (on Windows) |
@paulvi, you are correct: The issue being reported by errno 203 is that a required environment variable is missing. For my environment, I needed to set those four variables. |
OK, so this #81 is not actually bug, because code will run once those environment variables are set. Also @ihgreenman Ian, I copied ""Append to environment" is not working properly" into #122. Do you have code snippet to test this. Please continue in #122 . |
The fix of setting the environment variables within the run configuration worked for me; I can run the application through Nodeclipse. However, when running the application in debug mode (also with the environment variables set), the node js application will hang after creating the cluster workers. No errors are thrown. If I remove the cluster code, the application will run in debug mode just fine. Update, below is how I got around the problem described above https://github.com/department-of-veterans-affairs/vlerdas-ecrud/pull/71 |
@palcocer I found this while trying to debug a nodejs cluster app, but your link is dead. Any chance you could explain your workaround here? |
This code with
cluster
usage does not execute inside NodeclipseIt is finishing with
Possibly output is less, because of #71
The text was updated successfully, but these errors were encountered: