8000 pm2-runtime: env spawn E2BIG · Issue #81 · keymetrics/docker-pm2 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
pm2-runtime: env spawn E2BIG #81
Open
@dmpvost

Description

@dmpvost

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milest 2FD5 one

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0