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

runtime Exception #300

Closed
tomeralmog opened this Issue Jun 9, 2015 · 9 comments

Comments

Projects
None yet
2 participants
@tomeralmog

tomeralmog commented Jun 9, 2015

Hi,
I have followed all the steps, after I input my user and password I get this error:

java.io.IOException: failed to fetch / from 'mysite.com' (key=MYKEY): ["'+suffix': Status Code: 403, AWS Service: Amazon S3, AWS Request ID: null, AWS Error Code: null, AWS Error Message: null", "'+suffix': Status Code: 403, AWS Service: Amazon S3, AWS Request ID: null, AWS Error Code: null, AWS Error Message: null"]
    at com.s3auth.hosts.DefaultHost.fetch_aroundBody2(DefaultHost.java:228)
    at com.s3auth.hosts.DefaultHost$AjcClosure3.run(DefaultHost.java:1)
    at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
    at com.jcabi.aspects.aj.MethodLogger.wrap(MethodLogger.java:200)
    at com.jcabi.aspects.aj.MethodLogger.ajc$inlineAccessMethod$com_jcabi_aspects_aj_MethodLogger$com_jcabi_aspects_aj_MethodLogger$wrap(MethodLogger.java:1)
    at com.jcabi.aspects.aj.MethodLogger.wrapMethod(MethodLogger.java:156)
    at com.s3auth.hosts.DefaultHost.fetch_aroundBody4(DefaultHost.java:166)
    at com.s3auth.hosts.DefaultHost$AjcClosure5.run(DefaultHost.java:1)
    at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
    at com.jcabi.aspects.aj.MethodLogger.wrapClass(MethodLogger.java:126)
    at com.s3auth.hosts.DefaultHost.fetch(DefaultHost.java:166)
    at com.s3auth.hosts.SmartHost.fetch_aroundBody6(SmartHost.java:115)
    at com.s3auth.hosts.SmartHost$AjcClosure7.run(SmartHost.java:1)
    at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
    at com.jcabi.aspects.aj.MethodLogger.wrap(MethodLogger.java:200)
    at com.jcabi.aspects.aj.MethodLogger.ajc$inlineAccessMethod$com_jcabi_aspects_aj_MethodLogger$com_jcabi_aspects_aj_MethodLogger$wrap(MethodLogger.java:1)
    at com.jcabi.aspects.aj.MethodLogger.wrapMethod(MethodLogger.java:156)
    at com.s3auth.hosts.SmartHost.fetch_aroundBody8(SmartHost.java:100)
    at com.s3auth.hosts.SmartHost$AjcClosure9.run(SmartHost.java:1)
    at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
    at com.jcabi.aspects.aj.MethodLogger.wrapClass(MethodLogger.java:126)
    at com.s3auth.hosts.SmartHost.fetch(SmartHost.java:100)
    at com.s3auth.relay.SecuredHost.secured(SecuredHost.java:199)
    at com.s3auth.relay.SecuredHost.fetch_aroundBody0(SecuredHost.java:103)
    at com.s3auth.relay.SecuredHost$AjcClosure1.run(SecuredHost.java:1)
    at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
    at com.jcabi.aspects.aj.MethodLogger.wrap(MethodLogger.java:200)
    at com.jcabi.aspects.aj.MethodLogger.ajc$inlineAccessMethod$com_jcabi_aspects_aj_MethodLogger$com_jcabi_aspects_aj_MethodLogger$wrap(MethodLogger.java:1)
    at com.jcabi.aspects.aj.MethodLogger.wrapMethod(MethodLogger.java:156)
    at com.s3auth.relay.SecuredHost.fetch_aroundBody2(SecuredHost.java:102)
    at com.s3auth.relay.SecuredHost$AjcClosure3.run(SecuredHost.java:1)
    at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
    at com.jcabi.aspects.aj.MethodLogger.wrapClass(MethodLogger.java:126)
    at com.s3auth.relay.SecuredHost.fetch(SecuredHost.java:102)
    at com.s3auth.relay.HttpThread.resource(HttpThread.java:247)
    at com.s3auth.relay.HttpThread.dispatch(HttpThread.java:169)
    at com.s3auth.relay.HttpFacade$HttpThreadRunnable.run(HttpFacade.java:261)
    at com.jcabi.log.VerboseRunnable.run(VerboseRunnable.java:201)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at com.jcabi.log.VerboseThreads$Wrap.run(VerboseThreads.java:223)
    at java.lang.Thread.run(Thread.java:701)
