[{"data":1,"prerenderedAt":96},["ShallowReactive",2],{"/2025/12/08-aws-codedeploy-failed-deployment-in-windows-server":3},{"id":4,"title":5,"body":6,"date":87,"description":84,"extension":88,"meta":89,"navigation":90,"path":91,"robots":92,"seo":93,"stem":94,"__hash__":95},"posts/2025/12/08 AWS-CodeDeploy-failed-deployment-in-Windows-Server.md","08 AWS CodeDeploy Failed Deployment In Windows Server",{"type":7,"value":8,"toc":83},"minimark",[9,18,25,28,31,33,36,38,41,43,46,59,61,64,66,69,71,74],[10,11,13],"post-title",{":date":12},"date",[14,15,17],"h1",{"id":16},"aws-codedeploy-failed-deployment-in-windows-server","AWS CodeDeploy Failed Deployment in Windows Server",[19,20,21],"notes",{},[22,23,24],"p",{},"This is a repost from my old blog. First posted in 7/12/2020.",[26,27],"br",{},[22,29,30],{},"Our CI/CD pipeline has been going smoothly for a long time. Today, I happened to need to deploy something and it failed.",[26,32],{},[22,34,35],{},"First, I looked in the console and viewing the events, it failed at the first step which is ApplicationStop.",[26,37],{},[22,39,40],{},"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.",[26,42],{},[22,44,45],{},"Next, I check the log file which can be found in:",[22,47,48],{},[49,50,53],"span",{"className":51},[52],"text-blue-600",[54,55,56],"a",{"href":56,"rel":57},"https://docs.aws.amazon.com/codedeploy/latest/userguide/deployments-view-logs.html",[58],"nofollow",[26,60],{},[22,62,63],{},"The log file indicated the agent can't connect to the host. One of the error message in the log is \"certificate verify failed\".",[26,65],{},[22,67,68],{},"I restarted the CodeDeploy agent but the issue persisted.",[26,70],{},[22,72,73],{},"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.",[22,75,76],{},[49,77,79],{"className":78},[52],[54,80,81],{"href":81,"rel":82},"https://docs.aws.amazon.com/codedeploy/latest/userguide/codedeploy-agent-operations-update-windows.html",[58],{"title":84,"searchDepth":85,"depth":85,"links":86},"",2,[],"2025-12-08T00:00:00.000Z","md",{},true,"/2025/12/08-aws-codedeploy-failed-deployment-in-windows-server",null,{"title":5,"description":84},"2025/12/08 AWS-CodeDeploy-failed-deployment-in-Windows-Server","KD-_GPplQFlNr-eNJu9bE-mWtIkXiFHpE8soI8DGWGo",1785167452252]