26 June 2015

Foreman bug Warning Infinity

Yet another bug in newly installed Foreman,

While browsing diffrent parts of foreman gui, I get this error:

We're sorry, but something went wrong!

Warning!
Infinity

And in the logs:

# cat /var/log/foreman/production.log
Started GET "/hosts?search=last_report+%3E+%225+minutes+ago%22+and+status.enabled+%3D+true+and+status.applied+%3D+0+and+status.failed+%3D+0+and+status.pending+%3D+0" for 10.8.204.208 at 2015-06-26 14:53:12 +0200
2015-06-26 14:53:12 [I] Processing by HostsController#index as HTML
2015-06-26 14:53:12 [I]   Parameters: {"search"=>"last_report > \"5 minutes ago\" and status.enabled = true and status.applied = 0 and status.failed = 0 and status.pending = 0"}
2015-06-26 14:53:12 [I]   Rendered hosts/_list.html.erb (8.9ms)
2015-06-26 14:53:12 [I]   Rendered hosts/index.html.erb within layouts/application (12.8ms)
2015-06-26 14:53:12 [W] Operation FAILED: Infinity
2015-06-26 14:53:12 [I]   Rendered common/500.html.erb within layouts/application (4.1ms)
2015-06-26 14:53:12 [I]   Rendered layouts/base.html.erb (1.1ms)
2015-06-26 14:53:12 [I] Completed 500 Internal Server Error in 35ms (Views: 6.1ms | ActiveRecord: 0.0ms)


To solve this issue, the value for entries_per_page need to be set to a non 0 value:

Administer > Settings > General > entries_per_page 0 -> 20





No comments:

Post a Comment