Closed (fixed)
Project:
Bluecheese
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 Jun 2012 at 13:05 UTC
Updated:
4 Jan 2014 at 02:05 UTC
Jump to comment: Most recent
I'm guessing at the problem here but the main issue affecting me is that Compass isn't compiling any CSS and I can't seem to make it.
Errno::EACCES on line ["26"] of /usr/lib64/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.244/lib/sass/cache_stores/filesystem.rb: Permission denied - /var/www/dev/theme-drupal_7.redesign.devdrupal.org/htdocs/sites/all/themes/bluechops/.sass-cache/0a02f94371680231ecdcf940c3429303b7773df3/styles.scssc
/usr/lib64/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.244/lib/sass/cache_stores/filesystem.rb:26:in `_retrieve'
/usr/lib64/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.244/lib/sass/cache_stores/base.rb:62:in `retrieve'
/usr/lib64/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.244/lib/sass/cache_stores/chain.rb:25:in `block in retrieve'
/usr/lib64/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.244/lib/sass/cache_stores/chain.rb:24:in `each'
/usr/lib64/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.244/lib/sass/cache_stores/chain.rb:24:in `each_with_index'
/usr/lib64/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.244/lib/sass/cache_stores/chain.rb:24:in `retrieve'
/usr/lib64/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.244/lib/sass/engine.rb:327:in `_to_tree'
/usr/lib64/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.244/lib/sass/engine.rb:309:in `_render'
/usr/lib64/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.244/lib/sass/engine.rb:256:in `render'
/usr/lib64/ruby/gems/1.9.1/gems/compass-0.13.alpha.0/lib/compass/compiler.rb:140:in `block (2 levels) in compile'
/usr/lib64/ruby/gems/1.9.1/gems/compass-0.13.alpha.0/lib/compass/compiler.rb:126:in `timed'
/usr/lib64/ruby/gems/1.9.1/gems/compass-0.13.alpha.0/lib/compass/compiler.rb:139:in `block in compile'
/usr/lib64/ruby/gems/1.9.1/gems/compass-0.13.alpha.0/lib/compass/logger.rb:45:in `red'
/usr/lib64/ruby/gems/1.9.1/gems/compass-0.13.alpha.0/lib/compass/compiler.rb:138:in `compile'
/usr/lib64/ruby/gems/1.9.1/gems/compass-0.13.alpha.0/lib/compass/compiler.rb:118:in `compile_if_required'
/usr/lib64/ruby/gems/1.9.1/gems/compass-0.13.alpha.0/lib/compass/compiler.rb:103:in `block (2 levels) in run'
/usr/lib64/ruby/gems/1.9.1/gems/compass-0.13.alpha.0/lib/compass/compiler.rb:101:in `each'
/usr/lib64/ruby/gems/1.9.1/gems/compass-0.13.alpha.0/lib/compass/compiler.rb:101:in `block in run'
/usr/lib64/ruby/gems/1.9.1/gems/compass-0.13.alpha.0/lib/compass/compiler.rb:126:in `timed'
/usr/lib64/ruby/gems/1.9.1/gems/compass-0.13.alpha.0/lib/compass/compiler.rb:100:in `run'
/usr/lib64/ruby/gems/1.9.1/gems/compass-0.13.alpha.0/lib/compass/commands/update_project.rb:45:in `perform'
/usr/lib64/ruby/gems/1.9.1/gems/compass-0.13.alpha.0/lib/compass/commands/project_stats.rb:32:in `perform'
/usr/lib64/ruby/gems/1.9.1/gems/compass-0.13.alpha.0/lib/compass/commands/base.rb:18:in `execute'
/usr/lib64/ruby/gems/1.9.1/gems/compass-0.13.alpha.0/lib/compass/commands/project_base.rb:19:in `execute'
/usr/lib64/ruby/gems/1.9.1/gems/compass-0.13.alpha.0/lib/compass/exec/sub_command_ui.rb:43:in `perform!'
/usr/lib64/ruby/gems/1.9.1/gems/compass-0.13.alpha.0/lib/compass/exec/sub_command_ui.rb:15:in `run!'
/usr/lib64/ruby/gems/1.9.1/gems/compass-0.13.alpha.0/bin/compass:29:in `block in <top (required)>'
/usr/lib64/ruby/gems/1.9.1/gems/compass-0.13.alpha.0/bin/compass:43:in `call'
/usr/lib64/ruby/gems/1.9.1/gems/compass-0.13.alpha.0/bin/compass:43:in `<top (required)>'
/usr/bin/compass:19:in `load'
/usr/bin/compass:19:in `<main>'Here is what my
Comments
Comment #1
drummAre the commands to work with this theme documented anywhere so I can reproduce this?
Comment #2
ruplNeil, I was able to reproduce the error by running
compass watch .from the bluecheese theme folder. For ongoing development, this command is essentially the only one we use.The command listens for changes to the
sassfolder, and recompiles the Sass files to legit CSS (residing in thecssfolder). So it watches for I/O then writes to disk each time we update anything withinsassfolder.It seems like the .sass-cache folder is causing the problem in this instance, and it might be due to that directory being owned by Snugug instead of bender like the rest of them. I tried to chown but it won't let me change it.
As discussed in IRC, I will do a little bit more debugging once I get permissions to do so on the server.
Comment #3
drummWe want all files for sites to have the developers group and be group writable. umask can be used to set the default permissions. /etc/bashrc sets this to 002 for me, but 022 for snugug since our accounts are created differently. 002 is more correct, and will do the right thing for new files, like these. I'm not sure if it is best to edit /etc/bashrc directly, use puppet, or something else.
In the meantime,
chmod -R g+was needed.Comment #4
senpai commentedTagging for Sprint 5.
Comment #5
ruplDrumm's advice to
chmod -R g+wthe.sass-cachedirectory allows us to run thecompass watchcommand! Hooray!