ruby on rails - Status code 500 Paperclip amazon s3 connection refused - (Connection refused - connect(2) for "bucket.s3.amazonaws.com" port 443 -


paperclip can't seem connect amazon s3 bucket instance gives error -

*** exception errno::econnrefused in rack application object (connection refused - connect(2) "bucket-images-test.s3.amazonaws.com" port 443)  

my production.rb looks this:

config.paperclip_defaults = {       :storage => :s3,       :s3_credentials => {           :bucket => 'bucket-images',           :access_key_id => 'accesskey',           :secret_access_key => 'seceretkey',            :host_name => 's3-website-us-east-1'       },       :default_url => "/missing.png",       :path => "/:attachment/:id/:style/:filename",       :url => "/:attachment/:id/:style/:filename"   } 

i'm using:

  • paperclip version 4.2.0
  • aws-sdk version 1.63
  • aws-sdk-resources version 2

the problem gems , iptables gemfile

gem 'paperclip', '~> 4.2.0' gem 'aws-sdk', '~> 1.5.8' gem 'aws-sdk-resources '~> 2' 

also blocking port 443 had change iptables:

chain input (policy accept) target     prot opt source               destination          accept     tcp  --  anywhere             anywhere             tcp spt:http  chain forward (policy accept) target     prot opt source               destination           chain output (policy accept) target     prot opt source               destination          accept     tcp  --  anywhere             anywhere             tcp dpt:http 

Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -