wrong permissions on /srv/leap/webapp/log/production.log
i checked out latest versions of:
leap_cli:master bitmask:develop leap_platform:master
i deploy to web1, here're the errors i get:
- [web1] err: /Stage[main]/Site_webapp/Exec[compile_assets]/returns: change from notrun to 0 failed: /bin/bash -c "/usr/bin/bundle exec rake assets:precompile" returned 1 instead of one of [0] at /srv/leap/puppet/modules/site_webapp/manifests/init.pp:69
trying to reproduce this on web1 reveals:
leap-webapp@web1:~$ cd /srv/leap/webapp leap-webapp@web1:~$ /bin/bash -c "/usr/bin/bundle exec rake assets:precompile" /usr/bin/ruby1.9.1 /srv/leap/webapp/vendor/bundle/ruby/1.9.1/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets Rails Error: Unable to access log file. Please ensure that /srv/leap/webapp/log/production.log exists and is chmod 0666. The log level has been raised to WARN and the output directed to STDERR until the problem is fixed. ... leap-webapp@web1:~$ ls -la /srv/leap/webapp/log/production.log -rw-r--r-- 1 root root 0 Aug 2 06:21 /srv/leap/webapp/log/production.log
(from redmine: created on 2013-08-02, closed on 2013-08-13)