AWS CodeDeploy Failed Deployment in Windows Server

Our CI/CD pipeline has been going smoothly for a long time. Today, I happened to need to deploy something and it failed.

First, I looked in the console and viewing the events, it failed at the first step which is ApplicationStop.

So I thought the application is still running which is usually the case when the deployment failed but this time no instance of my application is being run at that moment.

Next, I check the log file which can be found in:


The log file indicated the agent can't connect to the host. One of the error message in the log is "certificate verify failed".

I restarted the CodeDeploy agent but the issue persisted.

Eventually, by uninstalling and updating the CodeDeploy agent solves my issue. In my case, which is in Windows Server, I had to stop the agent service and uninstall to enable the update to success.



Comments

Popular posts from this blog

Sentinel One Strikes Again. No internet connection. Uninstall Sentinel One Agent.

Error When Generating OpenAPI Documents: Missing required option '--project'

A2 Hosting with .NET Core 2.1