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

Node PM2 (Process Manager) fails #1588

Closed
dontsave opened this issue Jan 11, 2017 · 7 comments
Closed

Node PM2 (Process Manager) fails #1588

dontsave opened this issue Jan 11, 2017 · 7 comments

Comments

@dontsave
Copy link

pm2, a very widely used nodejs process manager fails perhaps due to socket support in WSL? See pm2's open issue discussion here: Unitech/pm2#2322

npm install -g pm2
pm2 list

throws error:

[PM2] Spawning PM2 daemon with pm2_home=/home/sven/.pm2
[PM2] PM2 Successfully daemonized
util.js:1008
  var errname = uv.errname(err);
                   ^
Error: err >= 0
    at Error (native)
    at Object.exports._errnoException (util.js:1008:20)
    at exports._exceptionWithHostPort (util.js:1035:20)
    at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1080:14)

Slow Ring Build 14986

Any way around this issue?

@sunilmut
Copy link
Member

@dontsave - Thanks for the report and bringing this to our notice. Will try to repro and figure out what is going on here. But, just FYI, that WSL currently does not support daemons.

@sunilmut
Copy link
Member

@dontsave - After following your repro steps, when I run pm2 list, I get the error:
/usr/bin/env: 'node': No such file or directory
Is there something missing from the repro? This is on 15007

@Tsenzuk
Copy link

Tsenzuk commented Jan 22, 2017

@sunilmut how did you installed node?
here are my steps to reproduce:

  1. install BashOnWindows
  2. install node version manager
    $ wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
  3. reload bash to be sure that ~/.bashrc reloaded
  4. install LTS node version
    $ nvm i --lts
  5. install pm2 globally
    $ npm i pm2 -g
  6. show list of running pm2 tasks
    $ pm2 list

Probably, this issue is linked to #1354

@sunilmut
Copy link
Member

@Tsenzuk - Thanks for the detailed steps. They are working for me on the Insider build 15014. Can you give it a try at your end?

@Tsenzuk
Copy link

Tsenzuk commented Mar 15, 2017

@sunilmut unfortunately still reproduces in 15014.1000 with provided steps. Tried in VirtualBox image for Edge preview
screenshot

@Tsenzuk
Copy link

Tsenzuk commented Apr 13, 2017

@sunilmut I've checked in Creator Update 15063.0 the steps and some similar actions used in our product — all is working fine.
Thanks 👍

@sunilmut
Copy link
Member

Great, thanks for validating. I will close the issue out. Thanks for tying out WSL!

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

3 participants