我正在尝试使用 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:in
block 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:in
timeout' 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:in
do_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:in
start' 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:in
new'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:in
block (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:in
block 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:in
service_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:in
mainloop' C:/WINDOWS/TEMP/ocr1C29.tmp/src/opt/codedeploy -agent/bin/winagent.rb:104:in `'