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

cannot run enduro with s3 #175

Closed
jennanmchugh opened this issue Nov 10, 2017 · 7 comments
Closed

cannot run enduro with s3 #175

jennanmchugh opened this issue Nov 10, 2017 · 7 comments

Comments

@jennanmchugh
Copy link

After setting up s3, my project won't run. I get this error message. This is what happens whether I run juice pack -f, juice pull, or just enduro start.
<?xml version="1.0" encoding="UTF-8"?> <Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>juicebox/juice.json</Key><RequestId>C755B9F8AD70628E</RequestId><HostId>pChEn3ve9fmYPI5yt4GSsnjg/ZFn+oa+npQGzJve8APEEOc5L/wCLoeeyZH4JnneQ1lmz1cxqFo=</HostId></Error>

enduro.json:
{ "project_name": "daronscustombuildings", "project_slug": "dcb", "juicebox_enabled": true, "s3": { "bucket": "{my bucket name}", "region": "us-west-1" } }
enduro_secret.json:
{ "secret": { "s3": { "S3_KEY": "{IAM access key from aws}", "S3_SECRET": "{IAM secret key from aws}" } } }

Am I missing something here?
I've tried updating enduro, I've checked that juicebox is enabled and I do have a juicebox/juice.json file, and double checked that my keys are entered in correctly.
Please help!

@rnlambert7
Copy link
Contributor

rnlambert7 commented Nov 20, 2017

Are your bucket, bucket folders, and files all public and accessible? Can you go to the individual links and view the files?

@jennanmchugh
Copy link
Author

jennanmchugh commented Nov 21, 2017

When I click on my bucket, all the files are listed and I can click on them. Bucket permissions are set to public.

@jennanmchugh
Copy link
Author

Is there any way to see an example bucket set up?

@Gottwik
Copy link
Owner

Gottwik commented Nov 21, 2017

enduro website uses s3: https://github.com/Gottwik/enduro_website/blob/master/enduro.json

I think the error is saying there is no juice.json file in the bucket. Can you see if there is juicebox/juice.json in your bucket?

Could you try updating enduro(npm i enduro -g), maybe you have a weird,buggy version.

@jennanmchugh
Copy link
Author

Was able to fix the issue by manually uploading a juicebox folder and the juice.json file to my bucket. Thanks for the help. :)

@alpinstang
Copy link

alpinstang commented Mar 23, 2018

Can someone show the file and directory structure for adding this? I'm experiencing the same issue.

When I navigate to the admin page /admin I get a 404 on S3

Code: NoSuchKey Message: The specified key does not exist. Key: admin RequestId: A08306C98F7D3598 HostId: fwx3vDelTF5GB5WbmvR642zuYAmKpMEALjTP9EM/elV5KdE9/434EB+6Zar7M+m+Zhz19j6BBPQ=

@adrianObel
Copy link

@alpinstang I believe that happens when there isn't a juice.json file in the bucket. A workaround is to manually push the file once. From then on it should all work

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

5 participants