Search code examples
ruby-on-rails-4amazon-web-servicescdnengineyard

ruby 4 asset fetching fails on production


Scenario: I'm uploading an image file to the server, when trying to access it, using curl, I'm getting it on every 2nd request. e.g curl http://staging.muserver.com/system/assets/images/000/000/test.png

When i am getting 200ok, i can see that i am having ETag, when it fails i can see X-Request-Id and X-Runtime.

this error happen only on the amazon pre production, on local machine i cannot reproduce it.


Solution

  • Frederick was right...i didn't setup LB...but engineyard supplied by default, when disabled, everything works fine.