I have, just now I got:
undefined method `with_indifferent_access'' for nil:NilClass
Extracted source (around line #10):
7: %tbody
8: %tr
9: %th Runtime
10: - reports.map{|r| r.metrics[:time][:total]}.each do |time|
11: %td= "%0.3f" % time
Trace of template inclusion: app/views/statuses/show.html.haml
RAILS_ROOT: /var/www/rails/puppet.insane.se/current
Application Trace | Framework Trace | Full Trace
/var/www/rails/puppet.insane.se/current/vendor/rails/activesupport/lib/
active_support/whiny_nil.rb:52:in `method_missing''
/var/www/rails/puppet.insane.se/current/app/models/report.rb:25:in
`metrics''
/var/www/rails/puppet.insane.se/current/app/views/statuses/
_run_time.html.haml:10:in
`_run_haml_app47views47statuses47_run_time46html46haml_locals_object_reports_run_time''
/var/www/rails/puppet.insane.se/current/app/views/statuses/
_run_time.html.haml:10:in `map''
/var/www/rails/puppet.insane.se/current/app/views/statuses/
_run_time.html.haml:10:in
`_run_haml_app47views47statuses47_run_time46html46haml_locals_object_reports_run_time''
/var/www/rails/puppet.insane.se/current/app/views/statuses/
show.html.haml:8:in `_run_haml_app47views47statuses47show46html46haml''
On 30 Dec 2009, 22:51, Brady Catherman <br...@catherman.org>
wrote:> Every time I load reports into puppet-dashboard I get tons of
> nil:NilClass errors on every page. Here is an example stack trace. Has
> anybody encountered this before? (puppet 0.25.1 with puppet-dashboard
> checked out today).
>
> undefined method `with_indifferent_access'' for nil:NilClass
>
> Extracted source (around line #9):
>
> 6: %li
> 7: %span.sparkline= Status.runtime.join('', '')
> 8: %strong== #{"%0.2f" % Status.runtime.last}s
> 9: Run Time
> 10: %div{:style => ''text-align: right;''}
> 11: = link_to "Status Report »", status_path, :class
=> ''button''
>
> Trace of template inclusion: app/views/shared/_global_nav.html.haml,
> app/views/layouts/secondary_primary.haml
>
> RAILS_ROOT: /home/brady/puppet-dashboard
>
> /home/brady/puppet-dashboard/app/models/report.rb:25:in `metrics''
> /home/brady/puppet-dashboard/app/models/status.rb:47:in `runtime''
> /home/brady/puppet-dashboard/app/models/status.rb:47:in `map''
> /home/brady/puppet-dashboard/app/models/status.rb:47:in `runtime''
> /home/brady/puppet-dashboard/app/views/statuses/_overview.html.haml:
> 9:in
> `
> _run_haml_app47views47statuses47_overview46html46haml_locals_object_overvie
w
> ''
> /home/brady/puppet-dashboard/app/views/shared/_global_nav.html.haml:
> 13:in
> `
> _run_haml_app47views47shared47_global_nav46html46haml_locals_global_nav_obj
ect
> ''
> /home/brady/puppet-dashboard/app/views/layouts/secondary_primary.haml:
> 18:in `_run_haml_app47views47layouts47secondary_primary46haml''
--
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.