Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error Compiling CSS Asset

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.

like image 636
Steffan Perry Avatar asked Feb 09 '12 21:02

Steffan Perry


1 Answers

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
like image 99
Steffan Perry Avatar answered Oct 14 '22 03:10

Steffan Perry