Comments (18)
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.
I can reproduce this issue with bucket name containing dot.
from git-s3.
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.
Same problem when use against a static web hosting bucket
from git-s3.
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.
@arvinkx thanks for the discovery
from git-s3.
from git-s3.
Maybe a dumb question, but how do I resolve this on my computer? Update Git-s3?
from git-s3.
@zomerfeld composer global update schickling/git-s3:dev-master
from git-s3.
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.
f9a16c7 means it's already up to date
from git-s3.
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.
Any idea why or other information needed to help resolve it?
from git-s3.
Without posting your Access Keys, whats your configuration look like?
from git-s3.
(with slight modifications):
region: us-east-1
bucket: bucketz.org
path: /Users/igor/Dropbox/Projects/bucketz/bootstrap-3.1.1/dist/
from git-s3.
Any clues?
from git-s3.
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.
Closing, this is old. Don't use dots in your bucket names and pay attention to your region.
from git-s3.
Related Issues (16)
- YAML:Parse and DialogHelper are both deprecated.
- Ignore config.yml in deployment or leave private HOT 5
- Git Exception on Windows HOT 2
- Subfolder
- Cannot install when there's already symfony/console 3.x installed
- Write command tests
- [Exception] Invalid path HOT 3
- Deploying git ignored files HOT 1
- Windows file upload references not creating directories in s3 bucket
- Any idea whats going on here ? HOT 1
- Invalid handle provided
- eu-central-1 is not a valid region for Amazon Simple Storage Service
- Multiple buckets at same time? HOT 1
- Does git-s3 support IAM Roles? HOT 3
- deploy returning NotImplementedException HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-s3.