AWS CodeDeploy wird nicht unter Lightsail Basic Setup SSL bereitgestellt

Aug 28 2020

Also folge ich diesem Tutorial: https://aws.amazon.com/blogs/compute/using-aws-codedeploy-and-aws-codepipeline-to-deploy-applications-to-amazon-lightsail/

Das hat bis zu dem Punkt, an dem ich den Bereitstellungsschritt tatsächlich ausführen musste, bewundernswert funktioniert.

Ich kann keine anständigen Protokolle von irgendetwas finden, das in der CodeDeploy-Bereitstellungswebschnittstelle passiert sein könnte. Die Protokolle unter /var/log/aws/codedeploy-agent/codedeploy-agent.log sind irgendwie hilfreich

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

Ich denke, das Kernstück dort ist vielleicht das SSL-Ding. Sollte ich eine Art SSL-Sache gemacht haben? Ich habe überhaupt nichts getan.

Ich habe das gefunden: https://serverfault.com/questions/767680/amazon-codedeploy-failing-on-invalid-certificate/962350 Das scheint ähnlich zu sein, aber ein Neustart der LightSail-Instanz schien nicht zu helfen, und es scheint, als hätte sie Internet.

Ich freue mich über jede Hilfe, vielen Dank!

Antworten

1 FlorianvanKampen-Wright Aug 29 2020 at 14:10

Endlich habe ich es herausgefunden - ich hatte den Ort benutzt: us-east-2afür alles, denn das stand auf meiner Lightsail-Instanz. Anscheinend ist das "a" nicht wirklich Teil davon, und irgendwie verursachte das das SSL-Problem, das ich sah.

Ich musste hineingehen /etc/codedeploy-agent/conf/codedeploy.onpremises.ymlund den Namen der Region in ändern us-east-2.

Ich hoffe, dies erspart mindestens einer Person dieses super verwirrende Problem.