What does BucketAlreadyOwnedByYou (from Amazon S3) mean? I can not find the reasons that affect me

I am using Amazon S3 to back up the mysql database of a Rails application. And I use a secure plugin for this, and I got "Your previous request to create a named bucket with success, and you already own it. (AWS :: S3 :: BucketAlreadyOwnedByYou)" when I try to update it.

I checked that the folder in which I want to back up is already in my account. It is simply that I cannot load files from code (using safe ones for astral).

OK. When i run this code

sudo astrails-safe / Users / pww / sites / web _apps / myapp / trunk / lib / backup / local.rb

I got the following error.

/opt/local/lib/ruby/gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/error.rb:38:in `raise': Your previous request to create the named bucket succeeded and you already own it. (AWS::S3::BucketAlreadyOwnedByYou)
    from /opt/local/lib/ruby/gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/base.rb:72:in `request'
    from /opt/local/lib/ruby/gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/base.rb:88:in `put'
    from /opt/local/lib/ruby/gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/bucket.rb:79:in `create'
    from /opt/local/lib/ruby/gems/1.8/gems/astrails-safe-0.2.7/lib/astrails/safe/s3.rb:29:in `save'
    from /opt/local/lib/ruby/1.8/benchmark.rb:308:in `realtime'
    from /opt/local/lib/ruby/gems/1.8/gems/astrails-safe-0.2.7/lib/astrails/safe/s3.rb:28:in `save'
    from /opt/local/lib/ruby/gems/1.8/gems/astrails-safe-0.2.7/lib/astrails/safe/sink.rb:8:in `process'
    from /opt/local/lib/ruby/gems/1.8/gems/astrails-safe-0.2.7/lib/astrails/safe/backup.rb:15:in `run'
    from /opt/local/lib/ruby/gems/1.8/gems/astrails-safe-0.2.7/lib/astrails/safe/backup.rb:12:in `each'
    from /opt/local/lib/ruby/gems/1.8/gems/astrails-safe-0.2.7/lib/astrails/safe/backup.rb:12:in `run'
    from /opt/local/lib/ruby/gems/1.8/gems/astrails-safe-0.2.7/lib/astrails/safe.rb:53:in `safe'
    from /opt/local/lib/ruby/gems/1.8/gems/astrails-safe-0.2.7/lib/astrails/safe/config/node.rb:51:in `each'
    from /opt/local/lib/ruby/gems/1.8/gems/astrails-safe-0.2.7/lib/astrails/safe/config/node.rb:51:in `each'
    from /opt/local/lib/ruby/gems/1.8/gems/astrails-safe-0.2.7/lib/astrails/safe.rb:52:in `safe'
    from /opt/local/lib/ruby/gems/1.8/gems/astrails-safe-0.2.7/lib/astrails/safe.rb:46:in `each'
    from /opt/local/lib/ruby/gems/1.8/gems/astrails-safe-0.2.7/lib/astrails/safe.rb:46:in `safe'
    from /Users/phyowaiwin/sites/web_apps/myapp/trunk/lib/backup/local.rb:1
    from /opt/local/lib/ruby/gems/1.8/gems/astrails-safe-0.2.7/bin/astrails-safe:50:in `load'
    from /opt/local/lib/ruby/gems/1.8/gems/astrails-safe-0.2.7/bin/astrails-safe:50:in `main'
    from /opt/local/lib/ruby/gems/1.8/gems/astrails-safe-0.2.7/bin/astrails-safe:53
    from /opt/local/bin/astrails-safe:19:in `load'
    from /opt/local/bin/astrails-safe:19

The code in local.rb is as follows.

safe do

  local do
    path "/backup/:kind"
  end


  s3 do
     key "mykey"
     secret "mysecret"
     bucket "myapp-local-backup"
     path ":kind/:id" # this is default
  end


  keep do
    local 100
    s3 100
    mysqldump 100
  end

  # backup mysql databases with mysqldump
  mysqldump do
    # you can override any setting from parent in a child:
    options "-ceKq --single-transaction --create-options"

    user "root"
    password ""
    # host "localhost"
    # port 3306
    socket "/tmp/mysql.sock"
    database :myapp_development


  end

  tar do
    options "-h" # uncomment this to dereference symbolic links

    archive "myapp-local-com" do
      files "~/sites/web_apps/myapp/branches"
    end

  end



end

Any help would be appreciated!

Thank.

+3
1

, , " " . , .

S3 Firefox Organizer plugin/addon, , .

, .

.

+1

Source: https://habr.com/ru/post/1739638/


All Articles