Amazon CodeDeploy failing on invalid certificate The 2019 Stack Overflow Developer Survey...
What do hard-Brexiteers want with respect to the Irish border?
How to answer pointed "are you quitting" questioning when I don't want them to suspect
CiviEvent: Public link for events of a specific type
Springs with some finite mass
Why is Grand Jury testimony secret?
What is the meaning of Triage in Cybersec world?
Is bread bad for ducks?
Carnot-Caratheodory metric
What could be the right powersource for 15 seconds lifespan disposable giant chainsaw?
Why isn't airport relocation done gradually?
Monty Hall variation
"What time...?" or "At what time...?" - what is more grammatically correct?
Output the Arecibo Message
Why is my p-value correlated to difference between means in two sample tests?
Lethal sonic weapons
It's possible to achieve negative score?
Pristine Bit Checking
How come people say “Would of”?
"To split hairs" vs "To be pedantic"
What is the motivation for a law requiring 2 parties to consent for recording a conversation
How to change the limits of integration
Realistic Alternatives to Dust: What Else Could Feed a Plankton Bloom?
On the insanity of kings as an argument against monarchy
Where to refill my bottle in India?
Amazon CodeDeploy failing on invalid certificate
The 2019 Stack Overflow Developer Survey Results Are InEC2 Ubuntu 14.04 instances: running `apt-get update` results in “Hash Sum mismatch”Cannot reach web server on a new ubuntu install on AWSIs / in memory? AWS/EC2 Ubuntu Server 14.04 LTS (HVM)Unable to install tomcat using aws cloud formation scriptsUnable to boot a customized HVM AMI on EC2Why AWS Ubuntu server showing extra Drive sizeTrying to install CloudWatch Agent on Ubuntu 14.04: “Failed to create virtualenv”Ubuntu 14.04 HVM on EC2 t2.mediumUpgraded HVM AMI won't launch on m4 instance typesHow can I provide software for userdata?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
For the past year or so, I've been deploying to AMI ubuntu-trusty-14.04-amd64-server-20150325 (ami-d85e75b0) running on C3.large instances with Amazon CodeDeploy. I'm using the standard user-data script from the documentation to install the CodeDeploy agent:
#!/bin/bash
apt-get -y update
apt-get -y install awscli
apt-get -y install ruby2.0
cd /home/ubuntu
aws s3 cp s3://aws-codedeploy-us-east-1/latest/install . --region us-east-1
chmod +x ./install
./install auto
I recently found that I needed the performance offered by an M4.large, but in order to do that I needed to be running on HVM virtualization type, so I fired up ubuntu-trusty-14.04-amd64-server-20160114.5 (ami-fce3c696), SSD Volume AMI Type using the same exact script.
When I tried to deploy with CodeDeploy this time, CodeDeploy wasn't reporting any events, so I ssh'd into the new instance to read the CodeDeploy logs, and found two interesting lines:
2016-04-01 20:49:25 ERROR [codedeploy-agent(2080)]: Error validating
the SSL configuration: Invalid server certificate
2016-04-01 20:49:25 ERROR [codedeploy-agent(2080)]: booting child:
error during start or run: SystemExit - Stopping CodeDeploy agent
due to SSL validation error.
- /opt/codedeploy-agent/lib/instance_agent/plugins/codedeploy/command_poller.rb:53:in `abort'
I can't seem to find anything in the docs that is useful, and the few reports of this issue that I found via Google talked about HTTP proxys and SSL environment variables. This just confused me because there's no mention of any of these things in the docs.
Does anybody know what might be going on here?
amazon-web-services
add a comment |
For the past year or so, I've been deploying to AMI ubuntu-trusty-14.04-amd64-server-20150325 (ami-d85e75b0) running on C3.large instances with Amazon CodeDeploy. I'm using the standard user-data script from the documentation to install the CodeDeploy agent:
#!/bin/bash
apt-get -y update
apt-get -y install awscli
apt-get -y install ruby2.0
cd /home/ubuntu
aws s3 cp s3://aws-codedeploy-us-east-1/latest/install . --region us-east-1
chmod +x ./install
./install auto
I recently found that I needed the performance offered by an M4.large, but in order to do that I needed to be running on HVM virtualization type, so I fired up ubuntu-trusty-14.04-amd64-server-20160114.5 (ami-fce3c696), SSD Volume AMI Type using the same exact script.
When I tried to deploy with CodeDeploy this time, CodeDeploy wasn't reporting any events, so I ssh'd into the new instance to read the CodeDeploy logs, and found two interesting lines:
2016-04-01 20:49:25 ERROR [codedeploy-agent(2080)]: Error validating
the SSL configuration: Invalid server certificate
2016-04-01 20:49:25 ERROR [codedeploy-agent(2080)]: booting child:
error during start or run: SystemExit - Stopping CodeDeploy agent
due to SSL validation error.
- /opt/codedeploy-agent/lib/instance_agent/plugins/codedeploy/command_poller.rb:53:in `abort'
I can't seem to find anything in the docs that is useful, and the few reports of this issue that I found via Google talked about HTTP proxys and SSL environment variables. This just confused me because there's no mention of any of these things in the docs.
Does anybody know what might be going on here?
amazon-web-services
Check if the E2C instance has internet access. It can be the cause of your problem. Best, RMRodrigues
– rmrodrigues
May 9 '16 at 15:18
@rmrodrigues is right (at least in my case). It was down to my VPC routing improperly set up, so the new instance didn't have any Internet access.
– Shayan Khan
Sep 27 '17 at 6:57
add a comment |
For the past year or so, I've been deploying to AMI ubuntu-trusty-14.04-amd64-server-20150325 (ami-d85e75b0) running on C3.large instances with Amazon CodeDeploy. I'm using the standard user-data script from the documentation to install the CodeDeploy agent:
#!/bin/bash
apt-get -y update
apt-get -y install awscli
apt-get -y install ruby2.0
cd /home/ubuntu
aws s3 cp s3://aws-codedeploy-us-east-1/latest/install . --region us-east-1
chmod +x ./install
./install auto
I recently found that I needed the performance offered by an M4.large, but in order to do that I needed to be running on HVM virtualization type, so I fired up ubuntu-trusty-14.04-amd64-server-20160114.5 (ami-fce3c696), SSD Volume AMI Type using the same exact script.
When I tried to deploy with CodeDeploy this time, CodeDeploy wasn't reporting any events, so I ssh'd into the new instance to read the CodeDeploy logs, and found two interesting lines:
2016-04-01 20:49:25 ERROR [codedeploy-agent(2080)]: Error validating
the SSL configuration: Invalid server certificate
2016-04-01 20:49:25 ERROR [codedeploy-agent(2080)]: booting child:
error during start or run: SystemExit - Stopping CodeDeploy agent
due to SSL validation error.
- /opt/codedeploy-agent/lib/instance_agent/plugins/codedeploy/command_poller.rb:53:in `abort'
I can't seem to find anything in the docs that is useful, and the few reports of this issue that I found via Google talked about HTTP proxys and SSL environment variables. This just confused me because there's no mention of any of these things in the docs.
Does anybody know what might be going on here?
amazon-web-services
For the past year or so, I've been deploying to AMI ubuntu-trusty-14.04-amd64-server-20150325 (ami-d85e75b0) running on C3.large instances with Amazon CodeDeploy. I'm using the standard user-data script from the documentation to install the CodeDeploy agent:
#!/bin/bash
apt-get -y update
apt-get -y install awscli
apt-get -y install ruby2.0
cd /home/ubuntu
aws s3 cp s3://aws-codedeploy-us-east-1/latest/install . --region us-east-1
chmod +x ./install
./install auto
I recently found that I needed the performance offered by an M4.large, but in order to do that I needed to be running on HVM virtualization type, so I fired up ubuntu-trusty-14.04-amd64-server-20160114.5 (ami-fce3c696), SSD Volume AMI Type using the same exact script.
When I tried to deploy with CodeDeploy this time, CodeDeploy wasn't reporting any events, so I ssh'd into the new instance to read the CodeDeploy logs, and found two interesting lines:
2016-04-01 20:49:25 ERROR [codedeploy-agent(2080)]: Error validating
the SSL configuration: Invalid server certificate
2016-04-01 20:49:25 ERROR [codedeploy-agent(2080)]: booting child:
error during start or run: SystemExit - Stopping CodeDeploy agent
due to SSL validation error.
- /opt/codedeploy-agent/lib/instance_agent/plugins/codedeploy/command_poller.rb:53:in `abort'
I can't seem to find anything in the docs that is useful, and the few reports of this issue that I found via Google talked about HTTP proxys and SSL environment variables. This just confused me because there's no mention of any of these things in the docs.
Does anybody know what might be going on here?
amazon-web-services
amazon-web-services
asked Apr 1 '16 at 22:57
wheresmycookiewheresmycookie
1112
1112
Check if the E2C instance has internet access. It can be the cause of your problem. Best, RMRodrigues
– rmrodrigues
May 9 '16 at 15:18
@rmrodrigues is right (at least in my case). It was down to my VPC routing improperly set up, so the new instance didn't have any Internet access.
– Shayan Khan
Sep 27 '17 at 6:57
add a comment |
Check if the E2C instance has internet access. It can be the cause of your problem. Best, RMRodrigues
– rmrodrigues
May 9 '16 at 15:18
@rmrodrigues is right (at least in my case). It was down to my VPC routing improperly set up, so the new instance didn't have any Internet access.
– Shayan Khan
Sep 27 '17 at 6:57
Check if the E2C instance has internet access. It can be the cause of your problem. Best, RMRodrigues
– rmrodrigues
May 9 '16 at 15:18
Check if the E2C instance has internet access. It can be the cause of your problem. Best, RMRodrigues
– rmrodrigues
May 9 '16 at 15:18
@rmrodrigues is right (at least in my case). It was down to my VPC routing improperly set up, so the new instance didn't have any Internet access.
– Shayan Khan
Sep 27 '17 at 6:57
@rmrodrigues is right (at least in my case). It was down to my VPC routing improperly set up, so the new instance didn't have any Internet access.
– Shayan Khan
Sep 27 '17 at 6:57
add a comment |
1 Answer
1
active
oldest
votes
I had this same problem. CodeDeploy had been working for a couple years with various personal projects on the same server. Last week, I noticed any attempted deployment failed with this error.
All of the (scant) advice found online was either not applicable or didn't do anything. I had no special SSL environment variables set. I had the latest version of the codedeploy agent. I even updated everything with yum update
.
Solution: Restart the server.
No joke.
I had enabled verbose logs in /etc/codedeploy-agent/conf/codedeployagent.yml
, and I restarted the server just to make sure it took effect. All deployments began working again.
Have you tried turning it off and turning it back on again?
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f767680%2famazon-codedeploy-failing-on-invalid-certificate%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I had this same problem. CodeDeploy had been working for a couple years with various personal projects on the same server. Last week, I noticed any attempted deployment failed with this error.
All of the (scant) advice found online was either not applicable or didn't do anything. I had no special SSL environment variables set. I had the latest version of the codedeploy agent. I even updated everything with yum update
.
Solution: Restart the server.
No joke.
I had enabled verbose logs in /etc/codedeploy-agent/conf/codedeployagent.yml
, and I restarted the server just to make sure it took effect. All deployments began working again.
Have you tried turning it off and turning it back on again?
New contributor
add a comment |
I had this same problem. CodeDeploy had been working for a couple years with various personal projects on the same server. Last week, I noticed any attempted deployment failed with this error.
All of the (scant) advice found online was either not applicable or didn't do anything. I had no special SSL environment variables set. I had the latest version of the codedeploy agent. I even updated everything with yum update
.
Solution: Restart the server.
No joke.
I had enabled verbose logs in /etc/codedeploy-agent/conf/codedeployagent.yml
, and I restarted the server just to make sure it took effect. All deployments began working again.
Have you tried turning it off and turning it back on again?
New contributor
add a comment |
I had this same problem. CodeDeploy had been working for a couple years with various personal projects on the same server. Last week, I noticed any attempted deployment failed with this error.
All of the (scant) advice found online was either not applicable or didn't do anything. I had no special SSL environment variables set. I had the latest version of the codedeploy agent. I even updated everything with yum update
.
Solution: Restart the server.
No joke.
I had enabled verbose logs in /etc/codedeploy-agent/conf/codedeployagent.yml
, and I restarted the server just to make sure it took effect. All deployments began working again.
Have you tried turning it off and turning it back on again?
New contributor
I had this same problem. CodeDeploy had been working for a couple years with various personal projects on the same server. Last week, I noticed any attempted deployment failed with this error.
All of the (scant) advice found online was either not applicable or didn't do anything. I had no special SSL environment variables set. I had the latest version of the codedeploy agent. I even updated everything with yum update
.
Solution: Restart the server.
No joke.
I had enabled verbose logs in /etc/codedeploy-agent/conf/codedeployagent.yml
, and I restarted the server just to make sure it took effect. All deployments began working again.
Have you tried turning it off and turning it back on again?
New contributor
New contributor
answered 7 mins ago
musicin3dmusicin3d
1012
1012
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f767680%2famazon-codedeploy-failing-on-invalid-certificate%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Check if the E2C instance has internet access. It can be the cause of your problem. Best, RMRodrigues
– rmrodrigues
May 9 '16 at 15:18
@rmrodrigues is right (at least in my case). It was down to my VPC routing improperly set up, so the new instance didn't have any Internet access.
– Shayan Khan
Sep 27 '17 at 6:57