【问题标题】:AWS codedeploy using S3 revisions使用 S3 修订的 AWS 编码部署
【发布时间】:2017-05-29 07:58:33
【问题描述】:

我已经使用 AWS CodeDeploy 几个月了,但我一直使用 git Commit ID 作为我的修订版。我不想在 CI 服务器上成功后自动部署。他们的服务要求我们使用 S3 进行修订。

但是当我尝试使用 S3 时,我得到了以下 DownloadBundle 生命周期方法:

  • 对于我的 CodeDeploy 错误

HEALTH_CONSTRAINTS

  • 在我的日志中 ec2 日志

Error CodeUnknownError Script Name Messagecannot load such file -- aws-sdk-core/s3 Log Tail

我已经检查过的事情:

  1. 用户有权限 -- 是我,我有所有权限:)
  2. EC2 实例和 S3 存储桶位于同一区域
  3. 我手动下载了修改版,是正确的

这似乎是错误的堆栈跟踪 2017-01-13 20:28:04 ERROR [codedeploy-agent(19081)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandPoller: Error during perform: LoadError - cannot load such file -- aws-sdk-core/s3 - /opt/codedeploy-agent/lib/instance_agent/plugins/codedeploy/command_executor.rb:200:in `download_from_s3' /opt/codedeploy-agent/lib/instance_agent/plugins/codedeploy/command_executor.rb:76:in `block in <class:CommandExecutor>' /opt/codedeploy-agent/lib/instance_agent/plugins/codedeploy/command_executor.rb:62:in `execute_command' /opt/codedeploy-agent/lib/instance_agent/plugins/codedeploy/command_poller.rb:132:in `process_command' /opt/codedeploy-agent/lib/instance_agent/plugins/codedeploy/command_poller.rb:65:in `perform' /opt/codedeploy-agent/lib/instance_agent/agent/base.rb:28:in `run' /opt/codedeploy-agent/lib/instance_agent/runner/child.rb:38:in `block in run' /opt/codedeploy-agent/lib/instance_agent/runner/child.rb:55:in `with_error_handling' /opt/codedeploy-agent/lib/instance_agent/runner/child.rb:37:in `run' /opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager/child.rb:70:in `block in run_with_error_handling' /opt/codedeploy-agent/lib/instance_agent/runner/child.rb:55:in `with_error_handling' /opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager/child.rb:69:in `run_with_error_handling' /opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager/child.rb:33:in `block in start' /opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager/child.rb:22:in `loop' /opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager/child.rb:22:in `start' /opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager/master.rb:206:in `block in spawn_child' /opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager/master.rb:204:in `fork' /opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager/master.rb:204:in `spawn_child' /opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager/master.rb:196:in `block in spawn_children' /opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager/master.rb:195:in `times' /opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager/master.rb:195:in `spawn_children' /opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager/master.rb:134:in `start' /opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager/master.rb:37:in `block in start' /opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager/master.rb:36:in `fork' /opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager/master.rb:36:in `start' /opt/codedeploy-agent/bin/../lib/codedeploy-agent.rb:41:in `block (2 levels) in <main>' /opt/codedeploy-agent/vendor/gems/gli-2.5.6/lib/gli/command_support.rb:130:in `call' /opt/codedeploy-agent/vendor/gems/gli-2.5.6/lib/gli/command_support.rb:130:in `execute' /opt/codedeploy-agent/vendor/gems/gli-2.5.6/lib/gli/app_support.rb:262:in `block in call_command' /opt/codedeploy-agent/vendor/gems/gli-2.5.6/lib/gli/app_support.rb:275:in `call' /opt/codedeploy-agent/vendor/gems/gli-2.5.6/lib/gli/app_support.rb:275:in `call_command' /opt/codedeploy-agent/vendor/gems/gli-2.5.6/lib/gli/app_support.rb:69:in `run' /opt/codedeploy-agent/bin/../lib/codedeploy-agent.rb:88:in `<main>'

【问题讨论】:

    标签: amazon-web-services amazon-s3 amazon-ec2 aws-code-deploy


    【解决方案1】:

    在从 SDK 核心查找 S3 SDK 时,它似乎在抱怨问题。您是否尝试将主机代理更新到最新版本或手动将 aws-sdk-core 导入盒子?

    【讨论】:

      【解决方案2】:

      你有一个 deploymentId 吗?还是您介意在实例上粘贴主机代理日志以提供更多上下文?主机代理日志目录是 /var/log/aws/codedeploy-agent/codedeploy-agent.log

      【讨论】:

      • 嘿,我提供的似乎是原始问题中错误的堆栈跟踪
      猜你喜欢
      • 2017-01-14
      • 2015-12-12
      • 2017-03-16
      • 2023-03-10
      • 2020-11-23
      • 1970-01-01
      • 2023-03-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多