返回非零退出状态 -9
returned non-zero exit status -9
我正在 elastic beanstalk 上部署代码,它给了我这个错误。我正在使用 nginx 代理和弹性负载平衡器,我禁用了这两个,然后尝试部署代码,这给了我以下错误。我找不到任何解决方案
npm WARN deprecated node-uuid@1.4.7: 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)
-9 indicates that the process was killed with SIGKILL. If you aren't doing that yourself, the OOM killer 的 "return code" 可能是罪魁祸首。
我正在 elastic beanstalk 上部署代码,它给了我这个错误。我正在使用 nginx 代理和弹性负载平衡器,我禁用了这两个,然后尝试部署代码,这给了我以下错误。我找不到任何解决方案
npm WARN deprecated node-uuid@1.4.7: 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)
-9 indicates that the process was killed with SIGKILL. If you aren't doing that yourself, the OOM killer 的 "return code" 可能是罪魁祸首。