Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

returned non-zero exit status -9

I am deploying code on elastic beanstalk and it gives me this error. I was using nginx proxy and elastic load balancer I disabled both and then try to deploy code this give me following error. I am unable to find any solution

npm WARN deprecated [email protected]: use uuid module instead Not using a reverse proxy Running npm install: /opt/elasticbeanstalk/node-install/node-v6.9.1-linux-x64/bin/npm
Setting npm config jobs to 1 npm config jobs set to 1 Running npm with --production flag Failed to run npm install. Snapshot logs for more details. UTC 2017/01/03 11:47:22 cannot find application npm debug log at /tmp/deployment/application/npm-debug.log Traceback (most recent call last): File "/opt/elasticbeanstalk/containerfiles/ebnode.py", line 695, in main() File "/opt/elasticbeanstalk/containerfiles/ebnode.py", line 677, in main node_version_manager.run_npm_install(options.app_path) File "/opt/elasticbeanstalk/containerfiles/ebnode.py", line 136, in run_npm_install self.npm_install(bin_path, self.config_manager.get_container_config('app_staging_dir')) File "/opt/elasticbeanstalk/containerfiles/ebnode.py", line 180, in npm_install raise e subprocess.CalledProcessError: Command '['/opt/elasticbeanstalk/node-install/node-v6.9.1-linux-x64/bin/npm', '--production', 'install']' returned non-zero exit status -9 (Executor::NonZeroExitStatus)

like image 868
Farhan Yaseen Avatar asked Jan 04 '17 04:01

Farhan Yaseen


1 Answers

A "return code" of -9 indicates that the process was killed with SIGKILL. If you aren't doing that yourself, the OOM killer is a likely culprit.

like image 153
Davis Herring Avatar answered Sep 28 '22 08:09

Davis Herring