AWS CodeDeploy不在Lightsail基本设置SSL上部署

问题描述

所以我正在关注本教程:https://aws.amazon.com/blogs/compute/using-aws-codedeploy-and-aws-codepipeline-to-deploy-applications-to-amazon-lightsail/

在我不得不实际运行部署步骤之前,它一直表现出色。

The event log thing

我找不到CodeDeploy部署Web界面中可能发生的任何体面的日志。 /var/log/aws/codedeploy-agent/codedeploy-agent.log中的日志有点帮助

2020-08-28 21:03:47 INFO  [codedeploy-agent(2990)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandExecutor: Archives to retain is: 5}
2020-08-28 21:03:47 ERROR [codedeploy-agent(2990)]: InstanceAgent::Plugins::CodeDeployPlugin::CodeDeployControl: Error during certificate verification on codedeploy endpoint
 https://codedeploy-commands.us-east-2a.amazonaws.com
2020-08-28 21:03:47 ERROR [codedeploy-agent(2990)]: Error validating the SSL configuration: Invalid server certificate
2020-08-28 21:03:47 ERROR [codedeploy-agent(2990)]: booting child: error during start or run: SystemExit - Stopping CodeDeploy agent due to SSL validation error. - /opt/code
deploy-agent/lib/instance_agent/plugins/codedeploy/command_poller.rb:65:in `abort'
/opt/codedeploy-agent/lib/instance_agent/plugins/codedeploy/command_poller.rb:65:in `validate'
/opt/codedeploy-agent/lib/instance_agent/agent/base.rb:11:in `runner'
/opt/codedeploy-agent/lib/instance_agent/runner/child.rb:32:in `block in prepare_run'
/opt/codedeploy-agent/lib/instance_agent/runner/child.rb:78:in `with_error_handling'
/opt/codedeploy-agent/lib/instance_agent/runner/child.rb:31:in `prepare_run'
/opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager/child.rb:64:in `block in prepare_run_with_error_handling'
/opt/codedeploy-agent/lib/instance_agent/runner/child.rb:78:in `with_error_handling'
/opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager/child.rb:63:in `prepare_run_with_error_handling'
/opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager/child.rb:20: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:283:in `block (2 levels) in replace_terminated_children'
/opt/codedeploy-agent/vendor/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call'
/opt/codedeploy-agent/vendor/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
2020-08-28 21:03:47 ERROR [codedeploy-agent(2990)]: booting child: error during start or run: SystemExit - exit - /opt/codedeploy-agent/lib/instance_agent/runner/child.rb:90
:in `exit

我认为核心内容可能是ssl内容。我应该做某种ssl事情吗?我什么都没做。

我发现了这一点: https://serverfault.com/questions/767680/amazon-codedeploy-failing-on-invalid-certificate/962350 似乎相似/相同,但是重新启动LightSail实例似乎无济于事,并且似乎可以上网。

非常感谢您提供的任何帮助,非常感谢!

解决方法

最后弄清楚了-我一直在使用位置us-east-2a,因为这就是我在lightail实例上所说的。显然,“ a”实际上不是它的一部分,并且某种程度上导致了我所看到的SSL问题。

我不得不进入/etc/codedeploy-agent/conf/codedeploy.onpremises.yml 并将区域名称更改为us-east-2

我希望这可以使至少一个人摆脱这个超级混乱的问题。

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...