Claude
2011-Aug-05 03:14 UTC
[Puppet Users] Unable to display Filebucket in Dashboard 1.2rc3 : We''re sorry, but something went wrong
Using Puppet-DashBoard 1.2Rc3 with Puppet master 2.7.1 on the same
server.
When trying to display bucketed file in the Dashboard, I get the
following error message (after clicking on the link ''{md5}...) :
We''re sorry, but something went wrong. We''ve been notified
about this
issue and we''ll take a look at it shortly.
Here''s how I did the config :
-puppet cert generate dashboard
-Edit config/settings.yml :
cn_name: ''dashboard''
ca_crl_path: ''/var/lib/puppet/ssl/ca/ca_crl.pem''
ca_certificate_path: ''/var/lib/puppet/ssl/ca/ca_crt.pem''
certificate_path: ''/var/lib/puppet/ssl/certs/dashboard.pem''
private_key_path:
''/var/lib/puppet/ssl/private_keys/dashboard.pem''
public_key_path:
''/var/lib/puppet/ssl/public_keys/dashboard.pem''
-Edit site.pp :
filebucket { "main":
server => "puppet.myorg.internal",
path => false,
}
File { backup => "main" }
-Restart PuppetDashboard
-Generate a file update on a node.
I''ve located bucketed files on the master so the problem seems to be
between the dashboard and the master. How do I debug this?
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
Nigel Kersten
2011-Aug-05 05:46 UTC
Re: [Puppet Users] Unable to display Filebucket in Dashboard 1.2rc3 : We''re sorry, but something went wrong
On Thu, Aug 4, 2011 at 8:14 PM, Claude <claude.durocher@gmail.com> wrote:> Using Puppet-DashBoard 1.2Rc3 with Puppet master 2.7.1 on the same > server. > > When trying to display bucketed file in the Dashboard, I get the > following error message (after clicking on the link ''{md5}...) : > >> We''re sorry, but something went wrong. We''ve been notified about this > issue and we''ll take a look at it shortly. >Ugh. I hate that error message. https://projects.puppetlabs.com/issues/8796 Have a look at log/production.log and see what''s going on. Can you try it against a puppet master in debug mode?> > Here''s how I did the config : > > -puppet cert generate dashboard > > -Edit config/settings.yml : > cn_name: ''dashboard'' > ca_crl_path: ''/var/lib/puppet/ssl/ca/ca_crl.pem'' > ca_certificate_path: ''/var/lib/puppet/ssl/ca/ca_crt.pem'' > certificate_path: ''/var/lib/puppet/ssl/certs/dashboard.pem'' > private_key_path: ''/var/lib/puppet/ssl/private_keys/dashboard.pem'' > public_key_path: ''/var/lib/puppet/ssl/public_keys/dashboard.pem'' > > -Edit site.pp : > filebucket { "main": > server => "puppet.myorg.internal", > path => false, > } > File { backup => "main" } >Try adding: path => "false" ?> > -Restart PuppetDashboard > > -Generate a file update on a node. > > I''ve located bucketed files on the master so the problem seems to be > between the dashboard and the master. How do I debug this? > > -- > 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+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- Nigel Kersten Product Manager, Puppet Labs *Join us for **PuppetConf * <http://www.bit.ly/puppetconfsig> Sept 22/23 Portland, Oregon, USA. * * -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Claude
2011-Aug-05 12:14 UTC
[Puppet Users] Re: Unable to display Filebucket in Dashboard 1.2rc3 : We''re sorry, but something went wrong
Here''s what the log shows :
Processing FilesController#show (for 10.10.10.1 at 2011-08-05
08:11:17) [GET]
Parameters: {"action"=>"show",
"controller"=>"files",
"file"=>"70c1c6de6d4b1a02ec32b463e4d255b0"}
Net::HTTPServerException (403 "Forbidden"):
/usr/lib64/ruby/1.8/net/http.rb:2105:in `error!''
lib/puppet_https.rb:34:in `get''
app/controllers/files_controller.rb:23:in `show''
sass (3.1.2) [v] rails/./lib/sass/plugin/rack.rb:54:in `call''
passenger (3.0.7) lib/phusion_passenger/rack/request_handler.rb:
96:in `process_request''
passenger (3.0.7) lib/phusion_passenger/abstract_request_handler.rb:
513:in `accept_and_process_next_request''
passenger (3.0.7) lib/phusion_passenger/abstract_request_handler.rb:
274:in `main_loop''
passenger (3.0.7) lib/phusion_passenger/classic_rails/
application_spawner.rb:321:in `start_request_handler''
passenger (3.0.7) lib/phusion_passenger/classic_rails/
application_spawner.rb:275:in `send''
passenger (3.0.7) lib/phusion_passenger/classic_rails/
application_spawner.rb:275:in `handle_spawn_application''
passenger (3.0.7) lib/phusion_passenger/utils.rb:479:in `safe_fork''
passenger (3.0.7) lib/phusion_passenger/classic_rails/
application_spawner.rb:270:in `handle_spawn_application''
passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in
`__send__''
passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in
`server_main_loop''
passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:206:in
`start_synchronously''
passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:180:in
`start''
passenger (3.0.7) lib/phusion_passenger/classic_rails/
application_spawner.rb:149:in `start''
passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:219:in
`spawn_rails_application''
passenger (3.0.7) lib/phusion_passenger/
abstract_server_collection.rb:132:in `lookup_or_add''
passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:214:in
`spawn_rails_application''
passenger (3.0.7) lib/phusion_passenger/
abstract_server_collection.rb:82:in `synchronize''
passenger (3.0.7) lib/phusion_passenger/
abstract_server_collection.rb:79:in `synchronize''
passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:213:in
`spawn_rails_application''
passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:132:in
`spawn_application''
passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:275:in
`handle_spawn_application''
passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in
`__send__''
passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in
`server_main_loop''
passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:206:in
`start_synchronously''
passenger (3.0.7) helper-scripts/passenger-spawn-server:99
The Dashboard and the master are running under passenger.
On 5 août, 01:46, Nigel Kersten <ni...@puppetlabs.com>
wrote:> On Thu, Aug 4, 2011 at 8:14 PM, Claude <claude.duroc...@gmail.com>
wrote:
> > Using Puppet-DashBoard 1.2Rc3 with Puppet master 2.7.1 on the same
> > server.
>
> > When trying to display bucketed file in the Dashboard, I get the
> > following error message (after clicking on the link
''{md5}...) :
>
> > We''re sorry, but something went wrong. We''ve been
notified about this
> > issue and we''ll take a look at it shortly.
>
> Ugh. I hate that error message.https://projects.puppetlabs.com/issues/8796
>
> Have a look at log/production.log and see what''s going on.
>
> Can you try it against a puppet master in debug mode?
>
>
>
>
>
>
>
>
>
>
>
> > Here''s how I did the config :
>
> > -puppet cert generate dashboard
>
> > -Edit config/settings.yml :
> > cn_name: ''dashboard''
> > ca_crl_path: ''/var/lib/puppet/ssl/ca/ca_crl.pem''
> > ca_certificate_path:
''/var/lib/puppet/ssl/ca/ca_crt.pem''
> > certificate_path:
''/var/lib/puppet/ssl/certs/dashboard.pem''
> > private_key_path:
''/var/lib/puppet/ssl/private_keys/dashboard.pem''
> > public_key_path:
''/var/lib/puppet/ssl/public_keys/dashboard.pem''
>
> > -Edit site.pp :
> > filebucket { "main":
> > server => "puppet.myorg.internal",
> > path => false,
> > }
> > File { backup => "main" }
>
> Try adding: path => "false" ?
>
>
>
>
>
>
>
>
>
>
>
> > -Restart PuppetDashboard
>
> > -Generate a file update on a node.
>
> > I''ve located bucketed files on the master so the problem
seems to be
> > between the dashboard and the master. How do I debug this?
>
> > --
> > 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+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/puppet-users?hl=en.
>
> --
> Nigel Kersten
> Product Manager, Puppet Labs
>
> *Join us for **PuppetConf *
> <http://www.bit.ly/puppetconfsig>
> Sept 22/23 Portland, Oregon, USA.
> *
> *
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
Nigel Kersten
2011-Aug-05 13:31 UTC
Re: [Puppet Users] Re: Unable to display Filebucket in Dashboard 1.2rc3 : We''re sorry, but something went wrong
On Fri, Aug 5, 2011 at 5:14 AM, Claude <claude.durocher@gmail.com> wrote:> Here''s what the log shows : > > Processing FilesController#show (for 10.10.10.1 at 2011-08-05 > 08:11:17) [GET] > Parameters: {"action"=>"show", "controller"=>"files", > "file"=>"70c1c6de6d4b1a02ec32b463e4d255b0"} > > Net::HTTPServerException (403 "Forbidden"): >Ahah. You''re missing this step. http://docs.puppetlabs.com/dashboard/manual/1.2/configuring.html Once the puppet master is properly configured with a database-backed inventory, edit your puppet master’s auth.conf<http://docs.puppetlabs.com/guides/rest_auth_conf.html> file to grant Dashboard find and search access to /facts: path /facts auth yes method find, search allow dashboard (change the allow line to reference your certificate identity you generated) /usr/lib64/ruby/1.8/net/http.rb:2105:in `error!''> lib/puppet_https.rb:34:in `get'' > app/controllers/files_controller.rb:23:in `show'' > sass (3.1.2) [v] rails/./lib/sass/plugin/rack.rb:54:in `call'' > passenger (3.0.7) lib/phusion_passenger/rack/request_handler.rb: > 96:in `process_request'' > passenger (3.0.7) lib/phusion_passenger/abstract_request_handler.rb: > 513:in `accept_and_process_next_request'' > passenger (3.0.7) lib/phusion_passenger/abstract_request_handler.rb: > 274:in `main_loop'' > passenger (3.0.7) lib/phusion_passenger/classic_rails/ > application_spawner.rb:321:in `start_request_handler'' > passenger (3.0.7) lib/phusion_passenger/classic_rails/ > application_spawner.rb:275:in `send'' > passenger (3.0.7) lib/phusion_passenger/classic_rails/ > application_spawner.rb:275:in `handle_spawn_application'' > passenger (3.0.7) lib/phusion_passenger/utils.rb:479:in `safe_fork'' > passenger (3.0.7) lib/phusion_passenger/classic_rails/ > application_spawner.rb:270:in `handle_spawn_application'' > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in > `__send__'' > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in > `server_main_loop'' > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:206:in > `start_synchronously'' > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:180:in > `start'' > passenger (3.0.7) lib/phusion_passenger/classic_rails/ > application_spawner.rb:149:in `start'' > passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:219:in > `spawn_rails_application'' > passenger (3.0.7) lib/phusion_passenger/ > abstract_server_collection.rb:132:in `lookup_or_add'' > passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:214:in > `spawn_rails_application'' > passenger (3.0.7) lib/phusion_passenger/ > abstract_server_collection.rb:82:in `synchronize'' > passenger (3.0.7) lib/phusion_passenger/ > abstract_server_collection.rb:79:in `synchronize'' > passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:213:in > `spawn_rails_application'' > passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:132:in > `spawn_application'' > passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:275:in > `handle_spawn_application'' > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in > `__send__'' > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in > `server_main_loop'' > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:206:in > `start_synchronously'' > passenger (3.0.7) helper-scripts/passenger-spawn-server:99 > > The Dashboard and the master are running under passenger. > > On 5 août, 01:46, Nigel Kersten <ni...@puppetlabs.com> wrote: > > On Thu, Aug 4, 2011 at 8:14 PM, Claude <claude.duroc...@gmail.com> > wrote: > > > Using Puppet-DashBoard 1.2Rc3 with Puppet master 2.7.1 on the same > > > server. > > > > > When trying to display bucketed file in the Dashboard, I get the > > > following error message (after clicking on the link ''{md5}...) : > > > > > We''re sorry, but something went wrong. We''ve been notified about this > > > issue and we''ll take a look at it shortly. > > > > Ugh. I hate that error message. > https://projects.puppetlabs.com/issues/8796 > > > > Have a look at log/production.log and see what''s going on. > > > > Can you try it against a puppet master in debug mode? > > > > > > > > > > > > > > > > > > > > > > > > > Here''s how I did the config : > > > > > -puppet cert generate dashboard > > > > > -Edit config/settings.yml : > > > cn_name: ''dashboard'' > > > ca_crl_path: ''/var/lib/puppet/ssl/ca/ca_crl.pem'' > > > ca_certificate_path: ''/var/lib/puppet/ssl/ca/ca_crt.pem'' > > > certificate_path: ''/var/lib/puppet/ssl/certs/dashboard.pem'' > > > private_key_path: ''/var/lib/puppet/ssl/private_keys/dashboard.pem'' > > > public_key_path: ''/var/lib/puppet/ssl/public_keys/dashboard.pem'' > > > > > -Edit site.pp : > > > filebucket { "main": > > > server => "puppet.myorg.internal", > > > path => false, > > > } > > > File { backup => "main" } > > > > Try adding: path => "false" ? > > > > > > > > > > > > > > > > > > > > > > > > > -Restart PuppetDashboard > > > > > -Generate a file update on a node. > > > > > I''ve located bucketed files on the master so the problem seems to be > > > between the dashboard and the master. How do I debug this? > > > > > -- > > > 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+unsubscribe@googlegroups.com. > > > For more options, visit this group at > > >http://groups.google.com/group/puppet-users?hl=en. > > > > -- > > Nigel Kersten > > Product Manager, Puppet Labs > > > > *Join us for **PuppetConf * > > <http://www.bit.ly/puppetconfsig> > > Sept 22/23 Portland, Oregon, USA. > > * > > * > > -- > 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+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- Nigel Kersten Product Manager, Puppet Labs *Join us for **PuppetConf * <http://www.bit.ly/puppetconfsig> Sept 22/23 Portland, Oregon, USA. * * -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Claude
2011-Aug-05 18:24 UTC
[Puppet Users] Re: Unable to display Filebucket in Dashboard 1.2rc3 : We''re sorry, but something went wrong
I finally made it working by modifying auth.conf like this : path /facts auth any method find, search allow * path /file_bucket_file/md5 auth no method find, save allow * On 5 août, 09:31, Nigel Kersten <ni...@puppetlabs.com> wrote:> On Fri, Aug 5, 2011 at 5:14 AM, Claude <claude.duroc...@gmail.com> wrote: > > Here''s what the log shows : > > > Processing FilesController#show (for 10.10.10.1 at 2011-08-05 > > 08:11:17) [GET] > > Parameters: {"action"=>"show", "controller"=>"files", > > "file"=>"70c1c6de6d4b1a02ec32b463e4d255b0"} > > > Net::HTTPServerException (403 "Forbidden"): > > Ahah. You''re missing this step. > > http://docs.puppetlabs.com/dashboard/manual/1.2/configuring.html > > Once the puppet master is properly configured with a database-backed > inventory, edit your puppet master’s > auth.conf<http://docs.puppetlabs.com/guides/rest_auth_conf.html> file > to grant Dashboard find and search access to /facts: > > path /facts > auth yes > method find, search > allow dashboard > > (change the allow line to reference your certificate identity you generated) > > /usr/lib64/ruby/1.8/net/http.rb:2105:in `error!'' > > > > > lib/puppet_https.rb:34:in `get'' > > app/controllers/files_controller.rb:23:in `show'' > > sass (3.1.2) [v] rails/./lib/sass/plugin/rack.rb:54:in `call'' > > passenger (3.0.7) lib/phusion_passenger/rack/request_handler.rb: > > 96:in `process_request'' > > passenger (3.0.7) lib/phusion_passenger/abstract_request_handler.rb: > > 513:in `accept_and_process_next_request'' > > passenger (3.0.7) lib/phusion_passenger/abstract_request_handler.rb: > > 274:in `main_loop'' > > passenger (3.0.7) lib/phusion_passenger/classic_rails/ > > application_spawner.rb:321:in `start_request_handler'' > > passenger (3.0.7) lib/phusion_passenger/classic_rails/ > > application_spawner.rb:275:in `send'' > > passenger (3.0.7) lib/phusion_passenger/classic_rails/ > > application_spawner.rb:275:in `handle_spawn_application'' > > passenger (3.0.7) lib/phusion_passenger/utils.rb:479:in `safe_fork'' > > passenger (3.0.7) lib/phusion_passenger/classic_rails/ > > application_spawner.rb:270:in `handle_spawn_application'' > > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in > > `__send__'' > > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in > > `server_main_loop'' > > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:206:in > > `start_synchronously'' > > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:180:in > > `start'' > > passenger (3.0.7) lib/phusion_passenger/classic_rails/ > > application_spawner.rb:149:in `start'' > > passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:219:in > > `spawn_rails_application'' > > passenger (3.0.7) lib/phusion_passenger/ > > abstract_server_collection.rb:132:in `lookup_or_add'' > > passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:214:in > > `spawn_rails_application'' > > passenger (3.0.7) lib/phusion_passenger/ > > abstract_server_collection.rb:82:in `synchronize'' > > passenger (3.0.7) lib/phusion_passenger/ > > abstract_server_collection.rb:79:in `synchronize'' > > passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:213:in > > `spawn_rails_application'' > > passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:132:in > > `spawn_application'' > > passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:275:in > > `handle_spawn_application'' > > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in > > `__send__'' > > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in > > `server_main_loop'' > > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:206:in > > `start_synchronously'' > > passenger (3.0.7) helper-scripts/passenger-spawn-server:99 > > > The Dashboard and the master are running under passenger. > > > On 5 août, 01:46, Nigel Kersten <ni...@puppetlabs.com> wrote: > > > On Thu, Aug 4, 2011 at 8:14 PM, Claude <claude.duroc...@gmail.com> > > wrote: > > > > Using Puppet-DashBoard 1.2Rc3 with Puppet master 2.7.1 on the same > > > > server. > > > > > When trying to display bucketed file in the Dashboard, I get the > > > > following error message (after clicking on the link ''{md5}...) : > > > > > We''re sorry, but something went wrong. We''ve been notified about this > > > > issue and we''ll take a look at it shortly. > > > > Ugh. I hate that error message. > >https://projects.puppetlabs.com/issues/8796 > > > > Have a look at log/production.log and see what''s going on. > > > > Can you try it against a puppet master in debug mode? > > > > > Here''s how I did the config : > > > > > -puppet cert generate dashboard > > > > > -Edit config/settings.yml : > > > > cn_name: ''dashboard'' > > > > ca_crl_path: ''/var/lib/puppet/ssl/ca/ca_crl.pem'' > > > > ca_certificate_path: ''/var/lib/puppet/ssl/ca/ca_crt.pem'' > > > > certificate_path: ''/var/lib/puppet/ssl/certs/dashboard.pem'' > > > > private_key_path: ''/var/lib/puppet/ssl/private_keys/dashboard.pem'' > > > > public_key_path: ''/var/lib/puppet/ssl/public_keys/dashboard.pem'' > > > > > -Edit site.pp : > > > > filebucket { "main": > > > > server => "puppet.myorg.internal", > > > > path => false, > > > > } > > > > File { backup => "main" } > > > > Try adding: path => "false" ? > > > > > -Restart PuppetDashboard > > > > > -Generate a file update on a node. > > > > > I''ve located bucketed files on the master so the problem seems to be > > > > between the dashboard and the master. How do I debug this? > > > > > -- > > > > 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+unsubscribe@googlegroups.com. > > > > For more options, visit this group at > > > >http://groups.google.com/group/puppet-users?hl=en. > > > > -- > > > Nigel Kersten > > > Product Manager, Puppet Labs > > > > *Join us for **PuppetConf * > > > <http://www.bit.ly/puppetconfsig> > > > Sept 22/23 Portland, Oregon, USA. > > > * > > > * > > > -- > > 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+unsubscribe@googlegroups.com. > > For more options, visit this group at > >http://groups.google.com/group/puppet-users?hl=en. > > -- > Nigel Kersten > Product Manager, Puppet Labs > > *Join us for **PuppetConf * > <http://www.bit.ly/puppetconfsig> > Sept 22/23 Portland, Oregon, USA. > * > *-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Nigel Kersten
2011-Aug-05 19:09 UTC
Re: [Puppet Users] Re: Unable to display Filebucket in Dashboard 1.2rc3 : We''re sorry, but something went wrong
On Fri, Aug 5, 2011 at 11:24 AM, Claude <claude.durocher@gmail.com> wrote:> I finally made it working by modifying auth.conf like this : > > path /facts > auth any > method find, search > allow * > > path /file_bucket_file/md5 > auth no > method find, save > allow * >That''s going to allow everyone, and you really should lock it down to just the dashboard itself.> > On 5 août, 09:31, Nigel Kersten <ni...@puppetlabs.com> wrote: > > On Fri, Aug 5, 2011 at 5:14 AM, Claude <claude.duroc...@gmail.com> > wrote: > > > Here''s what the log shows : > > > > > Processing FilesController#show (for 10.10.10.1 at 2011-08-05 > > > 08:11:17) [GET] > > > Parameters: {"action"=>"show", "controller"=>"files", > > > "file"=>"70c1c6de6d4b1a02ec32b463e4d255b0"} > > > > > Net::HTTPServerException (403 "Forbidden"): > > > > Ahah. You''re missing this step. > > > > http://docs.puppetlabs.com/dashboard/manual/1.2/configuring.html > > > > Once the puppet master is properly configured with a database-backed > > inventory, edit your puppet master’s > > auth.conf<http://docs.puppetlabs.com/guides/rest_auth_conf.html> file > > to grant Dashboard find and search access to /facts: > > > > path /facts > > auth yes > > method find, search > > allow dashboard > > > > (change the allow line to reference your certificate identity you > generated) > > > > /usr/lib64/ruby/1.8/net/http.rb:2105:in `error!'' > > > > > > > > > lib/puppet_https.rb:34:in `get'' > > > app/controllers/files_controller.rb:23:in `show'' > > > sass (3.1.2) [v] rails/./lib/sass/plugin/rack.rb:54:in `call'' > > > passenger (3.0.7) lib/phusion_passenger/rack/request_handler.rb: > > > 96:in `process_request'' > > > passenger (3.0.7) lib/phusion_passenger/abstract_request_handler.rb: > > > 513:in `accept_and_process_next_request'' > > > passenger (3.0.7) lib/phusion_passenger/abstract_request_handler.rb: > > > 274:in `main_loop'' > > > passenger (3.0.7) lib/phusion_passenger/classic_rails/ > > > application_spawner.rb:321:in `start_request_handler'' > > > passenger (3.0.7) lib/phusion_passenger/classic_rails/ > > > application_spawner.rb:275:in `send'' > > > passenger (3.0.7) lib/phusion_passenger/classic_rails/ > > > application_spawner.rb:275:in `handle_spawn_application'' > > > passenger (3.0.7) lib/phusion_passenger/utils.rb:479:in `safe_fork'' > > > passenger (3.0.7) lib/phusion_passenger/classic_rails/ > > > application_spawner.rb:270:in `handle_spawn_application'' > > > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in > > > `__send__'' > > > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in > > > `server_main_loop'' > > > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:206:in > > > `start_synchronously'' > > > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:180:in > > > `start'' > > > passenger (3.0.7) lib/phusion_passenger/classic_rails/ > > > application_spawner.rb:149:in `start'' > > > passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:219:in > > > `spawn_rails_application'' > > > passenger (3.0.7) lib/phusion_passenger/ > > > abstract_server_collection.rb:132:in `lookup_or_add'' > > > passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:214:in > > > `spawn_rails_application'' > > > passenger (3.0.7) lib/phusion_passenger/ > > > abstract_server_collection.rb:82:in `synchronize'' > > > passenger (3.0.7) lib/phusion_passenger/ > > > abstract_server_collection.rb:79:in `synchronize'' > > > passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:213:in > > > `spawn_rails_application'' > > > passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:132:in > > > `spawn_application'' > > > passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:275:in > > > `handle_spawn_application'' > > > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in > > > `__send__'' > > > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in > > > `server_main_loop'' > > > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:206:in > > > `start_synchronously'' > > > passenger (3.0.7) helper-scripts/passenger-spawn-server:99 > > > > > The Dashboard and the master are running under passenger. > > > > > On 5 août, 01:46, Nigel Kersten <ni...@puppetlabs.com> wrote: > > > > On Thu, Aug 4, 2011 at 8:14 PM, Claude <claude.duroc...@gmail.com> > > > wrote: > > > > > Using Puppet-DashBoard 1.2Rc3 with Puppet master 2.7.1 on the same > > > > > server. > > > > > > > When trying to display bucketed file in the Dashboard, I get the > > > > > following error message (after clicking on the link ''{md5}...) : > > > > > > > We''re sorry, but something went wrong. We''ve been notified about > this > > > > > issue and we''ll take a look at it shortly. > > > > > > Ugh. I hate that error message. > > >https://projects.puppetlabs.com/issues/8796 > > > > > > Have a look at log/production.log and see what''s going on. > > > > > > Can you try it against a puppet master in debug mode? > > > > > > > Here''s how I did the config : > > > > > > > -puppet cert generate dashboard > > > > > > > -Edit config/settings.yml : > > > > > cn_name: ''dashboard'' > > > > > ca_crl_path: ''/var/lib/puppet/ssl/ca/ca_crl.pem'' > > > > > ca_certificate_path: ''/var/lib/puppet/ssl/ca/ca_crt.pem'' > > > > > certificate_path: ''/var/lib/puppet/ssl/certs/dashboard.pem'' > > > > > private_key_path: ''/var/lib/puppet/ssl/private_keys/dashboard.pem'' > > > > > public_key_path: ''/var/lib/puppet/ssl/public_keys/dashboard.pem'' > > > > > > > -Edit site.pp : > > > > > filebucket { "main": > > > > > server => "puppet.myorg.internal", > > > > > path => false, > > > > > } > > > > > File { backup => "main" } > > > > > > Try adding: path => "false" ? > > > > > > > -Restart PuppetDashboard > > > > > > > -Generate a file update on a node. > > > > > > > I''ve located bucketed files on the master so the problem seems to > be > > > > > between the dashboard and the master. How do I debug this? > > > > > > > -- > > > > > 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+unsubscribe@googlegroups.com. > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/puppet-users?hl=en. > > > > > > -- > > > > Nigel Kersten > > > > Product Manager, Puppet Labs > > > > > > *Join us for **PuppetConf * > > > > <http://www.bit.ly/puppetconfsig> > > > > Sept 22/23 Portland, Oregon, USA. > > > > * > > > > * > > > > > -- > > > 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+unsubscribe@googlegroups.com. > > > For more options, visit this group at > > >http://groups.google.com/group/puppet-users?hl=en. > > > > -- > > Nigel Kersten > > Product Manager, Puppet Labs > > > > *Join us for **PuppetConf * > > <http://www.bit.ly/puppetconfsig> > > Sept 22/23 Portland, Oregon, USA. > > * > > * > > -- > 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+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- Nigel Kersten Product Manager, Puppet Labs *Join us for **PuppetConf * <http://www.bit.ly/puppetconfsig> Sept 22/23 Portland, Oregon, USA. * * -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Claude
2011-Aug-05 19:22 UTC
[Puppet Users] Re: Unable to display Filebucket in Dashboard 1.2rc3 : We''re sorry, but something went wrong
Using "allow dashboard" in /facts then facter data is not displayed in the dashboard (Could not retrieve facts from inventory service: 403 "Forbidden"). Also not using * in /file_bucket_file/md5 forbids clients from uploading bucketed files. Am I missing something here? On 5 août, 15:09, Nigel Kersten <ni...@puppetlabs.com> wrote:> On Fri, Aug 5, 2011 at 11:24 AM, Claude <claude.duroc...@gmail.com> wrote: > > I finally made it working by modifying auth.conf like this : > > > path /facts > > auth any > > method find, search > > allow * > > > path /file_bucket_file/md5 > > auth no > > method find, save > > allow * > > That''s going to allow everyone, and you really should lock it down to just > the dashboard itself. > > > > > > > On 5 août, 09:31, Nigel Kersten <ni...@puppetlabs.com> wrote: > > > On Fri, Aug 5, 2011 at 5:14 AM, Claude <claude.duroc...@gmail.com> > > wrote: > > > > Here''s what the log shows : > > > > > Processing FilesController#show (for 10.10.10.1 at 2011-08-05 > > > > 08:11:17) [GET] > > > > Parameters: {"action"=>"show", "controller"=>"files", > > > > "file"=>"70c1c6de6d4b1a02ec32b463e4d255b0"} > > > > > Net::HTTPServerException (403 "Forbidden"): > > > > Ahah. You''re missing this step. > > > >http://docs.puppetlabs.com/dashboard/manual/1.2/configuring.html > > > > Once the puppet master is properly configured with a database-backed > > > inventory, edit your puppet master’s > > > auth.conf<http://docs.puppetlabs.com/guides/rest_auth_conf.html> file > > > to grant Dashboard find and search access to /facts: > > > > path /facts > > > auth yes > > > method find, search > > > allow dashboard > > > > (change the allow line to reference your certificate identity you > > generated) > > > > /usr/lib64/ruby/1.8/net/http.rb:2105:in `error!'' > > > > > lib/puppet_https.rb:34:in `get'' > > > > app/controllers/files_controller.rb:23:in `show'' > > > > sass (3.1.2) [v] rails/./lib/sass/plugin/rack.rb:54:in `call'' > > > > passenger (3.0.7) lib/phusion_passenger/rack/request_handler.rb: > > > > 96:in `process_request'' > > > > passenger (3.0.7) lib/phusion_passenger/abstract_request_handler.rb: > > > > 513:in `accept_and_process_next_request'' > > > > passenger (3.0.7) lib/phusion_passenger/abstract_request_handler.rb: > > > > 274:in `main_loop'' > > > > passenger (3.0.7) lib/phusion_passenger/classic_rails/ > > > > application_spawner.rb:321:in `start_request_handler'' > > > > passenger (3.0.7) lib/phusion_passenger/classic_rails/ > > > > application_spawner.rb:275:in `send'' > > > > passenger (3.0.7) lib/phusion_passenger/classic_rails/ > > > > application_spawner.rb:275:in `handle_spawn_application'' > > > > passenger (3.0.7) lib/phusion_passenger/utils.rb:479:in `safe_fork'' > > > > passenger (3.0.7) lib/phusion_passenger/classic_rails/ > > > > application_spawner.rb:270:in `handle_spawn_application'' > > > > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in > > > > `__send__'' > > > > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in > > > > `server_main_loop'' > > > > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:206:in > > > > `start_synchronously'' > > > > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:180:in > > > > `start'' > > > > passenger (3.0.7) lib/phusion_passenger/classic_rails/ > > > > application_spawner.rb:149:in `start'' > > > > passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:219:in > > > > `spawn_rails_application'' > > > > passenger (3.0.7) lib/phusion_passenger/ > > > > abstract_server_collection.rb:132:in `lookup_or_add'' > > > > passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:214:in > > > > `spawn_rails_application'' > > > > passenger (3.0.7) lib/phusion_passenger/ > > > > abstract_server_collection.rb:82:in `synchronize'' > > > > passenger (3.0.7) lib/phusion_passenger/ > > > > abstract_server_collection.rb:79:in `synchronize'' > > > > passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:213:in > > > > `spawn_rails_application'' > > > > passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:132:in > > > > `spawn_application'' > > > > passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:275:in > > > > `handle_spawn_application'' > > > > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in > > > > `__send__'' > > > > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in > > > > `server_main_loop'' > > > > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:206:in > > > > `start_synchronously'' > > > > passenger (3.0.7) helper-scripts/passenger-spawn-server:99 > > > > > The Dashboard and the master are running under passenger. > > > > > On 5 août, 01:46, Nigel Kersten <ni...@puppetlabs.com> wrote: > > > > > On Thu, Aug 4, 2011 at 8:14 PM, Claude <claude.duroc...@gmail.com> > > > > wrote: > > > > > > Using Puppet-DashBoard 1.2Rc3 with Puppet master 2.7.1 on the same > > > > > > server. > > > > > > > When trying to display bucketed file in the Dashboard, I get the > > > > > > following error message (after clicking on the link ''{md5}...) : > > > > > > > We''re sorry, but something went wrong. We''ve been notified about > > this > > > > > > issue and we''ll take a look at it shortly. > > > > > > Ugh. I hate that error message. > > > >https://projects.puppetlabs.com/issues/8796 > > > > > > Have a look at log/production.log and see what''s going on. > > > > > > Can you try it against a puppet master in debug mode? > > > > > > > Here''s how I did the config : > > > > > > > -puppet cert generate dashboard > > > > > > > -Edit config/settings.yml : > > > > > > cn_name: ''dashboard'' > > > > > > ca_crl_path: ''/var/lib/puppet/ssl/ca/ca_crl.pem'' > > > > > > ca_certificate_path: ''/var/lib/puppet/ssl/ca/ca_crt.pem'' > > > > > > certificate_path: ''/var/lib/puppet/ssl/certs/dashboard.pem'' > > > > > > private_key_path: ''/var/lib/puppet/ssl/private_keys/dashboard.pem'' > > > > > > public_key_path: ''/var/lib/puppet/ssl/public_keys/dashboard.pem'' > > > > > > > -Edit site.pp : > > > > > > filebucket { "main": > > > > > > server => "puppet.myorg.internal", > > > > > > path => false, > > > > > > } > > > > > > File { backup => "main" } > > > > > > Try adding: path => "false" ? > > > > > > > -Restart PuppetDashboard > > > > > > > -Generate a file update on a node. > > > > > > > I''ve located bucketed files on the master so the problem seems to > > be > > > > > > between the dashboard and the master. How do I debug this? > > > > > > > -- > > > > > > 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+unsubscribe@googlegroups.com. > > > > > > For more options, visit this group at > > > > > >http://groups.google.com/group/puppet-users?hl=en. > > > > > > -- > > > > > Nigel Kersten > > > > > Product Manager, Puppet Labs > > > > > > *Join us for **PuppetConf * > > > > > <http://www.bit.ly/puppetconfsig> > > > > > Sept 22/23 Portland, Oregon, USA. > > > > > * > > > > > * > > > > > -- > > > > 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+unsubscribe@googlegroups.com. > > > > For more options, visit this group at > > > >http://groups.google.com/group/puppet-users?hl=en. > > > > -- > > > Nigel Kersten > > > Product Manager, Puppet Labs > > > > *Join us for **PuppetConf * > > > <http://www.bit.ly/puppetconfsig> > > > Sept 22/23 Portland, Oregon, USA. > > > * > > > * > > > -- > > 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+unsubscribe@googlegroups.com. > > For more options, visit this group at > >http://groups.google.com/group/puppet-users?hl=en. > > -- > Nigel Kersten > Product Manager, Puppet Labs > > *Join us for **PuppetConf * > <http://www.bit.ly/puppetconfsig> > Sept 22/23 Portland, Oregon, USA. > * > *-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Nigel Kersten
2011-Aug-05 19:25 UTC
Re: [Puppet Users] Re: Unable to display Filebucket in Dashboard 1.2rc3 : We''re sorry, but something went wrong
On Fri, Aug 5, 2011 at 12:22 PM, Claude <claude.durocher@gmail.com> wrote:> Using "allow dashboard" in /facts then facter data is not displayed in > the dashboard (Could not retrieve facts from inventory service: 403 > "Forbidden"). >Is your certname actually ''dashboard'' or did you generate a different certname?> > Also not using * in /file_bucket_file/md5 forbids clients from > uploading bucketed files. >Hrm. That hasn''t been necessary whenever I''ve set it up. We might have to dig into why this is.> > Am I missing something here? >> > On 5 août, 15:09, Nigel Kersten <ni...@puppetlabs.com> wrote: > > On Fri, Aug 5, 2011 at 11:24 AM, Claude <claude.duroc...@gmail.com> > wrote: > > > I finally made it working by modifying auth.conf like this : > > > > > path /facts > > > auth any > > > method find, search > > > allow * > > > > > path /file_bucket_file/md5 > > > auth no > > > method find, save > > > allow * > > > > That''s going to allow everyone, and you really should lock it down to > just > > the dashboard itself. > > > > > > > > > > > > > On 5 août, 09:31, Nigel Kersten <ni...@puppetlabs.com> wrote: > > > > On Fri, Aug 5, 2011 at 5:14 AM, Claude <claude.duroc...@gmail.com> > > > wrote: > > > > > Here''s what the log shows : > > > > > > > Processing FilesController#show (for 10.10.10.1 at 2011-08-05 > > > > > 08:11:17) [GET] > > > > > Parameters: {"action"=>"show", "controller"=>"files", > > > > > "file"=>"70c1c6de6d4b1a02ec32b463e4d255b0"} > > > > > > > Net::HTTPServerException (403 "Forbidden"): > > > > > > Ahah. You''re missing this step. > > > > > >http://docs.puppetlabs.com/dashboard/manual/1.2/configuring.html > > > > > > Once the puppet master is properly configured with a database-backed > > > > inventory, edit your puppet master’s > > > > auth.conf<http://docs.puppetlabs.com/guides/rest_auth_conf.html> > file > > > > to grant Dashboard find and search access to /facts: > > > > > > path /facts > > > > auth yes > > > > method find, search > > > > allow dashboard > > > > > > (change the allow line to reference your certificate identity you > > > generated) > > > > > > /usr/lib64/ruby/1.8/net/http.rb:2105:in `error!'' > > > > > > > lib/puppet_https.rb:34:in `get'' > > > > > app/controllers/files_controller.rb:23:in `show'' > > > > > sass (3.1.2) [v] rails/./lib/sass/plugin/rack.rb:54:in `call'' > > > > > passenger (3.0.7) lib/phusion_passenger/rack/request_handler.rb: > > > > > 96:in `process_request'' > > > > > passenger (3.0.7) > lib/phusion_passenger/abstract_request_handler.rb: > > > > > 513:in `accept_and_process_next_request'' > > > > > passenger (3.0.7) > lib/phusion_passenger/abstract_request_handler.rb: > > > > > 274:in `main_loop'' > > > > > passenger (3.0.7) lib/phusion_passenger/classic_rails/ > > > > > application_spawner.rb:321:in `start_request_handler'' > > > > > passenger (3.0.7) lib/phusion_passenger/classic_rails/ > > > > > application_spawner.rb:275:in `send'' > > > > > passenger (3.0.7) lib/phusion_passenger/classic_rails/ > > > > > application_spawner.rb:275:in `handle_spawn_application'' > > > > > passenger (3.0.7) lib/phusion_passenger/utils.rb:479:in > `safe_fork'' > > > > > passenger (3.0.7) lib/phusion_passenger/classic_rails/ > > > > > application_spawner.rb:270:in `handle_spawn_application'' > > > > > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in > > > > > `__send__'' > > > > > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in > > > > > `server_main_loop'' > > > > > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:206:in > > > > > `start_synchronously'' > > > > > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:180:in > > > > > `start'' > > > > > passenger (3.0.7) lib/phusion_passenger/classic_rails/ > > > > > application_spawner.rb:149:in `start'' > > > > > passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:219:in > > > > > `spawn_rails_application'' > > > > > passenger (3.0.7) lib/phusion_passenger/ > > > > > abstract_server_collection.rb:132:in `lookup_or_add'' > > > > > passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:214:in > > > > > `spawn_rails_application'' > > > > > passenger (3.0.7) lib/phusion_passenger/ > > > > > abstract_server_collection.rb:82:in `synchronize'' > > > > > passenger (3.0.7) lib/phusion_passenger/ > > > > > abstract_server_collection.rb:79:in `synchronize'' > > > > > passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:213:in > > > > > `spawn_rails_application'' > > > > > passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:132:in > > > > > `spawn_application'' > > > > > passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:275:in > > > > > `handle_spawn_application'' > > > > > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in > > > > > `__send__'' > > > > > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in > > > > > `server_main_loop'' > > > > > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:206:in > > > > > `start_synchronously'' > > > > > passenger (3.0.7) helper-scripts/passenger-spawn-server:99 > > > > > > > The Dashboard and the master are running under passenger. > > > > > > > On 5 août, 01:46, Nigel Kersten <ni...@puppetlabs.com> wrote: > > > > > > On Thu, Aug 4, 2011 at 8:14 PM, Claude < > claude.duroc...@gmail.com> > > > > > wrote: > > > > > > > Using Puppet-DashBoard 1.2Rc3 with Puppet master 2.7.1 on the > same > > > > > > > server. > > > > > > > > > When trying to display bucketed file in the Dashboard, I get > the > > > > > > > following error message (after clicking on the link ''{md5}...) > : > > > > > > > > > We''re sorry, but something went wrong. We''ve been notified > about > > > this > > > > > > > issue and we''ll take a look at it shortly. > > > > > > > > Ugh. I hate that error message. > > > > >https://projects.puppetlabs.com/issues/8796 > > > > > > > > Have a look at log/production.log and see what''s going on. > > > > > > > > Can you try it against a puppet master in debug mode? > > > > > > > > > Here''s how I did the config : > > > > > > > > > -puppet cert generate dashboard > > > > > > > > > -Edit config/settings.yml : > > > > > > > cn_name: ''dashboard'' > > > > > > > ca_crl_path: ''/var/lib/puppet/ssl/ca/ca_crl.pem'' > > > > > > > ca_certificate_path: ''/var/lib/puppet/ssl/ca/ca_crt.pem'' > > > > > > > certificate_path: ''/var/lib/puppet/ssl/certs/dashboard.pem'' > > > > > > > private_key_path: > ''/var/lib/puppet/ssl/private_keys/dashboard.pem'' > > > > > > > public_key_path: > ''/var/lib/puppet/ssl/public_keys/dashboard.pem'' > > > > > > > > > -Edit site.pp : > > > > > > > filebucket { "main": > > > > > > > server => "puppet.myorg.internal", > > > > > > > path => false, > > > > > > > } > > > > > > > File { backup => "main" } > > > > > > > > Try adding: path => "false" ? > > > > > > > > > -Restart PuppetDashboard > > > > > > > > > -Generate a file update on a node. > > > > > > > > > I''ve located bucketed files on the master so the problem seems > to > > > be > > > > > > > between the dashboard and the master. How do I debug this? > > > > > > > > > -- > > > > > > > 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+unsubscribe@googlegroups.com. > > > > > > > For more options, visit this group at > > > > > > >http://groups.google.com/group/puppet-users?hl=en. > > > > > > > > -- > > > > > > Nigel Kersten > > > > > > Product Manager, Puppet Labs > > > > > > > > *Join us for **PuppetConf * > > > > > > <http://www.bit.ly/puppetconfsig> > > > > > > Sept 22/23 Portland, Oregon, USA. > > > > > > * > > > > > > * > > > > > > > -- > > > > > 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+unsubscribe@googlegroups.com. > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/puppet-users?hl=en. > > > > > > -- > > > > Nigel Kersten > > > > Product Manager, Puppet Labs > > > > > > *Join us for **PuppetConf * > > > > <http://www.bit.ly/puppetconfsig> > > > > Sept 22/23 Portland, Oregon, USA. > > > > * > > > > * > > > > > -- > > > 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+unsubscribe@googlegroups.com. > > > For more options, visit this group at > > >http://groups.google.com/group/puppet-users?hl=en. > > > > -- > > Nigel Kersten > > Product Manager, Puppet Labs > > > > *Join us for **PuppetConf * > > <http://www.bit.ly/puppetconfsig> > > Sept 22/23 Portland, Oregon, USA. > > * > > * > > -- > 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+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- Nigel Kersten Product Manager, Puppet Labs *Join us for **PuppetConf * <http://www.bit.ly/puppetconfsig> Sept 22/23 Portland, Oregon, USA. * * -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Claude
2011-Aug-05 19:54 UTC
[Puppet Users] Re: Unable to display Filebucket in Dashboard 1.2rc3 : We''re sorry, but something went wrong
Yes, the certname is ''dashboard'' :
server:/var/lib/puppet # ll ssl/certs/
total 12
-rw-r--r-- 1 puppet root 879 2011-07-07 11:03 ca.pem
-rw-r----- 1 puppet root 887 2011-08-05 10:05 dashboard.pem
server:/usr/share/puppet-dashboard # puppet cert --list --all
+ dashboard (BD:FC:15:2F:06:7D:43:2B:D2:88:B2:FD:86:ED:61:5D)
Also I noticed I can only read the first file, the changed file, not
the second, the original (content changed ''{md5}
70c1c6de6d4b1a02ec32b463e4d255b0'' to ''{md5}
78124298c2b4c1e63658599a2c208853'') :
info: FileBucket read 70c1c6de6d4b1a02ec32b463e4d255b0
info: Could not find file_bucket_file for
''md5/78124298c2b4c1e63658599a2c208853''
On 5 août, 15:25, Nigel Kersten <ni...@puppetlabs.com>
wrote:> On Fri, Aug 5, 2011 at 12:22 PM, Claude <claude.duroc...@gmail.com>
wrote:
> > Using "allow dashboard" in /facts then facter data is not
displayed in
> > the dashboard (Could not retrieve facts from inventory service: 403
> > "Forbidden").
>
> Is your certname actually ''dashboard'' or did you generate
a different
> certname?
>
>
>
> > Also not using * in /file_bucket_file/md5 forbids clients from
> > uploading bucketed files.
>
> Hrm. That hasn''t been necessary whenever I''ve set it up.
We might have to
> dig into why this is.
>
>
>
>
>
> > Am I missing something here?
>
> > On 5 août, 15:09, Nigel Kersten <ni...@puppetlabs.com> wrote:
> > > On Fri, Aug 5, 2011 at 11:24 AM, Claude
<claude.duroc...@gmail.com>
> > wrote:
> > > > I finally made it working by modifying auth.conf like this :
>
> > > > path /facts
> > > > auth any
> > > > method find, search
> > > > allow *
>
> > > > path /file_bucket_file/md5
> > > > auth no
> > > > method find, save
> > > > allow *
>
> > > That''s going to allow everyone, and you really should
lock it down to
> > just
> > > the dashboard itself.
>
> > > > On 5 août, 09:31, Nigel Kersten <ni...@puppetlabs.com>
wrote:
> > > > > On Fri, Aug 5, 2011 at 5:14 AM, Claude
<claude.duroc...@gmail.com>
> > > > wrote:
> > > > > > Here''s what the log shows :
>
> > > > > > Processing FilesController#show (for 10.10.10.1 at
2011-08-05
> > > > > > 08:11:17) [GET]
> > > > > > Parameters:
{"action"=>"show",
"controller"=>"files",
> > > > > >
"file"=>"70c1c6de6d4b1a02ec32b463e4d255b0"}
>
> > > > > > Net::HTTPServerException (403
"Forbidden"):
>
> > > > > Ahah. You''re missing this step.
>
> > > >
>http://docs.puppetlabs.com/dashboard/manual/1.2/configuring.html
>
> > > > > Once the puppet master is properly configured with a
database-backed
> > > > > inventory, edit your puppet master’s
> > > > >
auth.conf<http://docs.puppetlabs.com/guides/rest_auth_conf.html>
> > file
> > > > > to grant Dashboard find and search access to /facts:
>
> > > > > path /facts
> > > > > auth yes
> > > > > method find, search
> > > > > allow dashboard
>
> > > > > (change the allow line to reference your certificate
identity you
> > > > generated)
>
> > > > > /usr/lib64/ruby/1.8/net/http.rb:2105:in
`error!''
>
> > > > > > lib/puppet_https.rb:34:in `get''
> > > > > > app/controllers/files_controller.rb:23:in
`show''
> > > > > > sass (3.1.2) [v]
rails/./lib/sass/plugin/rack.rb:54:in `call''
> > > > > > passenger (3.0.7)
lib/phusion_passenger/rack/request_handler.rb:
> > > > > > 96:in `process_request''
> > > > > > passenger (3.0.7)
> > lib/phusion_passenger/abstract_request_handler.rb:
> > > > > > 513:in `accept_and_process_next_request''
> > > > > > passenger (3.0.7)
> > lib/phusion_passenger/abstract_request_handler.rb:
> > > > > > 274:in `main_loop''
> > > > > > passenger (3.0.7)
lib/phusion_passenger/classic_rails/
> > > > > > application_spawner.rb:321:in
`start_request_handler''
> > > > > > passenger (3.0.7)
lib/phusion_passenger/classic_rails/
> > > > > > application_spawner.rb:275:in `send''
> > > > > > passenger (3.0.7)
lib/phusion_passenger/classic_rails/
> > > > > > application_spawner.rb:275:in
`handle_spawn_application''
> > > > > > passenger (3.0.7)
lib/phusion_passenger/utils.rb:479:in
> > `safe_fork''
> > > > > > passenger (3.0.7)
lib/phusion_passenger/classic_rails/
> > > > > > application_spawner.rb:270:in
`handle_spawn_application''
> > > > > > passenger (3.0.7)
lib/phusion_passenger/abstract_server.rb:357:in
> > > > > > `__send__''
> > > > > > passenger (3.0.7)
lib/phusion_passenger/abstract_server.rb:357:in
> > > > > > `server_main_loop''
> > > > > > passenger (3.0.7)
lib/phusion_passenger/abstract_server.rb:206:in
> > > > > > `start_synchronously''
> > > > > > passenger (3.0.7)
lib/phusion_passenger/abstract_server.rb:180:in
> > > > > > `start''
> > > > > > passenger (3.0.7)
lib/phusion_passenger/classic_rails/
> > > > > > application_spawner.rb:149:in `start''
> > > > > > passenger (3.0.7)
lib/phusion_passenger/spawn_manager.rb:219:in
> > > > > > `spawn_rails_application''
> > > > > > passenger (3.0.7) lib/phusion_passenger/
> > > > > > abstract_server_collection.rb:132:in
`lookup_or_add''
> > > > > > passenger (3.0.7)
lib/phusion_passenger/spawn_manager.rb:214:in
> > > > > > `spawn_rails_application''
> > > > > > passenger (3.0.7) lib/phusion_passenger/
> > > > > > abstract_server_collection.rb:82:in
`synchronize''
> > > > > > passenger (3.0.7) lib/phusion_passenger/
> > > > > > abstract_server_collection.rb:79:in
`synchronize''
> > > > > > passenger (3.0.7)
lib/phusion_passenger/spawn_manager.rb:213:in
> > > > > > `spawn_rails_application''
> > > > > > passenger (3.0.7)
lib/phusion_passenger/spawn_manager.rb:132:in
> > > > > > `spawn_application''
> > > > > > passenger (3.0.7)
lib/phusion_passenger/spawn_manager.rb:275:in
> > > > > > `handle_spawn_application''
> > > > > > passenger (3.0.7)
lib/phusion_passenger/abstract_server.rb:357:in
> > > > > > `__send__''
> > > > > > passenger (3.0.7)
lib/phusion_passenger/abstract_server.rb:357:in
> > > > > > `server_main_loop''
> > > > > > passenger (3.0.7)
lib/phusion_passenger/abstract_server.rb:206:in
> > > > > > `start_synchronously''
> > > > > > passenger (3.0.7)
helper-scripts/passenger-spawn-server:99
>
> > > > > > The Dashboard and the master are running under
passenger.
>
> > > > > > On 5 août, 01:46, Nigel Kersten
<ni...@puppetlabs.com> wrote:
> > > > > > > On Thu, Aug 4, 2011 at 8:14 PM, Claude <
> > claude.duroc...@gmail.com>
> > > > > > wrote:
> > > > > > > > Using Puppet-DashBoard 1.2Rc3 with
Puppet master 2.7.1 on the
> > same
> > > > > > > > server.
>
> > > > > > > > When trying to display bucketed file in
the Dashboard, I get
> > the
> > > > > > > > following error message (after clicking
on the link ''{md5}...)
> > :
>
> > > > > > > > We''re sorry, but something went
wrong. We''ve been notified
> > about
> > > > this
> > > > > > > > issue and we''ll take a look at
it shortly.
>
> > > > > > > Ugh. I hate that error message.
> > > > > >https://projects.puppetlabs.com/issues/8796
>
> > > > > > > Have a look at log/production.log and see
what''s going on.
>
> > > > > > > Can you try it against a puppet master in
debug mode?
>
> > > > > > > > Here''s how I did the config :
>
> > > > > > > > -puppet cert generate dashboard
>
> > > > > > > > -Edit config/settings.yml :
> > > > > > > > cn_name: ''dashboard''
> > > > > > > > ca_crl_path:
''/var/lib/puppet/ssl/ca/ca_crl.pem''
> > > > > > > > ca_certificate_path:
''/var/lib/puppet/ssl/ca/ca_crt.pem''
> > > > > > > > certificate_path:
''/var/lib/puppet/ssl/certs/dashboard.pem''
> > > > > > > > private_key_path:
> > ''/var/lib/puppet/ssl/private_keys/dashboard.pem''
> > > > > > > > public_key_path:
> > ''/var/lib/puppet/ssl/public_keys/dashboard.pem''
>
> > > > > > > > -Edit site.pp :
> > > > > > > > filebucket { "main":
> > > > > > > > server =>
"puppet.myorg.internal",
> > > > > > > > path => false,
> > > > > > > > }
> > > > > > > > File { backup => "main" }
>
> > > > > > > Try adding: path => "false" ?
>
> > > > > > > > -Restart PuppetDashboard
>
> > > > > > > > -Generate a file update on a node.
>
> > > > > > > > I''ve located bucketed files on
the master so the problem seems
> > to
> > > > be
> > > > > > > > between the dashboard and the master.
How do I debug this?
>
> > > > > > > > --
> > > > > > > > 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+unsubscribe@googlegroups.com.
> > > > > > > > For more options, visit this group at
> > > > > > >
>http://groups.google.com/group/puppet-users?hl=en.
>
> > > > > > > --
> > > > > > > Nigel Kersten
> > > > > > > Product Manager, Puppet Labs
>
> > > > > > > *Join us for **PuppetConf *
> > > > > > > <http://www.bit.ly/puppetconfsig>
> > > > > > > Sept 22/23 Portland, Oregon, USA.
> > > > > > > *
> > > > > > > *
>
> > > > > > --
> > > > > > 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+unsubscribe@googlegroups.com.
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/puppet-users?hl=en.
>
> > > > > --
> > > > > Nigel Kersten
> > > > > Product Manager, Puppet Labs
>
> > > > > *Join us for **PuppetConf *
> > > > > <http://www.bit.ly/puppetconfsig>
> > > > > Sept 22/23 Portland, Oregon, USA.
> > > > > *
> > > > > *
>
> > > > --
> > > > 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+unsubscribe@googlegroups.com.
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/puppet-users?hl=en.
>
> > > --
> > > Nigel Kersten
> > > Product Manager, Puppet Labs
>
> > > *Join us for **PuppetConf *
> > > <http://www.bit.ly/puppetconfsig>
> > > Sept 22/23 Portland, Oregon, USA.
> > > *
> > > *
>
> > --
> > 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+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/puppet-users?hl=en.
>
> --
> Nigel Kersten
> Product Manager, Puppet Labs
>
> *Join us for **PuppetConf *
> <http://www.bit.ly/puppetconfsig>
> Sept 22/23 Portland, Oregon, USA.
> *
> *
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
Peter Meier
2011-Aug-08 06:49 UTC
Re: [Puppet Users] Re: Unable to display Filebucket in Dashboard 1.2rc3 : We''re sorry, but something went wrong
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1> Also I noticed I can only read the first file, the changed file, not > the second, the original (content changed ''{md5} > 70c1c6de6d4b1a02ec32b463e4d255b0'' to ''{md5} > 78124298c2b4c1e63658599a2c208853'') : > > info: FileBucket read 70c1c6de6d4b1a02ec32b463e4d255b0 > info: Could not find file_bucket_file for > ''md5/78124298c2b4c1e63658599a2c208853''This is a known current limitation: http://projects.puppetlabs.com/issues/7934 Because puppet hasn''t yet uploaded the version of the file to the file bucket it installed, it only uploads the changed versions. ~pete -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk4/hukACgkQbwltcAfKi38/mACfbsAwBocPZ/TqGXjWc2SJmWUW PB8An1Rm+UkZVkQ0BSO5BGqL8ACF2apn =QIfL -----END PGP SIGNATURE----- -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.