Forbidden access..?

285 views
Skip to first unread message

Angel Vera

unread,
Oct 2, 2011, 7:08:59 AM10/2/11
to jets3t...@googlegroups.com
Since a maybe a week or two ago, I am receiving forbidden access to my bucket. I check that that the access code and key are correct, I also check that I can access the tool using a different tool (and it worked), I am not sure what else can the problem .

I am running sync using cron and this is the error I get:

UP Local [/opt/bin] => S3[gunfus-raw/opt/bin]
 WARN [org.jets3t.service.impl.rest.httpclient.RestS3Service] Unable to access bucket: gunfus-raw
org.jets3t.service.S3ServiceException: S3 HEAD request failed. ResponseCode=403, ResponseMessage=Forbidden
    at org.jets3t.service.impl.rest.httpclient.RestS3Service.performRequest(RestS3Service.java:339)
    at org.jets3t.service.impl.rest.httpclient.RestS3Service.performRestHead(RestS3Service.java:488)
    at org.jets3t.service.impl.rest.httpclient.RestS3Service.isBucketAccessible(RestS3Service.java:714)
    at org.jets3t.apps.synchronize.Synchronize.run(Synchronize.java:732)
    at org.jets3t.apps.synchronize.Synchronize.main(Synchronize.java:1074)
 WARN [org.jets3t.service.impl.rest.httpclient.RestS3Service] Unable to access bucket: gunfus-raw
org.jets3t.service.S3ServiceException: S3 HEAD request failed. ResponseCode=403, ResponseMessage=Forbidden
    at org.jets3t.service.impl.rest.httpclient.RestS3Service.performRequest(RestS3Service.java:339)
    at org.jets3t.service.impl.rest.httpclient.RestS3Service.performRestHead(RestS3Service.java:488)
    at org.jets3t.service.impl.rest.httpclient.RestS3Service.isBucketAccessible(RestS3Service.java:714)
    at org.jets3t.service.S3Service.createBucket(S3Service.java:499)
    at org.jets3t.apps.synchronize.Synchronize.run(Synchronize.java:734)
    at org.jets3t.apps.synchronize.Synchronize.main(Synchronize.java:1074)
Exception in thread "main" org.jets3t.apps.synchronize.SynchronizeException: Unable to create/connect to S3 bucket: gunfus-raw
    at org.jets3t.apps.synchronize.Synchronize.run(Synchronize.java:739)
    at org.jets3t.apps.synchronize.Synchronize.main(Synchronize.java:1074)
Caused by: org.jets3t.service.S3ServiceException: S3 PUT failed. XML Error Message: <?xml version="1.0" encoding="UTF-8"?><Error><Code>RequestTimeTooSkewed</Code><Message>The difference between the request time and the current time is too large.</Message><MaxAllowedSkewMilliseconds>900000</MaxAllowedSkewMilliseconds><RequestId>7B4D53F87675AB76</RequestId><HostId>BxtUAk20sAK1R2cWstlppkUlAh2WWVUlnzWR752b/av1NU9XJtrOEd8WTceLCizg</HostId><RequestTime>Sun, 02 Oct 2011 10:49:07 GMT</RequestTime><ServerTime>2011-10-02T11:04:57Z</ServerTime></Error>
    at org.jets3t.service.impl.rest.httpclient.RestS3Service.performRequest(RestS3Service.java:299)
    at org.jets3t.service.impl.rest.httpclient.RestS3Service.performRestPut(RestS3Service.java:565)
    at org.jets3t.service.impl.rest.httpclient.RestS3Service.createObjectImpl(RestS3Service.java:972)
    at org.jets3t.service.impl.rest.httpclient.RestS3Service.createBucketImpl(RestS3Service.java:893)
    at org.jets3t.service.S3Service.createBucket(S3Service.java:654)
    at org.jets3t.service.S3Service.createBucket(S3Service.java:506)
    at org.jets3t.apps.synchronize.Synchronize.run(Synchronize.java:734)
    ... 1 more

 

James Murty

unread,
Oct 2, 2011, 12:25:48 PM10/2/11
to jets3t...@googlegroups.com
The error message describes the root problem in this section:

Caused by: org.jets3t.service.S3ServiceException: S3 PUT failed. XML
Error Message: <?xml version="1.0"
encoding="UTF-8"?><Error><Code>RequestTimeTooSkewed</Code><Message>The
difference between the request time and the current time is too
large.</Message><MaxAllowedSkewMilliseconds>900000</MaxAllowedSkewMilliseconds><RequestId>7B4D53F87675AB76</RequestId><HostId>BxtUAk20sAK1R2cWstlppkUlAh2WWVUlnzWR752b/av1NU9XJtrOEd8WTceLCizg</HostId><RequestTime>Sun,
02 Oct 2011 10:49:07
GMT</RequestTime><ServerTime>2011-10-02T11:04:57Z</ServerTime></Error>

Your computer's clock time has drifted until it is more than 15
minutes (900 seconds) too slow. Correcting your comptuer's clock
should fix it.

JetS3t tries to compensate for this kind of clock drift but the best
fix is to make sure your computer's clock time is always accurate.

James

> --
> You received this message because you are subscribed to the Google Groups
> "JetS3t Users" group.
> To post to this group, send email to jets3t...@googlegroups.com.
> To unsubscribe from this group, send email to
> jets3t-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/jets3t-users?hl=en.
>

Reply all
Reply to author
Forward
0 new messages