docker-pm2 icon indicating copy to clipboard operation
docker-pm2 copied to clipboard

pm2-runtime: env spawn E2BIG

Open dmpvost opened this issue 4 years ago • 0 comments

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

https://github.com/Unitech/pm2/issues/4725

dmpvost avatar May 27 '20 16:05 dmpvost