Hello,

I have got an error 500 when I try to view a report in the dashboard

Here is the log :



ERROR: compiling
_run_haml_app47views47reports47_resource_statuses46html46haml_locals_object_report_resource_statuses
RAISED Input/output error
Function body:           def
_run_haml_app47views47reports47_resource_statuses46html46haml_locals_object_report_resource_statuses(local_assigns)
            old_output_buffer = output_buffer;object =
local_assigns[:object];resource_statuses =
local_assigns[:resource_statuses];report =
local_assigns[:report];;begin;extend Haml::Helpers;_hamlout = @haml_buffer =
Haml::Buffer.new(@haml_buffer, {:autoclose=>["meta", "img", "link", "br",
"hr", "input", "area", "param", "col", "base"], :ugly=>true,
:escape_html=>false, :encoding=>nil, :preserve=>["textarea", "pre", "code"],
:attr_wrapper=>"'", :format=>:xhtml});_erbout =
_hamlout.buffer;__in_erb_template = true;; if
report.resource_statuses.present?;
_hamlout.buffer << "<div class='section'>\n<h3>\nEvents\n";


_hamlout.open_tag("a", false, true, false, false, {}, false, false, nil,
"(expand all)",  :href => '#', :class => 'expand-all' );_hamlout.buffer <<
"</h3>\n<div class='section'>\n<dl class='expandable-list'>\n";


 report.resource_statuses.sort_by(&:time).each_with_index do |status,
index|;
_hamlout.open_tag("dt", false, false, false, false, {}, false, false, nil,
nil, :class => cycle( 'odd', 'even' ));_hamlout.buffer << "<div
class='expandable-list-item'>\n";

 if status.events.empty?;
_hamlout.buffer << "<span class='non-expandable-bullet'>#{status.name
}</span>\n"; else;
_hamlout.buffer << "#{ link_to h(status.name), {}, {:class =>
'expandable-link collapsed-link', :id => "expand-#{index}"}
}\n";end;_hamlout.buffer << "</div>\n"; if status.file or status.line;
_hamlout.buffer << "#{ "(#{status.file}:#{status.line})"
}\n";end;_hamlout.buffer << "</dt>\n";_hamlout.open_tag("dd", false, false,
false, false, {"class"=>"expandable collapsed"}, false, false, nil, nil, :id
=> "expandable-#{index}");_hamlout.buffer <<
"<table>\n<tr>\n<th>Property</th>\n<th>Message</th>\n</tr>\n";



 status.events.each do |event|;
_hamlout.open_tag("tr", false, false, false, false, {}, false, false, nil,
nil, :class => "status #{event.status}");_hamlout.buffer << "<td>#{
event.property
}</td>\n<td>#{popup_md5s( h event.message )
}</td>\n</tr>\n";end;_hamlout.buffer <<
"</table>\n</dd>\n";end;_hamlout.buffer <<
"</dl>\n</div>\n</div>\n";end;_erbout;ensure;@haml_buffer =
@haml_buffer.upper;end;
          ensure
            self.output_buffer = old_output_buffer
          end

Backtrace:
/usr/share/puppet-dashboard/app/views/reports/_resource_statuses.html.haml:25:in
`write'

ActionView::TemplateError (Input/output error) on line #25 of
app/views/reports/_resource_statuses.html.haml:
22:               - status.events.each do |event|
23:                 %tr{:class => "status #{event.status}"}
24:                   %td= event.property
25:                   %td= popup_md5s( h event.message )

    app/views/reports/_resource_statuses.html.haml:25:in `write'


Rendering /usr/share/puppet-dashboard/public/500.html (500 Internal Server
Error)

-- 
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