It would help to indicate the operating system and such. If you are using 
linux, I'm very surprised that the user and group weren't set up right.

This is clearly a right problems. Frankly I would remove and reinstall. It 
sounds like you are floundering, and you've probably made changes you aren't 
mentioning here. The default permissions are good if you always run as 
puppet-dashboard. 

On Feb 5, 2013, at 1:15 AM, sgd.eriks...@gmail.com wrote:
> I'm having trouble getting puppet dashboard (1.2.21) to run on apache.
> 
> i installed puppetmaster-passenger and puppet-dashboard package. It didn't 
> create user puppet-dashboard automatically as stated in the installation 
> guide,
> so i created one manually and chowned all files under /puppet-dashboard. when 
> testing with webrick everything works fine (as root).
> when i try with other users this is what happens:
> 
> root@puppetmaster:/usr/share/puppet-dashboard/script# sudo -u 
> puppet-dashboard ./server -e production
> => Booting WEBrick
> => Rails 2.3.14 application starting on http://0.0.0.0:3000
> ./../config/../vendor/rails/railties/lib/initializer.rb:926:in `read': 
> Permission denied - /usr/share/puppet-dashboard/config/database.yml 
> (Errno::EACCES)
>       from ./../config/../vendor/rails/railties/lib/initializer.rb:926:in 
> `database_configuration'
>       from ./../config/../vendor/rails/railties/lib/initializer.rb:437:in 
> `initialize_database'
>       from ./../config/../vendor/rails/railties/lib/initializer.rb:141:in 
> `process'
>       from ./../config/../vendor/rails/railties/lib/initializer.rb:113:in 
> `send'
>       from ./../config/../vendor/rails/railties/lib/initializer.rb:113:in 
> `run'
>       from /usr/share/puppet-dashboard/config/environment.rb:14
>       from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in 
> `gem_original_require'
>       from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
>       from 
> /usr/share/puppet-dashboard/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in
>  `require'
>       from 
> /usr/share/puppet-dashboard/vendor/rails/activesupport/lib/active_support/dependencies.rb:547:in
>  `new_constants_in'
>       from 
> /usr/share/puppet-dashboard/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in
>  `require'
>       from 
> /usr/share/puppet-dashboard/vendor/rails/railties/lib/commands/server.rb:84
>       from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in 
> `gem_original_require'
>       from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
>       from ./server:3
> 
> When running with apache, passneger gives the same error:
> Permission denied - /usr/share/puppet-dashboard/config/database.yml
> Application root: /usr/share/puppet-dashboard
> 
> I tried changing ownerships, giving 777 rights on files etc..
> First run with webrick might have been as root. Could this be an issue? If 
> so, is it fixable or am i due for a reinstallation?
> 
> Thanks a million for any help on this!!
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to puppet-users+unsubscr...@googlegroups.com.
> To post to this group, send email to puppet-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/puppet-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
Jo Rhett
Net Consonance : net philanthropy to improve open source and internet projects.



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


Reply via email to