Error Compiling CSS Asset

Steffan Perry picture Steffan Perry · Feb 9, 2012 · Viewed 9.3k times · Source

I have been trying to deploy a Rail 3.1.1 app on CentOS 6

This is the error I am getting

Error Compiling CSS
Errno::ENOENT: No Such File or Directory - /var/www/vhosts/MySite/MyAPP/tmp/cache/assets/sprockets%t43t34t34t...t34t-r32r-r23.lock

/usr/local/lib/ruby/1.9.1/tempfile.rb:343:in 'rmdir'

I appreciate the help.

Answer

Steffan Perry picture Steffan Perry · Feb 15, 2012

There were actually 2 problems. First the permissions were wrong. and secondly like Nerian said, you have to clear your tmp folder.

To set the correct permissions

chown apache.root yourapp -R
chmod 755 yourapp -R

To clear you tmp folder

rake tmp:pids:clear             
rake tmp:sessions:clear
rake tmp:sockets:clear
rake tmp:cache:clear