I've run into permission errors like this if apparmor is enabled, and not
configured for the app I am trying to run.
http://en.wikipedia.org/wiki/AppArmor

I'm guessing you need to tell selinux that /usr/share/puppet-dashboard/* is
a valid path. (Never used selinux, but my understanding is that apparmor
and selinux have similarities.)

-Brian

On Sun, May 13, 2012 at 9:07 PM, Sans <r.santanu....@gmail.com> wrote:

> Dear all,
>
> Can anyone please tell me why Ruby on Rails application is not starting,
> when SELinux is on. This is the errors reporting on the browser:
>
>
> The application has exited during startup (i.e. during the evaluation of
>> config/environment.rb). The error message can be found below. To solve
>> this problem, please follow any instructions in the error message.
>>
>> *Error message:*
>> Rails Error: Unable to access log file. Please ensure that
>> /usr/share/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. Database isn't the current migration version:
>> expected 20120112195235, got 0 You must either run 'rake db:migrate' or set
>> environmental variable NO_MIGRATION_CHECK
>
>
>
> Any idea what am I doing wrong? Cheers!!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-users/-/qXoLkbcvsy8J.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>



-- 
<http://aws.amazon.com/solutions/solution-providers/brandorr/>

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

Reply via email to