【问题标题】:AWS CodeDeploy failed to deploy to Windows 10 On premise machineAWS CodeDeploy 未能部署到 Windows 10 本地计算机
【发布时间】:2020-03-11 17:57:55
【问题描述】:

我正在尝试使用 AWS CodeDeploy 从 S3 存储桶部署到本地计算机上的 Windows。 AWS CodeDeployAgent 一直在我的 Windows 机器上运行。

AWS 控制台中的错误:

The overall deployment failed because too many individual instances failed deployment, too few healthy instances are available for deployment, or some instances in your deployment group are experiencing problems.

以下是c:\ProgramData\Amazon\CodeDeploy\log\ 的日志。 ping 169.254.169.254:80 时不可达。

2019-11-15T22:40:18 INFO  [codedeploy-agent(2988)]: On Premises config file does not exist or not readable

2019-11-15T22:40:18 错误 [codedeploy-agent(2988)]: CodeDeploy Instance Agent Service: CodeDeploy Instance Agent Service: error during start or run: Errno::ENETUNREACH - 无法打开 TCP与 169.254.169.254:80 的连接(尝试对无法访问的网络进行套接字操作。-“169.254.169.254”端口 80 的连接(2))- C:/WINDOWS/TEMP/ocr1C29.tmp/lib/ ruby/2.3.0/net/http.rb:882:in rescue in block in connect' C:/WINDOWS/TEMP/ocr1C29.tmp/lib/ruby/2.3.0/net/http.rb:879:inblock in connect' C:/WINDOWS/TEMP/ocr1C29.tmp/lib/ruby/2.3.0/timeout.rb:91:in block in timeout' C:/WINDOWS/TEMP/ocr1C29.tmp/lib/ruby/2.3.0/timeout.rb:101:intimeout' C:/WINDOWS/TEMP/ocr1C29.tmp/lib/ruby/2.3.0/net/http.rb:878:in connect' C:/WINDOWS/TEMP/ocr1C29.tmp/lib/ruby/2.3.0/net/http.rb:863:indo_start' C:/WINDOWS/TEMP/ocr1C29.tmp/lib/ruby/2.3.0/net/http.rb:852:instart' C:/WINDOWS/TEMP/ocr1C29.tmp/lib/ruby/2.3.0/net/http.rb:584:instart' C:/WINDOWS/TEMP/ocr1C29.tmp/src/opt/codedeploy-agent/lib/instance_metadata.rb:51:inhttp_get' C:/WINDOWS/TEMP/ocr1C29.tmp/src/opt/codedeploy-agent/lib/instance_metadata.rb:22:inregion' C:/WINDOWS/TEMP/ocr1C29.tmp/src/opt/codedeploy-agent/lib/instance_agent/plugins/codedeploy/command_poller.rb:38:in initialize' C:/WINDOWS/TEMP/ocr1C29.tmp/src/opt/codedeploy-agent/lib/instance_agent/agent/base.rb:10:innew' C:/WINDOWS/TEMP/ocr1C29.tmp/src/opt/codedeploy-agent/lib/instance_agent/agent/base.rb:10:in runner' C:/WINDOWS/TEMP/ocr1C29.tmp/src/opt/codedeploy-agent/bin/winagent.rb:42:inblock (2级) in service_main' C:/WINDOWS/TEMP/ocr1C29.tmp/src/opt/codedeploy-agent/bin/winagent.rb:41:in synchronize' C:/WINDOWS/TEMP/ocr1C29.tmp/src/opt/codedeploy-agent/bin/winagent.rb:41:inblock in service_main' C:/WINDOWS/TEMP/ocr1C29.tmp/src/opt/codedeploy-agent/bin/winagent.rb:89:inwith_error_handling' C:/WINDOWS/TEMP/ocr1C29.tmp/src/opt/codedeploy-agent/bin/winagent.rb:38:inservice_main' C:/Windows/Temp/ocr1C29.tmp/lib/ruby/gems/2.3.0/gems/win32-service-0.8.10/lib/win32/daemon.rb:316:in mainloop' C:/Windows/Temp/ocr1C29.tmp/lib/ruby/gems/2.3.0/gems/win32-service-0.8.10/lib/win32/daemon.rb:214:inmainloop' C:/WINDOWS/TEMP/ocr1C29.tmp/src/opt/codedeploy-agent/bin/winagent.rb:104:in `'

【问题讨论】:

    标签: windows aws-code-deploy on-premises-instances


    【解决方案1】:

    我只是跑了

    C:\ProgramData\Amazon\EC2-Windows\Launch\Scripts\InitializeInstance.ps1

    并且脚本应用了新生 EC2 windows 实例的默认规范。

    更多信息:Related Question

    【讨论】:

      猜你喜欢
      • 2020-12-17
      • 2018-04-27
      • 2012-08-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-02-18
      相关资源
      最近更新 更多