Iniciando o novo ambiente do Elastic Beanstalk usando o Amazon Lunux AMI v2013.09 não está funcionando

1

Estou começando do zero para iniciar um novo ambiente do Elastic Beanstalk usando o Amazon Lunix AMI versão de 64 bits 2013.09. É para o contêiner não legado do tomcat 7.

Mas depois que o ambiente é criado e a instância é lançada, a URL (onde o aplicativo implantado deve estar disponível) não está funcionando.

Eu verifiquei a própria instância & parece que o tomcat não está instalado nele, e muito menos iniciá-lo. Então, verifiquei o arquivo de log em /var/log/cfn-init.log e vi alguns problemas que podem estar causando isso.

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)'

Eu não entendo o que é isso, você já enfrentou esses problemas? Em caso afirmativo, como você conseguiu resolvê-lo.

Eu também posso anexar o log completo cfn-init.log se isso ajudar.

    
por Chantz 17.10.2013 / 20:23

0 respostas