Error Compiling Css Assets Chown
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings rails error compiling css asset and policies of this site About Us Learn more about Stack Overflow
Heroku Error Compiling Css Asset
the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error Compiling CSS Asset up vote 6 down vote favorite 2 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. ruby-on-rails css errno share|improve this question asked Feb 9 '12 at 21:27 Steffan Perry 6671714 4 Clean the cache folder and try again. Just empty the tmp/ folder –Nerian Feb 9 '12 at 21:45 add a comment| 2 Answers 2 active oldest votes up vote 21 down vote 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 share|improve this answer answered Feb 15 '12 at 4:18 Steffan Perry 6671714 thanks @Steffan, solved my problem –fengd Dec 13 '12 at 9:53 Why do I not have to do this on my own computer? Is this the only way to solve it? –MichaelScaria Jan 19 '14 at 23:15 add a comment| up vote 0 down vote If you are using an Apache server you simply need to make sure the apache account www-data can make executions in the directory. chown -R www-data:www-data . ser
users. So the solution is to check what user your apache server is running as and set the PassengerDefaultUser, This worked for me. As Passenger was making files only readable by nobody, weird is that if you just refresh a few times it some how works out, but making sure they are the same user stops this error. Rails sprocket Error compiling CSS assest - CHOWN issue - Stack Overfl... View More at http://stackoverflow.com/questions/7556774/rails-sprocket-error-c... Make sure the http://stackoverflow.com/questions/9219061/error-compiling-css-asset underlying file system supports the requested operation. The following commands fixed it for me. mv public/assets /tmp ln -s /tmp/assets public/assets Rails sprocket Error compiling CSS assest - CHOWN issue - Stack Overfl... View More at http://stackoverflow.com/questions/7556774/rails-sprocket-error-c... I experienced the same error, but in development! Solved after clean and recompile assets: rake assets:clean && rake assets:precompile Rails sprocket Error compiling https://recalll.co/app/?q=Rails%20sprocket%20Error%20compiling%20CSS%20assest%20-%20CHOWN%20issue CSS assest - CHOWN issue - Stack Overfl... View More at http://stackoverflow.com/questions/7556774/rails-sprocket-error-c... I have the same problem. my solution is to modify the File Permission after precompile assets: #chown apache.root yourapp -R #chmod 755 yourapp -R Rails sprocket Error compiling CSS assest - CHOWN issue - Stack Overfl... View More at http://stackoverflow.com/questions/7556774/rails-sprocket-error-c... View More Recalll - Medium for programmers. Recalll is crowed sourced knowledge vault, where community can create, curate and access qualitative knowledge, In form of small and precise topics. Check this Out Similar queries Rails sprocket Error compiling CSS assest - CHOWN issue - Stack Overflow Rails sprocket Error compiling CSS assest - CHOWN issue - Stack Overflow Rails sprocket Error compiling CSS assest - CHOWN issue - Stack Overflow Rails sprocket Error compiling CSS assest - CHOWN issue - Stack Overflow Found the issue: CSS Fix Create Collections Add search results to the collections by just clicking on bookmark icon. Connect to Services Connect to personal services for more relevant search results across services. contact | privacy policy | terms of use © 2014-15 rec
Sign in Pricing Blog Support Search GitHub This repository Watch 57 Star 326 Fork 596 rails/sprockets Code Issues 29 Pull requests 7 Projects 0 Pulse Graphs New issue Explicit https://github.com/rails/sprockets/issues/177 error when file exists but unreadable or not valid for some reason #177 https://myrailslearnings.wordpress.com/2012/05/06/fixing-permission-denied-error-compiling-assets/ Open rafaelfranca opened this Issue Nov 23, 2015 · 4 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 3 participants Ruby on Rails member rafaelfranca commented Nov 23, 2015 From @pravi on April 11, 2015 19:56 see http://hackerheart.com/article/2013/02/undefined-method-directory-nilnilclass-while-compiling-rails-assets for sample code. Copied from error compiling original issue: sstephenson/sprockets#714 Ruby on Rails member rafaelfranca commented Nov 23, 2015 From @schneems on August 28, 2015 17:22 If this is still an active issue can you close this one and re-open it at http://github.com/rails/sprockets. Active development has moved to that repo. If you've got a bug with sprockets 3 please make sure you've tried the latest 3.3.3. If you can confirm this is error compiling css still an active issue, the fastest way to get it fixed is to create a small example app that reproduces the failure and open an issue in the new repo http://github.com/rails/sprockets. rafaelfranca referenced this issue in sstephenson/sprockets Nov 23, 2015 Closed mention missing path when sprockets can't find an asset #714 sonalkr132 commented Dec 8, 2015 Link mentioning sample code is broken. Here is the archived link of same post. Following error: NoMethodError: undefined method `directory?' for nil:NilClass seems to be stackoverflow category (1, 2, 3). Most common issue is broken symlink in assets folder or VMware sharing of files. I guess it does make sense that sprockets should report missing file error with path instead of NoMethodError sonalkr132 commented Dec 8, 2015 However, I can't duplicate the issue with edge rails (sprockets 4.0.0 7c5ff2f ). My application.css: /* *= require_self *= require broken_link */ Create a broken symlink: ln -s ~/i_do_not_exist.css app/assets/stylesheets/broken_link.css Compile assets: RAILS_ENV=production rake assets:precompile --trace Error reported was: Sprockets::FileNotFound: couldn't find file 'broken_link' with type 'text/css' I tried limiting the access rights as well: sudo chmod go-rwx app/assets/stylesheets/example.css sudo chown git:git app/assets/stylesheets/example.css Again error seemed to be valid: Errno::EACCES: Per
from a post on Stackoverflow (from the root directory in the command window): chown [username] . don't forget the period. Share this:TwitterFacebookLike this:Like Loading... Related This entry was posted on May 6, 2012 by admin. It was filed under Uncategorized and was tagged with asset pipeline, assets, permission denied, precompile, ruby on rails. → ← Comments are closed. Categories 3.1 Active Record Amazon Web Services APIs Appearance Tables Attachments Database Gems Git heroku jQuery and Javascript Performance Rails Core Syntax Testing Uncategorized 3.1 activeadmin ajax amazon amazon web services asset pipeline assets aws cache change conditional controller create css csv data date date format default devise ec2 email error errors favicon field form format gem git github helpers heroku hosts html image input java javascript jqgrid jquery link logs memcache migration model mouseover mysql mysql workbench nil null options paperclip rails rails 3 rails 3.1 remote route rspec ruby ruby on rails select simple_form sql ssl subdomain table text text field time twitter bootstrap us value view windowsRSS - PostsRSS - Comments Useful Ruby on Rails Links AppServ Github Rails Installer Railscasts The Official Ruby on Rails Site Thoughtbot Create a free website or blog at WordPress.com. %d bloggers like this: