Comments (9)
I am going crazy. My old deploy was using the 1.0.0 version of carrierwave. Tried rolling that back - no luck.
I even tried using the old server region and bucket. Same error message.
from carrierwave-aws.
I would guess that there is a mismatch between the AWS_REGION
and your CLOUDFRONT_HOST
, but that is just a guess. Since this was working before it seems like this is purely an AWS / Config issue and not a bug coming from carrierwave-aws.
from carrierwave-aws.
Thatβs the crazy part. I have tested it with the same region / keys / settings as the existing server that works - I still get the same error. Both are using the same cloud front host etc. I am just hoping someone out there may have seen this issue before.
from carrierwave-aws.
I am going to close this. I went through line by line and manually entered the config values vs vis ENV. It worked. Put the ENV back in and still works. No idea - must have been a typo on my end somewhere.
from carrierwave-aws.
Glad you figured it out π
from carrierwave-aws.
Ready to give up at this point and try fog again. The issue persists. It's not related to CloudFront. I can't upload to the non-standard region at all.
from carrierwave-aws.
Same error:
Aws::S3::Errors::PermanentRedirect: The bucket you are attempting to
access must be addressed using the specified endpoint. Please send all
future requests to this endpoint.
I stripped out all CloudFront related code - no signed URLs etc. and using local asset host.
I even added the endpoint config option.
config.aws_attributes = {
expires: 10.minutes.from_now.httpdate,
cache_control: 'max-age=600'
}
config.aws_credentials = {
access_key_id: 'XXXXX',
secret_access_key: 'YYYYYY',
region: 'ca-central-1',
endpoint: 'https://s3.ca-central-1.amazonaws.com'
}
config.enable_processing = true
config.storage = :aws
config.aws_bucket = 'my-new-ca-central-1-bucket'
config.aws_acl = :private
from carrierwave-aws.
I switched to FOG and it works with the same configuration.
from carrierwave-aws.
What a mess - I had a bucket setting in another uploaded that was triggering this. I was so focused on the uploaded that was failing that I didn't realize that was the issue. π€¦ββοΈ
from carrierwave-aws.
Related Issues (20)
- move_options triggers undefined method `>=' for nil:NilClass HOT 6
- Image updates don't work when images with same name are reuploaded HOT 1
- Uploads fail HOT 2
- uploader fails, returns 400 Bad Request errors HOT 5
- Url returns nill for versions uploaded in background HOT 1
- Release new version for Carrierwave 2.1 HOT 2
- Configure with IAM Role HOT 4
- xlsx content-type is wrong HOT 3
- Allow to use a directory inside the bucket HOT 3
- AWS SDK 2.0 is EOL HOT 10
- supports DigitalOcean Spaces? HOT 1
- Caching seems to not work HOT 1
- Could not read file contents in test environment HOT 2
- content-type octet-stream issue HOT 5
- Setting ACLs can be turned off
- Ready to CarrierWave 3.0? HOT 2
- Support for "path_style" OFFICIALLY with a flag for the s3 hosts that use MinIO, DigitalOceanSpaces, and other software that support S3 API but not the default S3 virtualhost bucket names in the URL HOT 2
- Updating a file where version has overridden `full_filename` fails HOT 1
- aws_attributes broken for ActiveSupport::OrderedOptions
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 carrierwave-aws.