gpt4 book ai didi

amazon-web-services - ElasticBeanstalk,部署错误: Command hooks (directoryHooksExecutor. py --path/opt/elasticbeanstalk/hooks/appdeploy/pre/)失败

转载 作者:行者123 更新时间:2023-12-04 00:12:48 26 4
gpt4 key购买 nike

得到这个错误:

Command hooks (directoryHooksExecutor.py --path /opt/elasticbeanstalk/hooks/appdeploy/pre/) failed

在尝试通过git aws.push进行部署后。

部署没有通过,引发的事件是:

2014-05-20 15:41:46 UTC-0700 ERROR [Instance: i-808b90df Module: AWSEBAutoScalingGroup ConfigSet: null] Command failed on instance. Return code: 1 Output: Error occurred during build: Command hooks failed . 2014-05-20 15:41:43 UTC-0700 ERROR Script /opt/elasticbeanstalk/hooks/appdeploy/pre/10_bundle_install.sh failed with returncode 1



这是错误日志:
2014-05-20 22:41:43,767 [ERROR] Command hooks (directoryHooksExecutor.py --path /opt/elasticbeanstalk/hooks/appdeploy/pre/) failed
2014-05-20 22:41:43,768 [DEBUG] Command hooks output:
2014-05-20 22:41:43,768 [ERROR] Error encountered during build of Hook-PreAppDeploy: 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['commands'] = 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-05-20 22:41:43,795 [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['commands'] = 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-05-20 23:35:04,652 [DEBUG] CloudFormation client initialized with endpoint https://cloudformation.us-west-1.amazonaws.com
2014-05-20 23:35:04,653 [DEBUG] Describing resource AWSEBAutoScalingGroup in stack arn:aws:cloudformation:us-west-1:040951787496:stack/awseb-e-yz93miu6ma-stack/1bd7f720-da3f-11e3-a5f1-50fa003f9896

有任何想法吗?

谢谢

最佳答案

我在bundle_install.sh上遇到了类似的问题,请使用

$> eb logs

并检查您的 /var/log/directory-hooks-executor.log,对我来说,它无法安装gem'forem'。

关于amazon-web-services - ElasticBeanstalk,部署错误: Command hooks (directoryHooksExecutor. py --path/opt/elasticbeanstalk/hooks/appdeploy/pre/)失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23771923/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com