I have an application , that uses Carrierwave to upload the pictures on Rackspace. It is absolutely strange the error I get every 20 hours on the production server . It is related with authorization . Here is the log :
Completed 500 Internal Server Error in 6531ms
Excon::Errors::Unauthorized (Expected(201) <=> Actual(401 Unauthorized)
request => {:connect_timeout=>60, :headers=>{"Content-Type"=>"image/jpeg",
"X-Auth-Token"=>"my-auth-token", "Content-Length"=>439253,
"Host"=>"clouddrive.com:443"}, :instrumentor_name=>"excon", :mock=>false, :read_timeout=>60, :retry_limit=>4, :ssl_ca_file=>.....response => #<Excon::Response:0xblah7420
@body="401 Unauthorized\n\nThis server could not
verify that you are authorized to access the document you requested.
Either you supplied the wrong credentials (e.g., bad password),
or your browser does not understand how to supply the credentials required.\n\n
My credentials are Ok , because after restart of Unicorn on the production machine , everything is fine .
I've searched the log messages , but all the things I've found are related to the module Excon , which , it seems , is under development .
I suggest if the restart solves the problem , probably I should make correction on TTL or some setting of my Rackspace ClousFiles .
Any help is appreciated.
This bug was fixed in Fog v1.4. Have you updated your gems recently?