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

Windows support #6

Closed
Volox opened this issue Jun 14, 2013 · 13 comments
Closed

Windows support #6

Volox opened this issue Jun 14, 2013 · 13 comments

Comments

@Volox
Copy link

Volox commented Jun 14, 2013

Running on windows i keep seeing Launching daemon but nothing happens.
I tried with the json file and manually with pm2 start app.js but with no luck.
Also pm2 list and the other commands give the same result.
I am doing something wrong?

Thanks.

OS: Win 7 x64
node: 0.10.3

@Unitech
Copy link
Owner

Unitech commented Jun 17, 2013

Hello, thanks for reporting issues.

PM2 is a production module, who should be mainly used on Linux servers. I haven't tried it on other platforms than Linux.

Feel free to contribute if you want to integrate this compatibility feature !

Thanks

@thesebas
Copy link

When changed detached: true to false in Satan.launchDaemon daemon forking options got this error:

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: spawn Unknown system errno 203
    at errnoException (child_process.js:945:11)
    at Process.ChildProcess._handle.onexit (child_process.js:736:34)

but cant find what is that 203 error.

@ncwhale
Copy link

ncwhale commented Sep 3, 2013

how about use nssm in windows? there is another project: http://jfromaniello.github.io/winser/

@oliversalzburg
Copy link

I was trying to get pm2 to work on my Windows-based development workstation for testing purposes, but whenever I invoke it with any parameters, I get:

events.js:71
        throw arguments[1]; // Unhandled 'error' event
                       ^
Error: connect EADDRNOTAVAIL
    at errnoException (net.js:770:11)
    at Object.afterConnect [as oncomplete] (net.js:761:19)

I tried debugging pm2, but I really didn't get anywhere. What is the execution path after everything in the pm2 file is defined?

@Unitech
Copy link
Owner

Unitech commented Aug 29, 2014

We just launched a crowd funding campaign on boutysource for the Windows support:

https://www.bountysource.com/teams/keymetricsio/fundraisers/600-pm2-windows-support

Hope we will get enough attention for this Windows feature !

@Unitech
Copy link
Owner

Unitech commented Oct 16, 2014

Could you try the Windows support:

C:/ $ npm install git://github.com/Unitech/pm2#development -g

Give us your feedback!

@oliversalzburg
Copy link

@Unitech Well, it starts our application. Which is more than what I got on the first try with pm2 on Windows ;)

@Unitech
Copy link
Owner

Unitech commented Oct 20, 2014

Good (: Apparently I got a feedback about the PID that is not refreshed on restart ( #777 ) Do you have the same bug?

Thanks

@oliversalzburg
Copy link

I'll have to properly test at work during the week and I really have to get more into the specifics of pm2. I'll post if I trip over anything.

@soyuka
Copy link
Collaborator

soyuka commented Oct 20, 2014

@oliversalzburg Thanks! Windows tester are not easy to find these days! (don't ask why...)

@mike-aungsan
Copy link

I have the same problem on widows server.

@HalfdanJ
Copy link

I also still have this problem, also after installing the development branch

@echiu64
Copy link
Contributor

echiu64 commented Jan 31, 2015

Try setting PM2_HOME to your C:\Users.pm2 directory (Win Vista/7/8)
Or take a simple one line patch described in this pull: #982

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

9 participants