Skip to content
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

Will not start app in cluster mode on Windows Server 2008 #1408

Closed
pfatcat opened this issue Jul 1, 2015 · 6 comments
Closed

Will not start app in cluster mode on Windows Server 2008 #1408

pfatcat opened this issue Jul 1, 2015 · 6 comments

Comments

@pfatcat
Copy link

pfatcat commented Jul 1, 2015

Hello,
I am trying to use PM2 in cluster mode on a Windows Server 2008 R2 Standard 64-bit machine.
node v0.12.5 pm2 v0.14.2

pm2 start test.js starts the app successfully.

pm2 start test.js -i 2 or pm2 start test.js -i 0 does not.

I tried this fix with no success
#868

pm2

Thanks for your help with this issue.

@samc3322
Copy link

samc3322 commented Jul 8, 2015

We have been digging into this issue. What we have been running into is an error thrown down in node (v0.12.5) on a app that tried to spin up a mssql connection on a named instance. While not certain the our best lead is that mssql connections use udp to negotiate a port. Apparently there is still a bug in node cluster.js where udp connections don't close.

If anyone has insight or can confirm this issue it may save someone a lot of heartache.

@samc3322
Copy link

samc3322 commented Jul 8, 2015

P.S - Use PM2 with --no-daemon to get information piped to the console.

@andriyudatama
Copy link

I have the same issue running PM2 on Windows 7 machine. Any help would be appreciated

screen shot 2015-07-13 at 4 01 31 am

@samc3322
Copy link

The issue we’ve experienced seem to be related to our app trying to connect to a mssql named instance. Basically there is still a issue inside one of node’s core features with cluster.js where udp connections do not get closed properly. Connecting to a named instance used udp to request connection information. In our case the app would start up and appear to be working from the PM2 console but almost immediately.

Currently we are running the in fork mode in the environments where we use a named instance for mssql. Other environments which we use a instance running on 1433 seem to work fine in cluster_mode.

I hope this helps. I lost about 2 days tracking down this issue.

Regards,
Sam

On Jul 12, 2015, at 4:02 PM, andriecool notifications@github.com wrote:

I have the same issue running PM2 on Windows 7 machine. Any help would be appreciated

https://cloud.githubusercontent.com/assets/192841/8640036/fc44f3e8-2913-11e5-94d0-075368a2e3c9.png

Reply to this email directly or view it on GitHub #1408 (comment).

@gmahomarf
Copy link

See nodejs/node-v0.x-archive#9261

@stale
Copy link

stale bot commented May 24, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label May 24, 2020
@stale stale bot closed this as completed Jun 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants