Infinity Error after upgrade

Yesterday I ran a yum update on my Foreman server and after it was
completed I keep getting the following error on a majority of the Foreman
screens.

FloatDomainError
Infinity
app/helpers/layout_helper.rb:236:in page_entries_info' app/views/hosts/_list.html.erb:53:in_app_views_hosts__list_html_erb__1797214395852501097_70298889968840'
app/views/hosts/index.html.erb:4:in
_app_views_hosts_index_html_erb___626477714565349923_94565820' app/models/concerns/foreman/thread_session.rb:33:inclear_thread'
lib/middleware/catch_json_parse_errors.rb:9:in `call'

I can see the dashboard but can't see my hosts, puppet, and a majority of
the other foreman views.

Here is what was updated (foreman / ruby):

Nov 04 11:23:02 Updated: foreman-1.6.1-1.el6.noarch
Nov 04 11:24:08 Updated: foreman-compute-1.6.1-1.el6.noarch
Nov 04 11:24:58 Updated: foreman-selinux-1.6.1-1.el6.noarch
Nov 04 11:25:20 Updated: 1:foreman-installer-1.6.2-1.el6.noarch
Nov 04 11:25:26 Updated: foreman-vmware-1.6.1-1.el6.noarch
Nov 04 11:25:30 Updated: ruby193-rubygem-foreman_bootdisk-3.2.1-1.el6.noarch
Nov 04 11:25:30 Updated: foreman-postgresql-1.6.1-1.el6.noarch
Nov 04 11:25:31 Updated:
ruby193-rubygem-foreman_discovery-1.4.0-2.el6.noarch
Nov 04 11:25:31 Updated: foreman-cli-1.6.1-1.el6.noarch

Nov 04 11:22:11 Updated: ruby-libs-1.8.7.374-2.el6.x86_64
Nov 04 11:22:11 Updated: ruby-1.8.7.374-2.el6.x86_64
Nov 04 11:22:23 Updated: ruby-irb-1.8.7.374-2.el6.x86_64
Nov 04 11:22:39 Updated: libselinux-ruby-2.0.94-5.8.el6.x86_64
Nov 04 11:25:30 Updated: ruby193-rubygem-foreman_bootdisk-3.2.1-1.el6.noarch
Nov 04 11:25:31 Updated:
ruby193-rubygem-foreman_discovery-1.4.0-2.el6.noarch
Nov 04 11:25:42 Updated: ruby-rdoc-1.8.7.374-2.el6.x86_64
Nov 04 11:25:45 Updated: ruby-devel-1.8.7.374-2.el6.x86_64

Looking at this error I see one work around is to drop my database but that
is probably the last thing I want to do.

Patrick

Adding Debug log snippet to show more information on the stack trace

Started GET "/hosts" for 149.8.204.99 at 2014-11-05 13:48:14 -0500
Processing by HostsController#index as HTML
User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1
LIMIT 1 [["id", 4]]
Setting current user thread-local variable to pdevine
AuthSource Load (0.4ms) SELECT "auth_sources".* FROM "auth_sources"
WHERE "auth_sources"."id" = 3 LIMIT 1
Host::Managed Load (0.4ms) SELECT "hosts".* FROM "hosts" WHERE
"hosts"."type" IN ('Host::Managed') LIMIT 1
(0.3ms) SELECT COUNT() FROM "user_facts" WHERE "user_facts"."user_id"
= 4
Host::Managed Load (0.4ms) SELECT "hosts".
FROM "hosts" WHERE
"hosts"."type" IN ('Host::Managed') ORDER BY "hosts"."name" ASC NULLS FIRST
LIMIT 0 OFFSET 0
(0.3ms) SELECT COUNT(*) FROM "hosts" WHERE "hosts"."type" IN
('Host::Managed')
(0.2ms) SELECT MAX("reports"."id") AS maximum_id, host_id AS host_id
FROM "reports" WHERE "reports"."host_id" IN (NULL) GROUP BY host_id
Rendered hosts/_list.html.erb (5.5ms)
Rendered hosts/index.html.erb within layouts/application (9.7ms)
Operation FAILED: Infinity
/opt/rh/ruby193/root/usr/share/gems/gems/will_paginate-3.0.2/lib/will_paginate/collection.rb:16:in
ceil' /opt/rh/ruby193/root/usr/share/gems/gems/will_paginate-3.0.2/lib/will_paginate/collection.rb:16:intotal_pages'
/usr/share/foreman/app/helpers/layout_helper.rb:236:in page_entries_info' /usr/share/foreman/app/views/hosts/_list.html.erb:53:in_app_views_hosts__list_html_erb__932602197417181104_86172060'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/template.rb:145:in
block in render' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:125:ininstrument'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/template.rb:143:in
render' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/partial_renderer.rb:265:inrender_partial'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/partial_renderer.rb:238:in
block in render' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/abstract_renderer.rb:38:inblock in instrument'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:in
block in instrument' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:ininstrument'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:in
instrument' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/abstract_renderer.rb:38:ininstrument'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/partial_renderer.rb:237:in
render' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/renderer.rb:41:inrender_partial'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/helpers/rendering_helper.rb:27:in
render' /usr/share/foreman/app/views/hosts/index.html.erb:4:in_app_views_hosts_index_html_erb__3244869966136866865_94252760'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/template.rb:145:in
block in render' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:125:ininstrument'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/template.rb:143:in
render' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/template_renderer.rb:47:inblock (2 levels) in render_template'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/abstract_renderer.rb:38:in
block in instrument' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:inblock in instrument'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in
instrument' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:ininstrument'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/abstract_renderer.rb:38:in
instrument' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/template_renderer.rb:46:inblock in render_template'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/template_renderer.rb:54:in
render_with_layout' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/template_renderer.rb:45:inrender_template'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/template_renderer.rb:18:in
render' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/renderer.rb:36:inrender_template'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/renderer.rb:17:in
render' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/rendering.rb:110:in_render_template'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/streaming.rb:225:in
_render_template' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/rendering.rb:103:inrender_to_body'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/renderers.rb:28:in
render_to_body' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/compatibility.rb:50:inrender_to_body'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/rendering.rb:88:in
render' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rendering.rb:16:inrender'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:40:in
block (2 levels) in render' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/core_ext/benchmark.rb:5:inblock in ms'
/opt/rh/ruby193/root/usr/share/ruby/benchmark.rb:295:in realtime' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/core_ext/benchmark.rb:5:inms'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:40:in
block in render' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:83:incleanup_view_runtime'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/railties/controller_runtime.rb:24:in
cleanup_view_runtime' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:39:inrender'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/implicit_render.rb:10:in
default_render' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/implicit_render.rb:5:insend_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:167:in
process_action' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rendering.rb:10:inprocess_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/callbacks.rb:18:in
block in process_action' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:549:inblock (3 levels) in
_run__4461592453338365547__process_action__4224065486832449181__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in
block in _conditional_callback_around_6930' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:326:inaround'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:310:in
_callback_around_1831' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in_conditional_callback_around_6930'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:548:in
block (2 levels) in _run__4461592453338365547__process_action__4224065486832449181__callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:inblock in _conditional_callback_around_6929'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:33:in
clear_thread' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in_conditional_callback_around_6929'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:426:in
block in _run__4461592453338365547__process_action__4224065486832449181__callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:inblock in _conditional_callback_around_6928'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:326:in
around' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:310:in_callback_around_13'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in
_conditional_callback_around_6928' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:414:in_run__4461592453338365547__process_action__4224065486832449181__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in
__run_callback' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in_run_process_action_callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in
run_callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/callbacks.rb:17:inprocess_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rescue.rb:29:in
process_action' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:30:inblock in process_action'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:in
block in instrument' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:ininstrument'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:in
instrument' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:29:inprocess_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/params_wrapper.rb:207:in
process_action' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/railties/controller_runtime.rb:18:inprocess_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:121:in
process' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/rendering.rb:45:inprocess'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal.rb:203:in
dispatch' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rack_delegation.rb:14:indispatch'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal.rb:246:in
block in action' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:73:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:73:in
dispatch' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:36:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:68:in
block in call' /opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:ineach'
/opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:600:incall'
/opt/rh/ruby193/root/usr/local/share/gems/gems/apipie-rails-0.2.6/lib/apipie/extractor/recorder.rb:97:in
call' /opt/rh/ruby193/root/usr/local/share/gems/gems/apipie-rails-0.2.6/lib/apipie/middleware/checksum_in_headers.rb:27:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/best_standards_support.rb:17:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/etag.rb:23:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/conditionalget.rb:25:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/head.rb:14:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/params_parser.rb:21:in
call' /usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:9:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/flash.rb:242:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:205:incontext'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:200:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/cookies.rb:339:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/query_cache.rb:64:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:473:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/callbacks.rb:28:in
block in call' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in_run__1325390199749062960__call__348781745320908576__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in
__run_callback' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in_run_call_callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in
run_callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/callbacks.rb:27:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/remote_ip.rb:31:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/debug_exceptions.rb:16:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/show_exceptions.rb:56:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/rack/logger.rb:26:incall_app'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/rack/logger.rb:16:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/request_id.rb:22:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/runtime.rb:17:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/cache/strategy/local_cache.rb:72:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/lock.rb:15:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/static.rb:62:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:inforward'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:in
fetch' /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:185:inlookup'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in
call!' /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:479:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application.rb:223:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in
method_missing' /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:134:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:64:in
block in call' /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:49:ineach'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:49:in
call' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:inprocess_request'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in
accept_and_process_next_request' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:inmain_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in
`block (3 levels) in start_threads'
Rendered common/500.html.erb within layouts/application (4.0ms)
Rendered layouts/base.html.erb (1.1ms)
Completed 500 Internal Server Error in 29ms (Views: 6.1ms | ActiveRecord:
0.0ms)

··· On Wednesday, November 5, 2014 9:36:17 AM UTC-5, Patrick Devine wrote: > > Yesterday I ran a yum update on my Foreman server and after it was > completed I keep getting the following error on a majority of the Foreman > screens. > > *FloatDomainError* > *Infinity* > app/helpers/layout_helper.rb:236:in `page_entries_info' > app/views/hosts/_list.html.erb:53:in > `_app_views_hosts__list_html_erb__1797214395852501097_70298889968840' > app/views/hosts/index.html.erb:4:in > `_app_views_hosts_index_html_erb___626477714565349923_94565820' > app/models/concerns/foreman/thread_session.rb:33:in `clear_thread' > lib/middleware/catch_json_parse_errors.rb:9:in `call' > > I can see the dashboard but can't see my hosts, puppet, and a majority of > the other foreman views. > > Here is what was updated (foreman / ruby): > > Nov 04 11:23:02 Updated: foreman-1.6.1-1.el6.noarch > Nov 04 11:24:08 Updated: foreman-compute-1.6.1-1.el6.noarch > Nov 04 11:24:58 Updated: foreman-selinux-1.6.1-1.el6.noarch > Nov 04 11:25:20 Updated: 1:foreman-installer-1.6.2-1.el6.noarch > Nov 04 11:25:26 Updated: foreman-vmware-1.6.1-1.el6.noarch > Nov 04 11:25:30 Updated: > ruby193-rubygem-foreman_bootdisk-3.2.1-1.el6.noarch > Nov 04 11:25:30 Updated: foreman-postgresql-1.6.1-1.el6.noarch > Nov 04 11:25:31 Updated: > ruby193-rubygem-foreman_discovery-1.4.0-2.el6.noarch > Nov 04 11:25:31 Updated: foreman-cli-1.6.1-1.el6.noarch > > Nov 04 11:22:11 Updated: ruby-libs-1.8.7.374-2.el6.x86_64 > Nov 04 11:2

