【发布时间】:2018-07-29 00:16:54
【问题描述】:
我的配置一直运行到昨天。我添加了nginx NodeJS https redirect extension from AWS。现在,当我尝试通过 Elastic Beanstalk 配置添加新环境变量时,我收到此错误:
[Instance: i-0364b59cca36774a0] Command failed on instance. Return code: 137 Output: + rm -f /etc/nginx/conf.d/00_elastic_beanstalk_proxy.conf + service nginx stop Stopping nginx: /sbin/service: line 66: 27395 Killed env -i PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" ${OPTIONS}. Hook /opt/elasticbeanstalk/hooks/configdeploy/post/99_kill_default_nginx.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.
当我查看 eb-activity.log 时,我看到了这个错误:
[2018-02-18T17:24:58.762Z] INFO [13848] - [Configuration update 1.0.61@112/ConfigDeployStage1/ConfigDeployPostHook/99_kill_default_nginx.sh] : Starting activity...
[2018-02-18T17:24:58.939Z] INFO [13848] - [Configuration update 1.0.61@112/ConfigDeployStage1/ConfigDeployPostHook/99_kill_default_nginx.sh] : Activity execution failed, because: + rm -f /etc/nginx/conf.d/00_elastic_beanstalk_proxy.conf
+ service nginx stop
Stopping nginx: /sbin/service: line 66: 14258 Killed env -i PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" ${OPTIONS} (ElasticBeanstalk::ExternalInvocationError)
caused by: + rm -f /etc/nginx/conf.d/00_elastic_beanstalk_proxy.conf
+ service nginx stop
Stopping nginx: /sbin/service: line 66: 14258 Killed env -i PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" ${OPTIONS} (Executor::NonZeroExitStatus)
我做错了什么?最近发生了什么变化,因为几个月前我更改了环境变量时效果很好。
【问题讨论】:
-
你最后解决了这个问题吗?我面临类似的事情,我只是使用文档中指定的配置
-
不。我可以解决它的唯一方法是在没有 00_elastic_beanstalk_proxy.conf 的情况下推送新负载,重建环境,更改变量,然后将所有内容(00_elastic_beanstalk_proxy.conf)放回去。
标签: amazon-web-services nginx amazon-elastic-beanstalk