S3Sync.net
February 02, 2014, 01:19:22 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
S3Sync.net
>
General Category
>
General Discussion
>
403 Forbidden
Pages: [
1
]
« previous
next »
Print
Author
Topic: 403 Forbidden (Read 8856 times)
matraex
Newbie
Posts: 6
403 Forbidden
«
on:
May 16, 2008, 03:56:31 PM »
Here's what I'm running.
Ruby - 1.8.5
s3sync - latest - downloaded from s3.amazonaws.com/ yesterday
OS: Debian
Here's what I tried to run. I made a local folder at /etc/s3sync/localuploadfolder & I made a folder on S3 "testingatempfolder"
cedar:/etc/s3sync# ruby s3sync.rb -r -d --ssl --delete /etc/s3sync/localuploadfolder/ mybucket:/testingatempfolder
s3Prefix /testingatempfolder
localPrefix /etc/s3sync/localuploadfolder/
localTreeRecurse /etc/s3sync/localuploadfolder
Test /etc/s3sync/localuploadfolder/testingthisfile.txt
local item /etc/s3sync/localuploadfolder/testingthisfile.txt
local node object init. Name:testingthisfile.txt Path:/etc/s3sync/localuploadfolder/testingthisfile.txt Size:34 Tag:071a898d2663f7bc83761a0435790209 Date:Thu May 15 22:30:44 UTC 2008
s3TreeRecurse mybucket /testingatempfolder
Creating new connection
Trying command list_bucket mybucket max-keys 200 prefix /testingatempfolder delimiter / with 100 retries left
Response code: 403
S3 command failed:
list_bucket max-keys 200 prefix /testingatempfolder delimiter /
With result 403 Forbidden
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>D3AA59A933A022B9</RequestId><HostId>BF/3yMC4DfQBOp/rzV38z0uCQnB7IkPKO4TCsUsekmMtjT6PK0GY5+yu3mNshlOv</HostId></Error>
S3 ERROR: #<Net::HTTPForbidden:0x406005dc>
s3sync.rb:290:in `+': can't convert nil into Array (TypeError)
from s3sync.rb:290:in `s3TreeRecurse'
from s3sync.rb:346:in `main'
from ./thread_generator.rb:79:in `call'
from ./thread_generator.rb:79:in `initialize'
from ./thread_generator.rb:76:in `new'
from ./thread_generator.rb:76:in `initialize'
from s3sync.rb:267:in `new'
from s3sync.rb:267:in `main'
from s3sync.rb:735
«
Last Edit: May 16, 2008, 04:05:47 PM by matraex
»
Logged
ferrix
Sr. Member
Posts: 363
(I am greg13070 on AWS forum)
Re: 403 Forbidden
«
Reply #1 on:
May 18, 2008, 08:14:51 AM »
mybucket:/testingatempfolder is incorrect
use mybucket:testingatempfolder
Logged
matraex
Newbie
Posts: 6
Re: 403 Forbidden
«
Reply #2 on:
May 19, 2008, 01:29:47 PM »
Thanks ferrix I tried and it didn't work.
cedar:/etc/s3sync# ruby s3sync.rb -d /etc/s3sync/localuploadfolder/ mybucket:testingatempfolder s3Prefix testingatempfolder
localPrefix /etc/s3sync/localuploadfolder/
localTreeRecurse /etc/s3sync/localuploadfolder
Test /etc/s3sync/localuploadfolder/testingthisfile.txt
local item /etc/s3sync/localuploadfolder/testingthisfile.txt
local node object init. Name:testingthisfile.txt Path:/etc/s3sync/localuploadfolder/testingthisfile.txt Size:34 Tag:071a898d2663f7bc83761a0435790209 Date:Thu May 15 22:30:44 UTC 2008
s3TreeRecurse mybucket testingatempfolder
Creating new connection
Trying command list_bucket mybucket max-keys 200 prefix testingatempfolder delimiter / with 100 retries left
Response code: 403
S3 command failed:
list_bucket max-keys 200 prefix testingatempfolder delimiter /
With result 403 Forbidden
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>B83BCAA691A4FF99</RequestId><HostId>KAc83VZYsE9ZHA6QOeD/jJ3eabHFzDovm19tHm4vNKWtS8FGn8eaP3zTGTH8pIY9</HostId></Error>
S3 ERROR: #<Net::HTTPForbidden:0x40600ec4>
s3sync.rb:290:in `+': can't convert nil into Array (TypeError)
from s3sync.rb:290:in `s3TreeRecurse'
from s3sync.rb:346:in `main'
from ./thread_generator.rb:79:in `call'
from ./thread_generator.rb:79:in `initialize'
from ./thread_generator.rb:76:in `new'
from ./thread_generator.rb:76:in `initialize'
from s3sync.rb:267:in `new'
from s3sync.rb:267:in `main'
from s3sync.rb:735
Any other ideas? Thanks again.
Logged
matraex
Newbie
Posts: 6
Re: 403 Forbidden
«
Reply #3 on:
May 19, 2008, 02:26:57 PM »
I got it working.
ruby s3sync.rb --delete -d /etc/s3sync/localuploadfolder/ testingatempfolder:
I also did
ruby s3sync.rb -r --ssl --delete /etc/s3sync/localuploadfolder/ testingatempfolder:
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> Announcements
=> Questions
=> General Discussion
=> Report Bugs
===> Closed Bugs
=> Feature Requests
Loading...