Yup… I just re-ran the entire upgrade.

[root@foreman foreman]# cd /usr/share/foreman
[root@foreman foreman]# ls
app bundler.d config config.ru db discovery_image extras
foreman_hooks Gemfile.in lib locale log migrate plugins public
Rakefile script seeds.d seeds.rb tmp VERSION
[root@foreman foreman]# foreman-rake db:migrate
[root@foreman foreman]# foreman-rake db:seed
Seeding /usr/share/foreman/db/seeds.d/03-auth_sources.rb
Seeding /usr/share/foreman/db/seeds.d/03-permissions.rb
Seeding /usr/share/foreman/db/seeds.d/03-roles.rb
Seeding /usr/share/foreman/db/seeds.d/04-admin.rb
Seeding /usr/share/foreman/db/seeds.d/05-taxonomies.rb
Seeding /usr/share/foreman/db/seeds.d/06-architectures.rb
Seeding /usr/share/foreman/db/seeds.d/07-config_templates.rb
Seeding /usr/share/foreman/db/seeds.d/08-partition_tables.rb
Seeding /usr/share/foreman/db/seeds.d/10-installation_media.rb
Seeding /usr/share/foreman/db/seeds.d/11-smart_proxy_features.rb
Seeding /usr/share/foreman/db/seeds.d/13-compute_profiles.rb
Seeding /usr/share/foreman/db/seeds.d/15-bookmarks.rb
Seeding
/opt/rh/ruby193/root/usr/share/gems/gems/foreman_bootdisk-3.2.1/db/seeds.d/50-bootdisk_templates.rb
All seed files executed
[root@foreman foreman]# foreman-rake tmp:cache:clear
[root@foreman foreman]# foreman-rake tmp:sessions:clear
[root@foreman foreman]# foreman-installer --noop --dont-save-answers
–verbose

[ INFO 2014-11-05 13:55:06 verbose] Executing hooks in group boot
[ INFO 2014-11-05 13:55:06 verbose] All hooks in group boot finished
[ INFO 2014-11-05 13:55:06 verbose] Executing hooks in group init
[ INFO 2014-11-05 13:55:06 verbose] All hooks in group init finished
[ INFO 2014-11-05 13:55:06 verbose] Parsing default values from puppet
modules…
[ INFO 2014-11-05 13:55:06 verbose] … finished
[ INFO 2014-11-05 13:55:06 verbose] Executing hooks in group pre_values
[ INFO 2014-11-05 13:55:06 verbose] All hooks in group pre_values finished
[ INFO 2014-11-05 13:55:06 verbose] Executing hooks in group pre_validations
[ INFO 2014-11-05 13:55:06 verbose] All hooks in group pre_validations
finished
[ INFO 2014-11-05 13:55:06 verbose] Running validation checks
[ INFO 2014-11-05 13:55:07 verbose] Executing hooks in group pre
[ WARN 2014-11-05 13:55:07 verbose] Hook 'Kafo::HookContext' is using block
with arguments which is DEPRECATED, access to kafo instance is provided by
hook DSL, please remove |kafo| from your hook block
[ INFO 2014-11-05 13:55:07 verbose] All hooks in group pre finished
[ INFO 2014-11-05 13:55:07 verbose] Loading facts
[ INFO 2014-11-05 13:55:07 verbose] Loading facts
[ INFO 2014-11-05 13:55:07 verbose] Loading facts
[ INFO 2014-11-05 13:55:07 verbose] Loading facts
[ INFO 2014-11-05 13:55:07 verbose] Loading facts
[ INFO 2014-11-05 13:55:07 verbose] Loading facts
[ WARN 2014-11-05 13:55:14 verbose] Config file /etc/puppet/hiera.yaml not
found, using Hiera defaults
[ WARN 2014-11-05 13:55:19 verbose] Scope(Class[Postgresql::Server]):
Passing "version" to postgresql::server is deprecated; please use
postgresql::globals instead.
[ WARN 2014-11-05 13:55:25 verbose] Compiled catalog for
foreman.ciso.leidos.com in environment production in 11.49 seconds
[ WARN 2014-11-05 13:55:25 verbose] The package type's allow_virtual
parameter will be changing its default value from false to true in a future
release. If you do not want to allow virtual packages, please explicitly
set allow_virtual to false.
[ INFO 2014-11-05 13:55:25 verbose] (at
/usr/lib/ruby/site_ruby/1.8/puppet/type/package.rb:430:in default'; /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:813:inset_default';
/usr/lib/ruby/site_ruby/1.8/puppet/type.rb:2285:in set_parameters'; /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:2284:ineach';
/usr/lib/ruby/site_ruby/1.8/puppet/type.rb:2284:in set_parameters'; /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:2222:ininitialize';
/usr/lib/ruby/site_ruby/1.8/puppet/resource.rb:348:in new'; /usr/lib/ruby/site_ruby/1.8/puppet/resource.rb:348:into_ral';
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:512:in to_catalog'; /usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:504:ineach';
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:504:in to_catalog'; /usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:407:into_ral';
/usr/lib/ruby/site_ruby/1.8/puppet/application/apply.rb:220:in main'; /usr/lib/ruby/site_ruby/1.8/puppet/context.rb:64:inoverride';
/usr/lib/ruby/site_ruby/1.8/puppet.rb:244:in override'; /usr/lib/ruby/site_ruby/1.8/puppet/application/apply.rb:193:inmain';
/usr/lib/ruby/site_ruby/1.8/puppet/application/apply.rb:154:in
run_command'; /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:inrun'; /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:507:in
plugin_hook'; /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:inrun'; /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:488:in exit_on_fail'; /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:inrun';
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:146:in run'; /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:92:inexecute';
/usr/bin/puppet:8)
[ INFO 2014-11-05 13:55:31 verbose] Applying configuration version
'1415213713'
[ WARN 2014-11-05 13:55:40 verbose]
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foreman.ciso.leidos.com]/ensure:
current_value absent, should be present (noop)
[ WARN 2014-11-05 13:55:40 verbose] Class[Foreman_proxy::Register]: Would
have triggered 'refresh' from 1 events
[ WARN 2014-11-05 13:55:40 verbose] Stage[main]: Would have triggered
'refresh' from 1 events
[ WARN 2014-11-05 13:55:40 verbose] Finished catalog run in 10.48 seconds
[ INFO 2014-11-05 13:55:42 verbose] Puppet has finished, bye!
[ INFO 2014-11-05 13:55:42 verbose] Executing hooks in group post
[ INFO 2014-11-05 13:55:42 verbose] All hooks in group post finished
Success!

  • Foreman is running at https://foreman.ciso.leidos.com
    Initial credentials are admin / e8tpJuekTK38Mhdh
  • Foreman Proxy is running at https://foreman.ciso.leidos.com:8443
  • Puppetmaster is running at port 8140
    The full log is at /var/log/foreman-installer/foreman-installer.log
    [root@foreman foreman]#
    [root@foreman foreman]# foreman-installer
    Could not set 'present' on ensure: 422 Unprocessable Entity at
    12:/usr/share/foreman-installer/modules/foreman_proxy/manifests/register.pp
    Could not set 'present' on ensure: 422 Unprocessable Entity at
    12:/usr/share/foreman-installer/modules/foreman_proxy/manifests/register.pp
    /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foreman.ciso.leidos.com]/ensure:
    change from absent to present failed: Could not set 'present' on ensure:
    422 Unprocessable Entity at
    12:/usr/share/foreman-installer/modules/foreman_proxy/manifests/register.pp
    Installing Done
    [100%]
    […]
    Something went wrong! Check the log for ERROR-level output
  • Foreman is running at https://foreman.ciso.leidos.com
    Initial credentials are admin / e8tpJuekTK38Mhdh
  • Foreman Proxy is running at https://foreman.ciso.leidos.com:8443
  • Puppetmaster is running at port 8140
    The full log is at /var/log/foreman-installer/foreman-installer.log
    [root@foreman foreman]# service foreman restart
    Restarting foreman rails app: [ OK ]
    [root@foreman foreman]# service httpd restart
    Stopping httpd: [ OK ]
    Starting httpd: [Wed Nov 05 13:57:57 2014] [warn] module passenger_module
    is already loaded, skipping
    [ OK ]
··· On Wednesday, November 5, 2014 9:36:17 AM UTC-5, Patrick Devine wrote: > > Yesterday I ran a yum update on my Foreman server and after it was > completed I keep getting the following error on a majority of the Foreman > screens. > > *FloatDomainError* > *Infinity* > app/helpers/layout_helper.rb:236:in `page_entries_info' > app/views/hosts/_list.html.erb:53:in > `_app_views_hosts__list_html_erb__1797214395852501097_70298889968840' > app/views/hosts/index.html.erb:4:in > `_app_views_hosts_index_html_erb___626477714565349923_94565820' > app/models/concerns/foreman/thread_session.rb:33:in `clear_thread' > lib/middleware/catch_json_parse_errors.rb:9:in `call' > > I can see the dashboard but can't see my hosts, puppet, and a majority of > the other foreman views. > > Here is what was updated (foreman / ruby): > > Nov 04 11:23:02 Updated: foreman-1.6.1-1.el6.noarch > Nov 04 11:24:08 Updated: foreman-compute-1.6.1-1.el6.noarch > Nov 04 11:24:58 Updated: foreman-selinux-1.6.1-1.el6.noarch > Nov 04 11:25:20 Updated: 1:foreman-installer-1.6.2-1.el6.noarch > Nov 04 11:25:26 Updated: foreman-vmware-1.6.1-1.el6.noarch > Nov 04 11:25:30 Updated: > ruby193-rubygem-foreman_bootdisk-3.2.1-1.el6.noarch > Nov 04 11:25:30 Updated: foreman-postgresql-1.6.1-1.el6.noarch > Nov 04 11:25:31 Updated: > ruby193-rubygem-foreman_discovery-1.4.0-2.el6.noarch > Nov 04 11:25:31 Updated: foreman-cli-1.6.1-1.el6.noarch > > Nov 04 11:22:11 Updated: ruby-libs-1.8.7.374-2.el6.x86_64 > Nov 04 11:22:11 Updated: ruby-1.8.7.374-2.el6.x86_64 > Nov 04 11:22:23 Updated: ruby-irb-1.8.7.374-2.el6.x86_64 > Nov 04 11:22:39 Updated: libselinux-ruby-2.0.94-5.8.el6.x86_64 > Nov 04 11:25:30 Updated: > ruby193-rubygem-foreman_bootdisk-3.2.1-1.el6.noarch > Nov 04 11:25:31 Updated: > ruby193-rubygem-foreman_discovery-1.4.0-2.el6.noarch > Nov 04 11:25:42 Updated: ruby-rdoc-1.8.7.374-2.el6.x86_64 > Nov 04 11:25:45 Updated: ruby-devel-1.8.7.374-2.el6.x86_64 > > Looking at this error I see one work around is to drop my database but > that is probably the last thing I want to do. > > Patrick >

