Error Compiling Css Asset Sprockets
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the
Rails Error Compiling Css Asset
workings and policies of this site About Us Learn more about Stack heroku error compiling css asset Overflow 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
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow 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 http://stackoverflow.com/questions/9219061/error-compiling-css-asset community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Ruby on Rails, Sprockets::FileNotFound, Error compiling CSS asset up vote 1 down vote favorite I am trying to install Ruby on Rails on my Mac. When I run "Rails s" it runs fine, but http://stackoverflow.com/questions/27839891/ruby-on-rails-sprocketsfilenotfound-error-compiling-css-asset when I go to "localhost:3000" in my browser I get the following error: Error Compiling CSS asset Sprockets::FileNotFound: Couldn't find file 'unify/sliders/revolution/bg-text.png' (in /Users/user1/project/app/assets/stylesheet/unify/plugins.css.erb) /Library/Ruby/Gems/2.0.0/gems/sprockets-2.10.1/lib/sprockets/base.rb:153:in `resolve' My gemfile looks like this: source 'https://rubygems.org' ruby '2.0.0' gem 'rails', '4.0.5' gem 'meta-tags' gem 'pg' group :production do gem 'rails_12factor' end group :development do gem 'sqlite3' end group :development do # gem 'better_errors' # gem 'binding_of_caller' # gem 'pry' # gem 'sprockets_better_errors' gem 'rails-dev-tweaks', '~> 1.1' gem 'thin' end gem 'dotenv-rails', :groups => [:development, :test] gem 'sass-rails', '~> 4.0.0' gem 'compass-rails' gem 'font-awesome-sass' gem 'uglifier', '>= 1.3.0' gem 'coffee-rails', '~> 4.0.0' gem 'therubyracer' gem 'less-rails' #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS gem 'twitter-bootstrap-rails', :github => 'seyhunak/twitter-bootstrap-rails' gem 'jquery-rails' gem 'jquery-ui-rails' gem 'turbolinks' gem 'jbuilder', '~> 1.2' group :doc do gem 'sdoc', require: false end gem 'unicorn' gem 'community_engine', :git => 'https://github.com/bborn/communityengine.git', :branch => :rails4 gem 'bootstrap_form' gem 'omniauth-facebook', '~> 1.6.0' gem 'omniauth-twitter' gem 'json' gem 'rest
Issues http://guides.rubyonrails.org/asset_pipeline.html 201 Merge Requests 27 Network Create a new issue Commits Issue Boards Closed Open Issue #492 opened 2015-03-30 11:02:33 UTC error compiling by Markus Bischof@hirnschmalz Error while precompiling assets I setup a new server for a Omnibus GitLab test drive. Since the performance of the Web-Frontend was horrible error compiling css slow I did some web searching and found an interesting article here gitlab-org/gitlab-ce#164. I'm using gitlab 7.9.1-omnibus.1-1. So I tried to precompile the all the assets. Sadly engough I got some error messages. sudo gitlab-rake assets:precompile --trace ** Invoke assets:precompile (first_time) ** Invoke assets:environment (first_time) ** Execute assets:environment ** Invoke environment (first_time) ** Execute environment ** Execute assets:precompile rake aborted! Errno::EACCES: Permission denied @ rb_sysopen - /opt/gitlab/embedded/service/gitlab-rails/public/assets/manifest-25117e163ec1296c4083973c93e7cb32.json /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/manifest.rb:220:in `initialize' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/manifest.rb:220:in `open' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/manifest.rb:220:in `save' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/manifest.rb:140:in `compile' /opt/git
Validations Active Record Callbacks Active Record Associations Active Record Query Interface Views Layouts and Rendering in Rails Action View Form Helpers Controllers Action Controller Overview Rails Routing from the Outside In Digging Deeper Active Support Core Extensions Rails Internationalization API Action Mailer Basics Active Job Basics Testing Rails Applications Securing Rails Applications Debugging Rails Applications Configuring Rails Applications Rails Command Line Tools and Rake Tasks Asset Pipeline Working with JavaScript in Rails Autoloading and Reloading Constants Caching with Rails: An Overview Using Rails for API-only Applications Action Cable Overview Extending Rails Rails on Rack Creating and Customizing Rails Generators Contributing to Ruby on Rails Contributing to Ruby on Rails API Documentation Guidelines Ruby on Rails Guides Guidelines Maintenance Policy Maintenance Policy Release Notes Upgrading Ruby on Rails Ruby on Rails 5.0 Release Notes Ruby on Rails 4.2 Release Notes Ruby on Rails 4.1 Release Notes Ruby on Rails 4.0 Release Notes Ruby on Rails 3.2 Release Notes Ruby on Rails 3.1 Release Notes Ruby on Rails 3.0 Release Notes Ruby on Rails 2.3 Release Notes Ruby on Rails 2.2 Release Notes Contribute Credits Guides Index Getting Started with Rails Active Record Basics Active Record Migrations Active Record Validations Active Record Callbacks Active Record Associations Active Record Query Interface Layouts and Rendering in Rails Action View Form Helpers Action Controller Overview Rails Routing from the Outside In Active Support Core Extensions Rails Internationalization API Action Mailer Basics Active Job Basics Testing Rails Applications Securing Rails Applications Debugging Rails Applications Configuring Rails Applications Rails Command Line Tools and Rake Tasks Asset Pipeline Working with JavaScript in Rails Autoloading and Reloading Constants Caching with Rails: An Overview Using Rails for API-only Applications Action Cable Overview Rails on Rack Creating and Customizing Rails Generators Contributing to Ruby on Rails API Documentation Guidelines Ruby on Rails Guides Guidelines Maintenance Policy Upgrading Ruby on Rails Ruby on Rails 5.0 Release Notes Ruby on Rails 4.2 Release Notes Ruby on Rails 4.1 Release Notes Ruby on Rails 4.0 Release Notes Ruby on Rails 3.2 Release Notes Ruby on Rails 3.1 Release Notes Ruby on Rails 3.0