-
Notifications
You must be signed in to change notification settings - Fork 188
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
Intermittent CodeDeploy Agent SSL_connect error #208
Comments
amazon-archives/aws-sdk-core-ruby#166 |
@rohkat-aws Thanks for the quick response. That link is for the sdk. Not sure how it relates to the CodeDeploy Agent. |
the sdk is used by codeploy-agent @if-igor , i remember something like this had been reported earlier |
Any idea when this will get picked up? We have the same issue as described by if-igor. |
Same here, random failures in CodeDeploy and get the same SSL error in the log. Reboot, log clears up, and deployments start working again. |
Happening for me too. Quite randomly, after running for a while: 2019-10-03T00:02:32 INFO [codedeploy-agent(1000)]: Version file found in C:/ProgramData/Amazon/CodeDeploy/.version with agent version OFFICIAL_1.0.1.1597_msi. 2019-10-03T00:02:34 ERROR [codedeploy-agent(1000)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandPoller: Error during perform: Seahorse::Client::NetworkingError - SSL_connect returned=1 errno=0 state=error: certificate verify failed - C:/Windows/TEMP/ocr113C.tmp/lib/ruby/2.3.0/net/http.rb:933:in `connect_nonblock' |
Is there any update on this issue? This is preventing us from reliably deploying to our instances, as from time to time we have to restart the AWS CodeDeploy Agent service to make it work again. |
We've experienced this issue as well, after rebooting the instance it started working. |
Reboot didn't fix it for me. Neither reinstalling did. Would be great if someone in the agent team (or maybe it's mainly related to the API) could take a look at the issue. |
I was in contact with AWS support about this. The reply was very interesting/useful so I'll share it here.
|
Any update on this yet? The suggestion from @pieterdw didn't work for me. I have created a cron task to stop and start the codedeployagent service every night. Let's see if that makes any difference. |
quick temporary solution
|
Hi @if-igor, @ChristianHart, @amico412, @tbronchain, @advanw Will you please help us by answering these questions:
Thank you |
|
Hi @ChristianHart , Thank you for the help! For number 3, @mpidlisnyi did the fix on a linux box so the path is a lot different on windows. I don't know the exact path on a Windows OS, but, if I find it, I will add it here. |
@annamataws any update on this? Do we have a timeline for the fix for server 2019? ++ @smiller63 |
My work around is
Script for reading log file
Edit: Updated script with second error text we started seeing. |
Hi, Thank you for posting your work around. |
'We are working on a new release of the agent that will address this issue and a few others.'
|
We'll update the ticket as soon as a new release is ready. We are aiming to deliver a release in next two monthes or so |
@ChristianHart Thank you for the script. That was super helpful. |
@JamesKnowlesEbsta last week we started seeing a slightly different error. I just updated the script in my previous comment with the change I made to handle that. |
@ChristianHart I also ran it out in testing so I shorten error down and it picks up other problems also, add in some logging. Although this does not create the directory. The tail 55 might lead to a double tap restart. So I have not perfected for each error. Thank you again for the idea.
|
We are experiencing the same issue at our shop: 2020-06-25T00:42:30 ERROR [codedeploy-agent(1284)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandPoller: Error during perform: Seahorse::Client::NetworkingError - SSL_connect returned=1 errno=0 state=error: certificate verify failed - C:/Windows/TEMP/ocr714E.tmp/lib/ruby/2.3.0/net/http.rb:933:in `connect_nonblock' |
Same issue. 2020-07-07T13:15:08 ERROR [codedeploy-agent(1404)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandPoller: Error during perform: Seahorse::Client::NetworkingError - SSL_connect returned=1 errno=0 state=error: certificate verify failed - C:/Windows/TEMP/ocrA51A.tmp/lib/ruby/2.3.0/net/http.rb:933:in `connect_nonblock' Windows Server 2019 v1809 (OS Build 17763.1098) |
@Helen1987 Hope this message finds you well. If you need a hand with testing, or coding to move this issue along I would be happy to help. The message you last left sort of implies that you are fixing this issue ?, if that is not the case or there is something you need help with please shout and would be happy to give time. This issue is major for us and we have pretty much rolled back out of 2019 in places. |
We are in the process of releasing of a new version of CodeDeploy Agent that includes fix for Windows Server 2019. However, we turned off auto-update cron-job for the Agent in previous release. Check release notes. Make sure you are onboarded with SSM Distributor if you want to get the latest version of CodeDeploy Agent. |
We are experiencing this same problem or one similar to it. I see that there is a 1.1.1 release that includes support for windows server 2019 on the releases page in this repo. Is there any timeline for when we will see this release available in the codedeploy s3 buckets? |
@vaxinate I believe they rolled it back, from looking at other issues. @Helen1987 should probably be able to clarify 100% |
Yeah, we had to rollback version 1.1.1, but we will deliver version 1.1.2 as soon as we can |
This issue is fixed in our latest release v1.1.2 |
We are running the latest version of CodeDeploy Agent on Windows Server 2019 EC2 instances. Occasionally, the agent fails, and the logs are full of NetworkingError SSL_connect. Restarting the Agent resolves the problem until the next such occurrence.
This happens across multiple regions/accounts.
`2019-04-24T19:10:47 DEBUG [codedeploy-agent(2428)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandPoller: PollHostCommand: Host Command = nil
2019-04-24T19:10:48 DEBUG [codedeploy-agent(2428)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandPoller: Calling PollHostCommand:
2019-04-24T19:10:48 INFO [codedeploy-agent(2428)]: Version file found in C:/ProgramData/Amazon/CodeDeploy/.version with agent version OFFICIAL_1.0.1.1597_msi.
2019-04-24T19:11:49 INFO [codedeploy-agent(2428)]: [Aws::CodeDeployCommand::Client 200 60.093372 0 retries] poll_host_command(host_identifier:"instance_arn")
2019-04-24T19:11:49 DEBUG [codedeploy-agent(2428)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandPoller: PollHostCommand: Host Command = nil
2019-04-24T19:11:50 DEBUG [codedeploy-agent(2428)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandPoller: Calling PollHostCommand:
2019-04-24T19:11:50 INFO [codedeploy-agent(2428)]: Version file found in C:/ProgramData/Amazon/CodeDeploy/.version with agent version OFFICIAL_1.0.1.1597_msi.
2019-04-24T19:11:52 INFO [codedeploy-agent(2428)]: [Aws::CodeDeployCommand::Client 0 2.197781 3 retries] poll_host_command(host_identifier:"instance_arn") Seahorse::Client::NetworkingError SSL_connect returned=1 errno=0 state=error: certificate verify failed
`
The text was updated successfully, but these errors were encountered: