部署中的Amazon Beanstalk错误

马克:

我正在运行两个环境,在部署应用程序时,每个环境都会出现相同的错误。在部署Beanstalk示例应用程序时也会发生这些错误。当我们创建一个新环境并在其中部署相同文件时,错误消失了至少几天,然后它们将返回。

Instance: i-72715b7f Command failed on instance. An unexpected error has occurred ErrorCode: 0000000001.

更新环境操作已完成,但有错误。有关更多信息,请参见故障排除文档。

Instance: i-85437188 Module: AWSEBAutoScalingGroup ConfigSet: null Command failed on instance. Return code: 1 Output: Error occurred during build: Command hooks failed .

Script /opt/elasticbeanstalk/hooks/appdeploy/enact/99_reload_app_server.sh failed with returncode 1

Script /opt/elasticbeanstalk/hooks/appdeploy/pre/12_update_permissions.sh failed with returncode 1

该应用程序(WordPress网站)似乎在事件中具有这些错误也可以正常工作,除了具有类似于传统权限错误(无法上传图像或永久链接不起作用)的随机问题。我们一直在beantalk上运行相同的应用程序,完全没有问题或错误。在部署Beanstalk示例应用程序时也会发生这些错误。

这是错误日志中似乎没有任何相关性的唯一代码段。

2014-09-17 19:47:08,825 ERROR Error encountered during build of Hook-EnactAppDeploy: Command hooks failed
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/cfnbootstrap/construction.py", line 511, in run_config
CloudFormationCarpenter(config, self._auth_config).build(worklog)
File "/usr/lib/python2.6/site-packages/cfnbootstrap/construction.py", line 247, in build
changes = CommandTool().apply(self._config.commands)
File "/usr/lib/python2.6/site-packages/cfnbootstrap/command_tool.py", line 113, in apply
raise ToolError(u"Command %s failed" % name)
ToolError: Command hooks failed
2014-09-17 19:47:08,826 ERROR Unhandled exception during build: Command hooks failed
Traceback (most recent call last):
File "/opt/aws/bin/cfn-init", line 122, in <module>
worklog.build(detail.metadata, configSets)
File "/usr/lib/python2.6/site-packages/cfnbootstrap/construction.py", line 117, in build
Contractor(metadata).build(configSets, self)
File "/usr/lib/python2.6/site-packages/cfnbootstrap/construction.py", line 502, in build
self.run_config(config, worklog)
File "/usr/lib/python2.6/site-packages/cfnbootstrap/construction.py", line 511, in run_config
CloudFormationCarpenter(config, self._auth_config).build(worklog)
File "/usr/lib/python2.6/site-packages/cfnbootstrap/construction.py", line 247, in build
changes = CommandTool().apply(self._config.commands)
File "/usr/lib/python2.6/site-packages/cfnbootstrap/command_tool.py", line 113, in apply
raise ToolError(u"Command %s failed" % name)
ToolError: Command hooks failed

怎么了 我们该如何解决?

马克:

问题最终是由错误的WordPress插件引起的。/tmp每次上传文件时,该插件都会目录中创建一个新文件夹,但它从未删除过该文件夹。它将删除文件夹中的所有文件,但不会删除该文件夹。当客户端使用该站点并继续上传图像时,这些文件夹将加起来,最终将填满/tmp目录。修复此插件可以解决此问题,但尚未返回。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

AWS Elastic Beanstalk中的mysqlclient安装错误

部署中的捆绑器错误

在Elastic Beanstalk部署期间如何解决“ OSError:找不到mysql_config”错误?

在Amazon Elastic Beanstalk上使用Docker部署Django

如何从Jenkins将Python应用程序部署到Amazon Elastic Beanstalk?

Amazon EC2中的错误Docker部署-Docker容器意外退出

将NodeJS部署到Elastic Beanstalk时出现NPM错误

同时在Amazon Elastic Beanstalk上部署到多个环境

安装gem在部署中失败-AWS Elastic Beanstalk

Elastic Beanstalk部署错误:AttributeError ::'NoneType'对象没有属性'split'

.net Core 2.0部署到AWS Beanstalk的错误

Elastic Beanstalk上传和部署错误:错误:找不到模块“ semver”

Elastic Beanstalk部署:UndefinedModelAttributeError

AWS Elastic Beanstalk部署失败并出现ENOMEM错误

Elastic Beanstalk部署超时,并且“超出速率”错误阻止查看日志

AWS Elastic BeanStalk Node.js部署错误

在CodePipeline中部署的Laravel Elastic Beanstalk应用程序出现500个服务器错误

找不到Elastic Beanstalk 404部署Rails错误

Beanstalk初始git部署

部署时aws beanstalk 403错误

在Amazon Elastic Beanstalk上部署Django。LOGGING_INFO环境变量未设置

Amazon ElasticBeanstalk上的Ruby on Rails部署:签名过期错误

Spring AWS:在Elastic Beanstalk上部署War时访问被拒绝错误

如何使Amazon Cloudwatch监视特定的不正常实例并在Elastic Beanstalk部署中终止它们

Rails-AWS(Elastic Beanstalk)部署,错误命令“ git clone”

将 Flask 应用程序部署到 AWS beanstalk 时出现错误 [Errno 2]

如何修复部署在 Elastic Beanstalk 上的 django-allauth 的“社交网络登录失败”错误

我在通过 https 部署 Elastic Beanstalk 应用程序后收到 408 错误

.war 文件未部署在 Elastic Beanstalk 环境中