It started working again after I wrote my initializer, like this, after overcoming several problems, I think the AWS endpoints have changed:
CarrierWave.configure do |config| config.fog_credentials = { :provider => 'AWS', :aws_access_key_id => ENV['S3_KEY'], :aws_secret_access_key => ENV['S3_SECRET'], :endpoint => "https://s3.amazonaws.com", :region => ENV['S3_REGION'] } config.fog_directory = ENV['S3_BUCKET'] end
Also, I thought my region was "us-west-2" looking at my AWS administration console, but it only started working when I switched to "eu-west-1".
Later I realized that this endpoint should not be indicated; in fact, it is better to leave it in this situation. In any case, having switched to the carrier wave, as indicated by Lobati, she solved the problem.
source share