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

pm2-runtime: env spawn E2BIG #81

Open
dmpvost opened this issue May 27, 2020 · 0 comments
Open

pm2-runtime: env spawn E2BIG #81

dmpvost opened this issue May 27, 2020 · 0 comments

Comments

@dmpvost
Copy link

dmpvost commented May 27, 2020

What's going wrong?

When I start my app with pm2-runtime in gitlab CI.
The current env is inherint from gitlab env.

And it appear that it's too big. PM2 error: Trace: Error: spawn E2BIG
The command filter_env is not available for pm2-runtime

2020-05-27T15:49:39: PM2 error: Trace: Error: spawn E2BIG
     at ChildProcess.spawn (internal/child_process.js:407:11)
     at spawn (child_process.js:548:9)
     at fork (child_process.js:116:10)
     at createWorkerProcess (internal/cluster/master.js:134:10)
     at EventEmitter.cluster.fork (internal/cluster/master.js:169:25)
     at Object.nodeApp (/usr/local/lib/node_modules/pm2/lib/God/ClusterMode.js:48:21)
     at Object.executeApp (/usr/local/lib/node_modules/pm2/lib/God.js:245:9)
     at inject (/usr/local/lib/node_modules/pm2/lib/God.js:159:18)
     at Object.injectVariables (/usr/local/lib/node_modules/pm2/lib/God.js:586:10)
     at /usr/local/lib/node_modules/pm2/lib/God.js:157:9 {
   errno: 'E2BIG',
   code: 'E2BIG',
   syscall: 'spawn'
 }

How could we reproduce this issue?

Try to start pm2-runtime under GitlabCI

Supporting information

$ pm2 report

Unitech/pm2#4725

@dmpvost dmpvost changed the title pm2-runtime pm2-runtime: env spawn E2BIG May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant