I have figured out that an empty database allows the dashboard to work without failure but as soon a report from a node is added the whole thing breaks with the to_time errors.
Clients and master are running Puppet 2.6.3. On Nov 12, 10:01 am, Kent <[email protected]> wrote: > Using 1.0.4 release on Solaris 10 with Ruby 1.8.7. > Starting the server in production mode works fine until I request a > page from the web browser then I get the following errors on the > console. I'm running as user puppet (have also tried as user root but > same output). All files are owned by user/group puppet/puppet. > I have dropped and recreated the database multiple times just to see > if that was the issue. > I have removed the dashboard software and reinstalled it multiple > times to double check that I didn't mess something up. > I have no data in the DB just whatever would be there after the rake > migrate steps in the readme. > The rake migration steps run to completion without error so I know the > mysql connector is setup and working properly. > > Any help would be greatly appreciated. > > -bash-3.00$ ./script/server -e production > => Booting WEBrick > => Rails 2.3.5 application starting onhttp://0.0.0.0:3000 > => Call with -d to detach > => Ctrl-C to shutdown server > [2010-11-12 11:51:18] INFO WEBrick 1.3.1 > [2010-11-12 11:51:18] INFO ruby 1.8.7 (2010-08-16) [sparc- > solaris2.10] > [2010-11-12 11:51:18] INFO WEBrick::HTTPServer#start: pid=3348 > port=3000 > > Processing PagesController#home (for 192.168.0.20 at 2010-11-12 > 11:51:54) [GET] > Parameters: {"action"=>"home", "controller"=>"pages"} > > NoMethodError (undefined method `to_time' for nil:NilClass): > app/models/status.rb:7:in `initialize' > app/models/status.rb:76:in `new' > app/models/status.rb:76:in `execute' > app/models/status.rb:76:in `map' > app/models/status.rb:76:in `execute' > app/models/status.rb:66:in `by_interval' > app/controllers/pages_controller.rb:3:in `home' > haml (3.0.13) [v] rails/./lib/sass/plugin/rack.rb:41:in `call' > /opt/puppet/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' > /opt/puppet/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' > /opt/puppet/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' > /opt/puppet/lib/ruby/1.8/webrick/server.rb:162:in `start' > /opt/puppet/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' > /opt/puppet/lib/ruby/1.8/webrick/server.rb:95:in `start' > /opt/puppet/lib/ruby/1.8/webrick/server.rb:92:in `each' > /opt/puppet/lib/ruby/1.8/webrick/server.rb:92:in `start' > /opt/puppet/lib/ruby/1.8/webrick/server.rb:23:in `start' > /opt/puppet/lib/ruby/1.8/webrick/server.rb:82:in `start' > > Rendering /opt/puppet-dashboard-1.0.4/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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
