使用 Amazon Lunux AMI v2013.09 启动新的 Elastic Beanstalk 环境不起作用

使用 Amazon Lunux AMI v2013.09 启动新的 Elastic Beanstalk 环境不起作用

我从头开始使用 64 位 Amazon Lunix AMI 版本 2013.09 启动新的 Elastic Beanstalk 环境。它适用于 tomcat 7 非旧式容器。

但是在创建环境并启动实例之后,URL(已部署的应用程序应该可用的位置)不起作用。

我检查了实例本身,似乎没有安装 tomcat,更不用说启动它了。所以我检查了 /var/log/cfn-init.log 上的日志文件,发现其中有一些问题可能导致了这种情况。

Error: Package: perl-ExtUtils-MakeMaker-6.55-127.15.amzn1.x86_64 (amzn-main)
           Requires: perl = 4:5.10.1-127.15.amzn1
           Installed: 4:perl-5.10.1-131.19.amzn1.x86_64 (installed)
               perl = 4:5.10.1-131.19.amzn1
           Available: 4:perl-5.10.1-127.15.amzn1.x86_64 (amzn-main)
               perl = 4:5.10.1-127.15.amzn1
Error: Package: perl-CGI-3.51-127.15.amzn1.x86_64 (amzn-main)
           Requires: perl = 4:5.10.1-127.15.amzn1
           Installed: 4:perl-5.10.1-131.19.amzn1.x86_64 (installed)
               perl = 4:5.10.1-131.19.amzn1
           Available: 4:perl-5.10.1-127.15.amzn1.x86_64 (amzn-main)
               perl = 4:5.10.1-127.15.amzn1
Error: Package: 4:perl-devel-5.10.1-127.15.amzn1.x86_64 (amzn-main)
           Requires: perl = 4:5.10.1-127.15.amzn1
           Installed: 4:perl-5.10.1-131.19.amzn1.x86_64 (installed)
               perl = 4:5.10.1-131.19.amzn1
           Available: 4:perl-5.10.1-127.15.amzn1.x86_64 (amzn-main)
               perl = 4:5.10.1-127.15.amzn1
Error: Package: perl-Test-Simple-0.92-127.15.amzn1.x86_64 (amzn-main)
           Requires: perl = 4:5.10.1-127.15.amzn1
           Installed: 4:perl-5.10.1-131.19.amzn1.x86_64 (installed)
               perl = 4:5.10.1-131.19.amzn1
           Available: 4:perl-5.10.1-127.15.amzn1.x86_64 (amzn-main)
               perl = 4:5.10.1-127.15.amzn1
Error: Package: 1:perl-ExtUtils-ParseXS-2.2003.0-127.15.amzn1.x86_64 (amzn-main)
           Requires: perl = 4:5.10.1-127.15.amzn1
           Installed: 4:perl-5.10.1-131.19.amzn1.x86_64 (installed)
               perl = 4:5.10.1-131.19.amzn1
           Available: 4:perl-5.10.1-127.15.amzn1.x86_64 (amzn-main)
               perl = 4:5.10.1-127.15.amzn1
Error: Package: perl-Test-Harness-3.17-127.15.amzn1.x86_64 (amzn-main)
           Requires: perl = 4:5.10.1-127.15.amzn1
           Installed: 4:perl-5.10.1-131.19.amzn1.x86_64 (installed)
               perl = 4:5.10.1-131.19.amzn1
           Available: 4:perl-5.10.1-127.15.amzn1.x86_64 (amzn-main)
               perl = 4:5.10.1-127.15.amzn1
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

2013-10-17 17:43:09,582 [ERROR] Error encountered during build of TomcatContainerInstallPackages: Could not successfully install/update yum packages (return code 1)
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 216, in build
    changes['packages'][manager] = CloudFormationCarpenter._packageTools[manager]().apply(packages, self._auth_config)
  File "/usr/lib/python2.6/site-packages/cfnbootstrap/rpm_tools.py", line 103, in apply
    raise ToolError("Could not successfully install/update yum packages", result.returncode)
ToolError: Could not successfully install/update yum packages (return code 1)
2013-10-17 17:43:09,584 [ERROR] Unhandled exception during build: Could not successfully install/update yum packages (return code 1)
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 216, in build
    changes['packages'][manager] = CloudFormationCarpenter._packageTools[manager]().apply(packages, self._auth_config)
  File "/usr/lib/python2.6/site-packages/cfnbootstrap/rpm_tools.py", line 103, in apply
    raise ToolError("Could not successfully install/update yum packages", result.returncode)
ToolError: Could not successfully install/update yum packages (return code 1)`

我不明白这是怎么回事,你遇到过这些问题吗?如果是的话,你是如何解决的。

如果有帮助的话,我还可以附加完整的日志 cfn-init.log。

相关内容