Code Monkey home page Code Monkey logo

Comments (18)

bedge avatar bedge commented on May 31, 2024

I believe this is a problem with using dots in the bucket name. I re-ran the setup with a bucket name with no dots and it works as expected.
With a name of xx.xx.xx.xx, it fails, but using xx-xx-xx-xx works.

from git-s3.

brianhu avatar brianhu commented on May 31, 2024

I can reproduce this issue with bucket name containing dot.

from git-s3.

njcameron avatar njcameron commented on May 31, 2024

Im using s3 for static web hosting so I need the dot. Any idea how I can get it working with dots?

from git-s3.

heskyji avatar heskyji commented on May 31, 2024

Same problem when use against a static web hosting bucket

from git-s3.

arvinkx avatar arvinkx commented on May 31, 2024

The issue with dots seems to be due to the region not being specified when the S3Client goes to upload the files. In src/GitS3/Bucket.php on line 27 when the S3Client::factory method is called, if you add the key region with the bucket's region (ex. us-west-1) as the value to the factory method it will work with dots as well.

$this->client = S3Client::factory(array(
                'key'       => $key,
                'secret'    => $secret,
                'region'    => 'us-west-1' // Needed or else buckets with dots will throw an error
            ));

This is obviously a hack to get it to work, essentially the region needs to be written in to be used when uploading to the bucket.

from git-s3.

heskyji avatar heskyji commented on May 31, 2024

@arvinkx thanks for the discovery

from git-s3.

heskyji avatar heskyji commented on May 31, 2024

#14

from git-s3.

zomerfeld avatar zomerfeld commented on May 31, 2024

Maybe a dumb question, but how do I resolve this on my computer? Update Git-s3?

from git-s3.

heskyji avatar heskyji commented on May 31, 2024

@zomerfeld composer global update schickling/git-s3:dev-master

from git-s3.

zomerfeld avatar zomerfeld commented on May 31, 2024

Package "schickling/git-s3:dev-master" listed for update is not installed. Ignoring.

But running this:
`$ composer global licenses

`Changed current directory to /Users/zomerfeld/.composer
Name: __root__
Version: No version set (parsed as 1.0.0)
Licenses: none
Dependencies:

Name                       Version             License     
aws/aws-sdk-php            2.4.12              Apache-2.0  
cpliakas/git-wrapper       1.0.3               GPL-3.0     
guzzle/guzzle              v3.8.1              MIT         
schickling/git-s3          dev-master f9a16c7  none        
symfony/console            v2.8.1              MIT         
symfony/event-dispatcher   v2.8.1              MIT         
symfony/filesystem         v2.8.1              MIT         
symfony/finder             v2.8.1              MIT         
symfony/polyfill-mbstring  v1.0.1              MIT         
symfony/process            v2.8.1              MIT         
symfony/yaml               v2.8.1              MIT      

from git-s3.

heskyji avatar heskyji commented on May 31, 2024

f9a16c7 means it's already up to date

from git-s3.

zomerfeld avatar zomerfeld commented on May 31, 2024

I'm still getting this issue then:
[Aws\S3\Exception\PermanentRedirectException] The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this e ndpoint: "bucketz.org.s3.amazonaws.com".

from git-s3.

zomerfeld avatar zomerfeld commented on May 31, 2024

Any idea why or other information needed to help resolve it?

from git-s3.

Irishsmurf avatar Irishsmurf commented on May 31, 2024

Without posting your Access Keys, whats your configuration look like?

from git-s3.

zomerfeld avatar zomerfeld commented on May 31, 2024

(with slight modifications):
region: us-east-1
bucket: bucketz.org
path: /Users/igor/Dropbox/Projects/bucketz/bootstrap-3.1.1/dist/

from git-s3.

zomerfeld avatar zomerfeld commented on May 31, 2024

Any clues?

from git-s3.

zomerfeld avatar zomerfeld commented on May 31, 2024

Just found the solution, looking back on the thread.
The region was set incorrectly for me - the new bucket I set up was in west-1.

I guess the error was just a bit misleading!

Thank you!

from git-s3.

bedge avatar bedge commented on May 31, 2024

Closing, this is old. Don't use dots in your bucket names and pay attention to your region.

from git-s3.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.