On 08/03/2010 06:01 AM, Rob McBroom wrote:
> On Aug 2, 2010, at 5:39 PM, James Turnbull wrote:
>
>   
>> Is there anything in /var/log/apache/error.log?
>>     
> What the…? Yes. Why isn’t it going to the ErrorLog for that virtual host?
>
> Anyway, there were a number of these:
>
>     Rails Error: Unable to access log file. Please ensure that 
> /opt/puppet-dashboard/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.
>
> So I chowned that directory and it’s files to the ‘apache’ user and now I’m 
> seeing:
>
> ActionView::TemplateError (Permission denied - 
> /opt/puppet-dashboard/public/stylesheets/all.css) on line #14 of 
> app/views/layouts/application.html.haml:
> 11:       var relative_url_root = 
> '#{ActionController::Base.relative_url_root}';
> 12:       $.noConflict();
> 13: 
> 14:     = stylesheet_link_tag 'reset', 'layout', 'forms', 'tables', 
> 'jquery.ui.autocomplete.css', 'typography', 'links', 'fcbkcomplete', 'tipsy', 
> 'application', :cache => 'all'
> 15:     = javascript_include_tag 'prototype', 'jrails', 'fcbkcomplete', 
> 'excanvas.min', 'raphael-min', 'grafico.min', 'jquery.form', 
> 'jquery.placeholders', 'jquery.ui.autocomplete', 
> 'jquery.ui.autocomplete.ext', 'jquery.tipsy', 'search', 'application', :cache 
> => ‘all’
>
> …followed by a trace through the application. The `production.log`, though 
> it’s now writable, contains nothing.
>
> So I guess it’s trying to cache all the stylesheets and JavaScript into one 
> file? I chowned the `stylesheets` directory to apache:apache, but I still see 
> the error. Is there a list of paths that Passenger expects write-access to 
> somewhere? Why wasn’t this an issue before?
>   
The application was failing at startup because it couldn't write its own
log files, and now it's failing because it can't write its caches.

Please give ownership of the "puppet-dashboard" directory and everything
in it to the same user, and grant this user read and write access to all
of this.

For example:
  chown -R apache:apache /opt/puppet-dashboard
  chmod -R ug+rwX /opt/puppet-dashboard

-igal

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to