-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CodeDeploy Fails on ApplicationStop - host agent restart solves it #276
Comments
Need more information. Are there any logs on the host? |
this is exactly the same issue I was having - there are no logs at all from the deployment on the ec2 instance - it is literally like it fails because the host agent service has crashed - so effectively code deploy cant connect to it to even start the logs let alone the deployment. I have found no way to get any useful error messages. The strange thing is if I check the service it shows as a running state but without fail everytime if I restart the service and try the deployment again it works fine with no errors or issues |
Does it happen after a recent update to the agent? Reboot of the machine? |
We are auto installing the latest version of the agent with user data (on a windows 2019 AMI) via a launch template. I would say it started doing this around November but is very intermittent - sometimes it works as expected. The longer between deployments the more the error seems to happen which is what makes me think the service is crashing out in windows somehow after a while |
Concerning, mind sharing C:\ProgramData\Amazon\CodeDeploy\conf.yml from one of the affected hosts? |
The EC2 is setup and joined to a VPC within AWS yes but no proxy setup below is the conf file::log_dir: 'Amazon/CodeDeploy/log' and these lines are repeated in the codedeploy-agent-log file: Also within the event viewer I have found a warning on the new ec2 instance - event ID 7039: Note that if this service is configured to start under a debugger, this behavior is expected. |
Just had the same issue again. Does the above information help in anyway? |
for anyone else having the same issue I have got around this by adding a scheduled task to stop and start the service everyday |
Please reopen if you're still experiencing this issue with the latest version of CodeDeploy Agent |
We have blue/green setup and have found this intermittent issue across multiple accounts we have.
Windows server 2019 and the launch template installs the latest version of codedeploy host agent on boot
sometimes codedeploy fails on ApplicationStop with no error details at all. a quick restart of the codedeploy host agent service on the existing ec2 instance and the retry works. There must still be an issue with codedeploy going into sleep mode or crashing in windows server 2019 - please help this stops our whole codepipeline form being automated currently
The text was updated successfully, but these errors were encountered: