{"action":"created","issue":{"url":"https://api.github.com/repos/s3tools/s3cmd/issues/762","repository_url":"https://api.github.com/repos/s3tools/s3cmd","labels_url":"https://api.github.com/repos/s3tools/s3cmd/issues/762/labels{/name}","comments_url":"https://api.github.com/repos/s3tools/s3cmd/issues/762/comments","events_url":"https://api.github.com/repos/s3tools/s3cmd/issues/762/events","html_url":"https://github.com/s3tools/s3cmd/issues/762","id":165610825,"number":762,"title":"S3 error: 403 (AccessDenied): Access Denied","user":{"login":"komalsrathi","id":7000615,"avatar_url":"https://avatars.githubusercontent.com/u/7000615?v=3","gravatar_id":"","url":"https://api.github.com/users/komalsrathi","html_url":"https://github.com/komalsrathi","followers_url":"https://api.github.com/users/komalsrathi/followers","following_url":"https://api.github.com/users/komalsrathi/following{/other_user}","gists_url":"https://api.github.com/users/komalsrathi/gists{/gist_id}","starred_url":"https://api.github.com/users/komalsrathi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/komalsrathi/subscriptions","organizations_url":"https://api.github.com/users/komalsrathi/orgs","repos_url":"https://api.github.com/users/komalsrathi/repos","events_url":"https://api.github.com/users/komalsrathi/events{/privacy}","received_events_url":"https://api.github.com/users/komalsrathi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-14T17:04:02Z","updated_at":"2016-07-14T20:28:17Z","closed_at":"2016-07-14T20:28:17Z","body":"Hi,\r\n \r\nI am trying to perform ls/get operations on a publicly accessible s3 bucket: s3://cgl-rnaseq-recompute-fixed\r\n \r\n```\r\n$ s3cmd --configure\r\n# I put my access key and secret key and the configuration worked because I got this message at the end:\r\nTest access with supplied credentials? [Y/n] Y\r\nPlease wait, attempting to list all buckets...\r\nSuccess. Your access key and secret key worked fine :-)\r\n​\r\nNow verifying that encryption works...\r\nSuccess. Encryption and decryption worked fine :-)\r\n​\r\n# When I try to list the contents of the bucket, it says access denied\r\n$ s3cmd --requester-pays ls s3://cgl-rnaseq-recompute-fixed\r\nERROR: Access to bucket 'cgl-rnaseq-recompute-fixed' was denied\r\nERROR: S3 error: 403 (AccessDenied): Access Denied\r\n\r\n# I got this using --debug parameter\r\nDEBUG: Sending request method_string='GET', uri='/?delimiter=/', headers={'x-amz-content-sha256': 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', 'x-amz-request-payer': 'requester', 'Authorization': 'AWS4-HMAC-SHA256 Credential=**************/20160714/us-west-2/s3/aws4_request,SignedHeaders=host;x-amz-content-sha256;x-amz-date;x-amz-request-payer,Signature=f5d55ac903eb2a968007653f3f4d28beac8fe0d920da0e629a4fd5c44ccd2f66', 'x-amz-date': '20160714T170216Z'}, body=(0 bytes)\r\nDEBUG: Response: {'status': 403, 'headers': {'x-amz-bucket-region': 'us-west-2', 'x-amz-request-charged': 'requester', 'x-amz-id-2': 'YcGsGclBPXIUWUNWG1CS3xiyXvbKuUzIvaSXfIqCW7W56AvqZPryPLvYJiNJiI4GnJc5M0W1AcE=', 'server': 'AmazonS3', 'transfer-encoding': 'chunked', 'x-amz-request-id': '77B29892B083D287', 'date': 'Thu, 14 Jul 2016 17:02:15 GMT', 'content-type': 'application/xml'}, 'reason': 'Forbidden', 'data': '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\\n<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>77B29892B083D287</RequestId><HostId>YcGsGclBPXIUWUNWG1CS3xiyXvbKuUzIvaSXfIqCW7W56AvqZPryPLvYJiNJiI4GnJc5M0W1AcE=</HostId></Error>'}\r\n```\r\n\r\nJust an FYI, I can list/get the contents of a bunch of buckets that I have access to.\r\n \r\nAny help would be much appreciated!"},"comment":{"url":"https://api.github.com/repos/s3tools/s3cmd/issues/comments/232782462","html_url":"https://github.com/s3tools/s3cmd/issues/762#issuecomment-232782462","issue_url":"https://api.github.com/repos/s3tools/s3cmd/issues/762","id":232782462,"user":{"login":"komalsrathi","id":7000615,"avatar_url":"https://avatars.githubusercontent.com/u/7000615?v=3","gravatar_id":"","url":"https://api.github.com/users/komalsrathi","html_url":"https://github.com/komalsrathi","followers_url":"https://api.github.com/users/komalsrathi/followers","following_url":"https://api.github.com/users/komalsrathi/following{/other_user}","gists_url":"https://api.github.com/users/komalsrathi/gists{/gist_id}","starred_url":"https://api.github.com/users/komalsrathi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/komalsrathi/subscriptions","organizations_url":"https://api.github.com/users/komalsrathi/orgs","repos_url":"https://api.github.com/users/komalsrathi/repos","events_url":"https://api.github.com/users/komalsrathi/events{/privacy}","received_events_url":"https://api.github.com/users/komalsrathi/received_events","type":"User","site_admin":false},"created_at":"2016-07-14T20:28:17Z","updated_at":"2016-07-14T20:28:17Z","body":"Ok, I did not have the correct permissions for the AWS account. Closing it here."}}
{"actor":{"display_login":"komalsrathi"}}