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

Unable to build using rancher-compose and S3 builds #1796

Closed
gmeans opened this issue Aug 14, 2015 · 9 comments
Closed

Unable to build using rancher-compose and S3 builds #1796

gmeans opened this issue Aug 14, 2015 · 9 comments

Comments

@gmeans
Copy link

gmeans commented Aug 14, 2015

When trying to 'create' services using rancher-compose, I'm receiving this:

▶ rancher-compose -p <project> create
INFO[0000] Creating service web
INFO[0000] Uploading build for web using provider S3
ERRO[0001] Failed Creating web : :
    status code: 403, request id: []
ERRO[0001] Failed to start: web : :
    status code: 403, request id: []
FATA[0001] :
    status code: 403, request id: []

I had an issue w/ the project name (the directory) having a period in it so had to use the -p flag.

I'm guessing it's having an issue authenticating. I have my env vars for AWS configured correctly and am able to run commands using the AWS CLI. I don't see anything in S3 to indicate rancher uploaded anything however.

@vincent99
Copy link
Contributor

You need an API key for Rancher (from the API & Keys section of the UI underneath the user icon in the header) to use rancher-compose to start containers. It doesn't use AWS credentials to talk to Rancher because we're not Amazon :-)

403 does indeed mean "Forbidden", that is you sent credentials but they were not accepted.

@ibuildthecloud
Copy link
Contributor

@vincent99 We use S3 to upload builds so if you're doing builds you need both AWS and Rancher credentials set up.

@vincent99
Copy link
Contributor

d'oh... I read rancher-compose up, not create. Never mind...

@wlan0
Copy link

wlan0 commented Aug 24, 2015

@gmeans Are you still facing this issue?

If so, could you paste your docker-compose.yml and rancher-compose.yml in here?

@deniseschannon
Copy link

@gmeans If you would still like help, please re-open and provide the docker-compose.yml and rancher-compose.yml files.

@lewistaylor
Copy link

@gmeans this is not a rancher issue, I had the same problem but it was because the permissions on the bucket created did not match the IAM user I was uploading with.

@ryaninvents
Copy link

@lewistaylor would you mind posting what you had to change as far as IAM permissions to get it to work? I'm facing the same issue and documentation seems light on the subject.

@lewistaylor
Copy link

@r24y I forget now, but I believe it was on the bucket permissions itself, not the IAM user.

As to how or why it got into that situation, that probably is a separate issue report, but one I haven't felt necessary to start given the problem hasn't happened since.

@ryaninvents
Copy link

Thanks. I'll dig a bit and leave what I find here for the next person.

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

No branches or pull requests

7 participants