@yegor256

This comment has been minimized.

Show comment
Hide comment
@yegor256

yegor256 Jun 9, 2015

Owner

@tomeralmog maybe you don't have index.html in there?

Owner

yegor256 commented Jun 9, 2015

@tomeralmog maybe you don't have index.html in there?

@tomeralmog

This comment has been minimized.

Show comment
Hide comment
@tomeralmog

tomeralmog Jun 9, 2015

I do, but it is private (I made all the html private - was that wrong?)

tomeralmog commented Jun 9, 2015

I do, but it is private (I made all the html private - was that wrong?)

@yegor256

This comment has been minimized.

Show comment
Hide comment
@yegor256

yegor256 Jun 10, 2015

Owner

@tomeralmog it's not a problem, you can keep them private, but make sure your IAM user has enough permissions to read them.

Owner

yegor256 commented Jun 10, 2015

@tomeralmog it's not a problem, you can keep them private, but make sure your IAM user has enough permissions to read them.

@tomeralmog

This comment has been minimized.

Show comment
Hide comment
@tomeralmog

tomeralmog Jun 10, 2015

I copied the permissions given in the documentation. is there anything else I have to add?

tomeralmog commented Jun 10, 2015

I copied the permissions given in the documentation. is there anything else I have to add?

@tomeralmog

This comment has been minimized.

Show comment
Hide comment
@tomeralmog

tomeralmog Jun 10, 2015

{ "Statement": [ { "Effect": "Allow", "Action": [ "s3:GetObject", "s3:GetBucketWebsite" ], "Resource": [ "arn:aws:s3:::mysite.com/*" ] } ] }

tomeralmog commented Jun 10, 2015

{ "Statement": [ { "Effect": "Allow", "Action": [ "s3:GetObject", "s3:GetBucketWebsite" ], "Resource": [ "arn:aws:s3:::mysite.com/*" ] } ] }

@yegor256

This comment has been minimized.

Show comment
Hide comment
@yegor256

yegor256 Jun 10, 2015

Owner

@tomeralmog maybe making your files "private" overwrite the permissions give by the IAM policy... I think that's how it works

Owner

yegor256 commented Jun 10, 2015

@tomeralmog maybe making your files "private" overwrite the permissions give by the IAM policy... I think that's how it works

@tomeralmog

This comment has been minimized.

Show comment
Hide comment
@tomeralmog

tomeralmog Jun 10, 2015

when I set it to public, it doesn't authenticate at all

tomeralmog commented Jun 10, 2015

when I set it to public, it doesn't authenticate at all

@tomeralmog

This comment has been minimized.

Show comment
Hide comment
@tomeralmog

tomeralmog Jun 10, 2015

Sorry, I am wrong.
It needs to be public. my browser saved the authentication info. when I try it with a different browser it works fine.

tomeralmog commented Jun 10, 2015

Sorry, I am wrong.
It needs to be public. my browser saved the authentication info. when I try it with a different browser it works fine.

@yegor256

This comment has been minimized.

Show comment
Hide comment
@yegor256

yegor256 Jun 10, 2015

Owner

@tomeralmog glad it works now. please close the ticket

Owner

yegor256 commented Jun 10, 2015

@tomeralmog glad it works now. please close the ticket

@tomeralmog tomeralmog closed this Jun 10, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment