【问题标题】:returned non-zero exit status -9返回非零退出状态 -9
【发布时间】:2017-05-18 07:22:45
【问题描述】:

我在弹性 beantalk 上部署代码,它给了我这个错误。我正在使用 nginx 代理和弹性负载均衡器,我禁用了两者,然后尝试部署代码,这给了我以下错误。我找不到任何解决方案

npm WARN 不推荐使用 node-uuid@1.4.7: 使用 uuid 模块而不是 使用反向代理运行 npm install: /opt/elasticbeanstalk/node-install/node-v6.9.1-linux-x64/bin/npm
将 npm config jobs 设置为 1 npm config jobs 设置为 1 Running npm 带有 --production 标志无法运行 npm install。快照日志 更多细节。 UTC 2017/01/03 11:47:22 找不到应用程序 npm 调试日志位于 /tmp/deployment/application/npm-debug.log 回溯(最近一次通话最后): 文件“/opt/elasticbeanstalk/containerfiles/ebnode.py”,第 695 行,在 主要的() 文件“/opt/elasticbeanstalk/containerfiles/ebnode.py”,第 677 行,在 main node_version_manager.run_npm_install(options.app_path) 文件“/opt/elasticbeanstalk/containerfiles/ebnode.py”,第 136 行,在 run_npm_install self.npm_install(bin_path, self.config_manager.get_container_config('app_staging_dir')) 文件“/opt/elasticbeanstalk/containerfiles/ebnode.py”,第 180 行,在 npm_install raise e subprocess.CalledProcessError: 命令'['/opt/elasticbeanstalk/node-install/node-v6.9.1-linux-x64/bin/npm', '--production', 'install']' 返回非零退出状态 -9 (执行者::NonZeroExitStatus)

【问题讨论】:

  • 我也有同样的问题 :( 你找到解决办法了吗?
  • 这个警告意味着旧的 node-uuid 模块已被弃用,并且不会继续维护。所以只需执行 npm uninstall --save node-uuid 和 npm install --save uuid
  • SSH 到您由 ELB 创建的节点,然后手动运行 sudo /opt/elasticbeanstalk/containerfiles/ebnode.py --action npm-install 2 并检查有什么问题。这个错误比你在现有日志中得到的更多

标签: node.js nginx amazon-elastic-beanstalk elastic-load-balancer


【解决方案1】:

“返回码”为 -9 indicates,表示进程已被 SIGKILL 杀死。如果您自己没有这样做,OOM killer 可能是罪魁祸首。

【讨论】:

    猜你喜欢
    • 2019-11-28
    • 2013-12-23
    • 2022-11-01
    • 2014-01-13
    • 2016-08-09
    • 2019-10-02
    • 2019-02-06
    • 2014-07-26
    • 1970-01-01
    相关资源
    最近更新 更多