title: [fog][WARNING] Unable to fetch credentials: No route to host - connect(2) -(Errno::EHOSTUNREACH)
body: <p>Hi I configured carrierwave with amazon s3 in ruby on rails. In the console show me this message</p>
  
  <p>[fog][WARNING] Unable to fetch credentials: No route to host - connect(2) -(Errno::EHOSTUNREACH)</p>
  
  <p>And my app is lag to load, but when i tried to upload a file the application hangs but the file is upload correct in the bucket.</p>
  
  <p>this is my config s3. initializer.</p>
  
  <pre><code>CarrierWave.configure do |config|
    config.fog_provider = 'fog/aws'                        # required
    config.fog_credentials = {
      provider:              'AWS',                        # required
      aws_access_key_id:     'AK******',                        # required unless using use_iam_profile
      aws_secret_access_key: 'rKI********',                        # required unless using use_iam_profile
      use_iam_profile:       true,                         # optional, defaults to false
      region:                'us-east-2'                  # optional, defaults to 'us-east-1'
  
    }
    config.fog_directory  = '&lt;name of bucked&gt;'                                      # required
    config.fog_public     = false                                                 # optional, defaults to true
    config.fog_attributes = { cache_control: "public, max-age=#{365.days.to_i}" } # optional, defaults to {}
  end
  </code></pre>