Heya

> Yesterday I ran a yum update on my Foreman server and after it was
> completed I keep getting the following error on a majority of the
> Foreman screens.

Are you upgrading from an earlier release? Did you follow the steps in
the upgrade docs? Foreman :: Manual

Did you upgrade the db schema?

<snip>
foreman-rake db:migrate
foreman-rake db:seed
</snip>

··· On 11/05/2014 03:36 PM, Patrick Devine wrote:


Mattias Giese
System Management & Monitoring Architect
Mail: giese@b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537

Found the issue. Basically the entries_per_page was set to 0. I changed the
value to 20 and all my views came back.

Here is the issue on the Foreman Project page.
http://projects.theforeman.org/issues/8294

··· On Wednesday, November 5, 2014 9:36:17 AM UTC-5, Patrick Devine wrote: > > Yesterday I ran a yum update on my Foreman server and after it was > completed I keep getting the following error on a majority of the Foreman > screens. > > *FloatDomainError* > *Infinity* > app/helpers/layout_helper.rb:236:in `page_entries_info' > app/views/hosts/_list.html.erb:53:in > `_app_views_hosts__list_html_erb__1797214395852501097_70298889968840' > app/views/hosts/index.html.erb:4:in > `_app_views_hosts_index_html_erb___626477714565349923_94565820' > app/models/concerns/foreman/thread_session.rb:33:in `clear_thread' > lib/middleware/catch_json_parse_errors.rb:9:in `call' > > I can see the dashboard but can't see my hosts, puppet, and a majority of > the other foreman views. > > Here is what was updated (foreman / ruby): > > Nov 04 11:23:02 Updated: foreman-1.6.1-1.el6.noarch > Nov 04 11:24:08 Updated: foreman-compute-1.6.1-1.el6.noarch > Nov 04 11:24:58 Updated: foreman-selinux-1.6.1-1.el6.noarch > Nov 04 11:25:20 Updated: 1:foreman-installer-1.6.2-1.el6.noarch > Nov 04 11:25:26 Updated: foreman-vmware-1.6.1-1.el6.noarch > Nov 04 11:25:30 Updated: > ruby193-rubygem-foreman_bootdisk-3.2.1-1.el6.noarch > Nov 04 11:25:30 Updated: foreman-postgresql-1.6.1-1.el6.noarch > Nov 04 11:25:31 Updated: > ruby193-rubygem-foreman_discovery-1.4.0-2.el6.noarch > Nov 04 11:25:31 Updated: foreman-cli-1.6.1-1.el6.noarch > > Nov 04 11:22:11 Updated: ruby-libs-1.8.7.374-2.el6.x86_64 > Nov 04 11:22:11 Updated: ruby-1.8.7.374-2.el6.x86_64 > Nov 04 11:22:23 Updated: ruby-irb-1.8.7.374-2.el6.x86_64 > Nov 04 11:22:39 Updated: libselinux-ruby-2.0.94-5.8.el6.x86_64 > Nov 04 11:25:30 Updated: > ruby193-rubygem-foreman_bootdisk-3.2.1-1.el6.noarch > Nov 04 11:25:31 Updated: > ruby193-rubygem-foreman_discovery-1.4.0-2.el6.noarch > Nov 04 11:25:42 Updated: ruby-rdoc-1.8.7.374-2.el6.x86_64 > Nov 04 11:25:45 Updated: ruby-devel-1.8.7.374-2.el6.x86_64 > > Looking at this error I see one work around is to drop my database but > that is probably the last thing I want to do. > > Patrick >