title: application.js not loading on rails app; Failed to clear tmp storage. Security Error ; Chrome
body: <p>I have a rails app (on the dev server) and the <code>application.js</code> file is not loaded from the browser. When I make a direct call to the <code>application.js</code> file from the browser ex: <code>myapp.com/assets/application.js-fingerprint</code> it loads the javascript. </p>
  
  <p>I have done the following and I suspect I may have done certain things incorrectly. </p>
  
  <ol>
  <li>I deployed the app on the dev server</li>
  <li>Ran <code>RAILS_ENV='dev' bundle exec rake assets:clean</code></li>
  <li>After that <code>RAILS_ENV='dev' bundle exec rake assets:clobber</code></li>
  <li>Finally <code>RAILS_ENV='dev' bundle exec rake assets:precompile</code></li>
  <li><code>touch tmp/restart.txt</code> (to restart passenger)</li>
  <li><code>sudo service httpd restart</code> (while I know it's redundant to restart apache, I still went ahead and did so)</li>
  </ol>
  
  <p>I use Apache, Rails 4.0, Capistrano 2.X. </p>
  
  <p>I would really appreciate if anyone could point me in the right direction.</p>
  
  <p>Update: </p>
  
  <ol>
  <li>It's an AWS instance running Amazon linux (flavour of CentOS)</li>
  <li>I get the following message on the javascript console on chrome developer tools.</li>
  </ol>
  
  <blockquote>
    <p>Failed to clear temp storage: It was determined that certain files
    are unsafe for access within a Web application, or that too many calls
    are being made on file resources. SecurityError</p>
  </blockquote>