Skip to content
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

Code deployment fails due to the instance's inability to download the bundle that was uploaded to a directory in the bucket #71

Open
jamesiarmes opened this issue Mar 10, 2016 · 3 comments
Labels
Milestone

Comments

@jamesiarmes
Copy link
Contributor

Issue by cpliakas
Monday Nov 16, 2015 at 17:58 GMT
Originally opened as https://github.com/acquia/cloud-moonshot/issues/42


When running the deploy-code command, the deployment fails. Looking in the CodeDeploy logs, I get the following message: The request signature we calculated does not match the signature you provided. Check your key and signing method..

However, when I visit the CloudDeploy console and click "Deploy this revision" for the deployment that failed, everything works fine. In other words, I am able to successfully execute the exact same deployment via the UI that fails on the command line. It uses the bundle produced by code-deploy and everything.

@jamesiarmes jamesiarmes added this to the 0.7.0 milestone Mar 10, 2016
@jamesiarmes
Copy link
Contributor Author

Comment by askreet
Monday Nov 16, 2015 at 19:36 GMT


Well, that's fun! No idea. Your instances have access to read from the release bucket, right?

If you're feeling up to it, maybe open an AWS ticket about the error you're receiving?

@jamesiarmes
Copy link
Contributor Author

Comment by askreet
Monday Nov 16, 2015 at 19:37 GMT


If we do get to the bottom of this and it's an account configuration thing, we may want to add a doctor check to validate the account configuration.

@jamesiarmes
Copy link
Contributor Author

Comment by cpliakas
Tuesday Nov 17, 2015 at 01:34 GMT


So, got some more info on this.

I was trying to put my builds in a builds directory since I use the bucket for other things related to this app e.g. ELB logs, and that caused the problem. I changed S3Bucket.new('my-service/builds') to S3Bucket.new('my-service') and deploy-code works like a charm.

Weird that the upload to S3 works perfectly but fails when the instance tries to pull it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant