0

我正在尝试使用 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 - 无法打开到 169.254.169.254 的 TCP 连接: 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:in start' 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:in区域'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 levels) 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:in with_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 `'

4

1 回答 1

0

我只是跑

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

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

欲了解更多信息:相关问题

于 2020-08-25T08:07:28.293 回答