puppet dashboard 1.2.15-rc1 report search problem

205 views
Skip to first unread message

Luca Gioppo

unread,
Dec 13, 2012, 6:19:44 PM12/13/12
to puppet...@googlegroups.com
On a fresh Dashboard installation I get these:

Puppet Dashboard encountered an error.

Something went wrong, and Puppet Dashboard was unable to render the requested page. Please contact your site’s help desk or systems administrator; if that happens to be you, please check Dashboard’s logs for more information.


Processing ReportsController#search (for 93.38.53.173 at 2012-12-13 23:55:51) [GET]
  Parameters: {"controller"=>"reports", "action"=>"search"}
Rendering template within layouts/application
Rendering reports/search

ActionView::TemplateError (undefined local variable or method `errors' for #<ActionView::Base:0x7fc3aef36848>) on line #9 of app/views/reports/search.html.haml:
6:       Search Latest Inspect Reports
7:
8:   .item
9:     - if errors.present?
10:       %div{:class => "section error"}
11:         %h3 Errors
12:         - errors.each do |messages|

    app/views/reports/search.html.haml:9:in `_run_haml_app47views47reports47search46html46haml'
    haml (3.1.2) [v] rails/./lib/haml/helpers/action_view_mods.rb:13:in `render'
    haml (3.1.2) [v] rails/./lib/haml/helpers/action_view_mods.rb:13:in `render'
    sass (3.1.2) [v] rails/./lib/sass/plugin/rack.rb:54:in `call'
    /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
    /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
    /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
    /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
    /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
    /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'

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


Any idea on what could be the problem?

Thanks

Luca


Aaron Stone

unread,
Dec 17, 2012, 6:24:18 PM12/17/12
to puppet...@googlegroups.com
Please try this PR:


On Fri, Dec 14, 2012 at 11:03 AM, <ivan.ar...@spadz.com> wrote:

Change ./app/views/reports/search.html.haml like this :

 .item
    - if flash[:errors].present?

      %div{:class => "section error"}
        %h3 Errors
        - flash[:errors].each do |messages|
          %p
            - messages.each do |message|
              %li= h message


Voilà

Ivan
--
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/-/pm0CwOWeacoJ.

To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Aaron Stone

unread,
Dec 29, 2012, 10:18:31 AM12/29/12
to puppet...@googlegroups.com
For closure on the thread, this is now fixed in Dashboard 1.2.16.


--
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/-/u9bg24moPsMJ.
Reply all
Reply to author
Forward
0 new messages