Project

General

Profile

Actions

Bug #2881

open

Non ASCII character in reports causes 500 errors

Added by Romain Vrignaud over 11 years ago. Updated over 11 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When querying API for reports that contains non ASCII,
it raises 500 Internal Server Error.
Running Foreman 1.2 with ruby 1.9 on Passenger

Cache read: https://foreman2-unprotected.example.com/api/reports?per_page=6&search=host%3Dkw1.example.com
Started GET "/api/reports?search=host=kw1.example.com&per_page=6" for 192.168.131.77 at 2013-08-06 10:19:17 +0200
Processing by Api::V1::ReportsController#index as JSON
  Parameters: {"search"=>"host=kw1.example.com", "per_page"=>"6"}
  User Load (0.9ms)  SELECT `users`.* FROM `users` WHERE `users`.`login` = 'tools' LIMIT 1
  AuthSource Load (0.5ms)  SELECT `auth_sources`.* FROM `auth_sources` WHERE `auth_sources`.`id` = 1 LIMIT 1
  User Load (0.9ms)  SELECT `users`.* FROM `users` WHERE (login='tools') LIMIT 1
Authenticated user Tools against INTERNAL authentication source
  User Load (0.7ms)  SELECT `users`.* FROM `users` WHERE `users`.`login` = 'admin' ORDER BY firstname LIMIT 1
Setting current user thread-local variable to admin
  SQL (0.3ms)  BEGIN
   (0.5ms)  UPDATE `users` SET `last_login_on` = '2013-08-06 08:19:17', `updated_at` = '2013-08-06 08:19:17' WHERE `users`.`id` = 18
Cache delete: views/tabs_and_title_records-1
Expire fragment views/tabs_and_title_records-1 (0.7ms)
   (0.4ms)  COMMIT
  Role Load (0.5ms)  SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Anonymous' LIMIT 1
  Role Exists (0.4ms)  SELECT 1 AS one FROM `roles` INNER JOIN `user_roles` ON `roles`.`id` = `user_roles`.`role_id` WHERE `user_roles`.`user_id` = 18 AND `roles`.`id` = 8 LIMIT 1
Setting current user thread-local variable to tools
Setting current user thread-local variable to nil
Setting current user thread-local variable to tools
  SQL (5.2ms)  SELECT DISTINCT `reports`.id FROM `reports` LEFT OUTER JOIN `logs` ON `logs`.`report_id` = `reports`.`id` LEFT OUTER JOIN `sources` ON `sources`.`id` = `logs`.`source_id` LEFT OUTER JOIN `messages` ON `messages`.`id` = `logs`.`message_id` LEFT OUTER JOIN `hosts` ON `hosts`.`id` = `reports`.`host_id` AND `hosts`.`type` IN ('Host::Managed') WHERE ((`hosts`.`name` = BINARY 'kw1.example.com')) ORDER BY `reports`.`reported_at` DESC LIMIT 6 OFFSET 0
  SQL (46.2ms)  SELECT `reports`.`id` AS t0_r0, `reports`.`host_id` AS t0_r1, `reports`.`reported_at` AS t0_r2, `reports`.`created_at` AS t0_r3, `reports`.`updated_at` AS t0_r4, `reports`.`status` AS t0_r5, `reports`.`metrics` AS t0_r6, `logs`.`id` AS t1_r0, `logs`.`source_id` AS t1_r1, `logs`.`message_id` AS t1_r2, `logs`.`report_id` AS t1_r3, `logs`.`level_id` AS t1_r4, `logs`.`created_at` AS t1_r5, `logs`.`updated_at` AS t1_r6, `sources`.`id` AS t2_r0, `sources`.`value` AS t2_r1, `sources`.`digest` AS t2_r2, `messages`.`id` AS t3_r0, `messages`.`value` AS t3_r1, `messages`.`digest` AS t3_r2, `hosts`.`id` AS t4_r0, `hosts`.`name` AS t4_r1, `hosts`.`ip` AS t4_r2, `hosts`.`environment` AS t4_r3, `hosts`.`last_compile` AS t4_r4, `hosts`.`last_freshcheck` AS t4_r5, `hosts`.`last_report` AS t4_r6, `hosts`.`updated_at` AS t4_r7, `hosts`.`source_file_id` AS t4_r8, `hosts`.`created_at` AS t4_r9, `hosts`.`mac` AS t4_r10, `hosts`.`root_pass` AS t4_r11, `hosts`.`serial` AS t4_r12, `hosts`.`puppet_status` AS t4_r13, `hosts`.`domain_id` AS t4_r14, `hosts`.`architecture_id` AS t4_r15, `hosts`.`operatingsystem_id` AS t4_r16, `hosts`.`environment_id` AS t4_r17, `hosts`.`subnet_id` AS t4_r18, `hosts`.`ptable_id` AS t4_r19, `hosts`.`medium_id` AS t4_r20, `hosts`.`build` AS t4_r21, `hosts`.`comment` AS t4_r22, `hosts`.`disk` AS t4_r23, `hosts`.`installed_at` AS t4_r24, `hosts`.`model_id` AS t4_r25, `hosts`.`hostgroup_id` AS t4_r26, `hosts`.`owner_id` AS t4_r27, `hosts`.`owner_type` AS t4_r28, `hosts`.`enabled` AS t4_r29, `hosts`.`puppet_ca_proxy_id` AS t4_r30, `hosts`.`managed` AS t4_r31, `hosts`.`use_image` AS t4_r32, `hosts`.`image_file` AS t4_r33, `hosts`.`uuid` AS t4_r34, `hosts`.`compute_resource_id` AS t4_r35, `hosts`.`puppet_proxy_id` AS t4_r36, `hosts`.`certname` AS t4_r37, `hosts`.`image_id` AS t4_r38, `hosts`.`organization_id` AS t4_r39, `hosts`.`location_id` AS t4_r40, `hosts`.`type` AS t4_r41 FROM `reports` LEFT OUTER JOIN `logs` ON `logs`.`report_id` = `reports`.`id` LEFT OUTER JOIN `sources` ON `sources`.`id` = `logs`.`source_id` LEFT OUTER JOIN `messages` ON `messages`.`id` = `logs`.`message_id` LEFT OUTER JOIN `hosts` ON `hosts`.`id` = `reports`.`host_id` AND `hosts`.`type` IN ('Host::Managed') WHERE `reports`.`id` IN (4518417, 4518263, 4518109, 4517954, 4517801, 4517646) AND ((`hosts`.`name` = BINARY 'kw1.example.com')) ORDER BY `reports`.`reported_at` DESC
   (9.3ms)  SELECT COUNT(DISTINCT `reports`.`id`) FROM `reports` LEFT OUTER JOIN `logs` ON `logs`.`report_id` = `reports`.`id` LEFT OUTER JOIN `sources` ON `sources`.`id` = `logs`.`source_id` LEFT OUTER JOIN `messages` ON `messages`.`id` = `logs`.`message_id` LEFT OUTER JOIN `hosts` ON `hosts`.`id` = `reports`.`host_id` AND `hosts`.`type` IN ('Host::Managed') WHERE ((`hosts`.`name` = BINARY 'kw1.example.com'))
  Rendered api/v1/reports/index.json.rabl (1334.8ms)
"\xC3" from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError)
/opt/foreman/vendor/ruby/1.9.1/gems/json-1.8.0/lib/json/common.rb:223:in `encode'
/opt/foreman/vendor/ruby/1.9.1/gems/json-1.8.0/lib/json/common.rb:223:in `generate'
/opt/foreman/vendor/ruby/1.9.1/gems/json-1.8.0/lib/json/common.rb:223:in `generate'
/opt/foreman/vendor/ruby/1.9.1/gems/json-1.8.0/lib/json/common.rb:394:in `dump'
/opt/foreman/vendor/ruby/1.9.1/gems/rabl-0.8.6/lib/rabl/engine.rb:239:in `format_json'
/opt/foreman/vendor/ruby/1.9.1/gems/rabl-0.8.6/lib/rabl/engine.rb:63:in `to_json'
/opt/foreman/vendor/ruby/1.9.1/gems/rabl-0.8.6/lib/rabl/engine.rb:38:in `block in render'
/opt/foreman/vendor/ruby/1.9.1/gems/rabl-0.8.6/lib/rabl/engine.rb:280:in `cache_results'
/opt/foreman/vendor/ruby/1.9.1/gems/rabl-0.8.6/lib/rabl/engine.rb:38:in `render'
/opt/foreman/app/views/api/v1/reports/index.json.rabl:1:in `_app_views_api_v__reports_index_json_rabl__2642507891773753809_56401460'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_view/template.rb:145:in `block in render'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/notifications.rb:125:in `instrument'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_view/template.rb:143:in `render'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_view/renderer/template_renderer.rb:47:in `block (2 levels) in render_template'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:in `block in instrument'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:in `instrument'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_view/renderer/template_renderer.rb:46:in `block in render_template'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_view/renderer/template_renderer.rb:54:in `render_with_layout'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_view/renderer/template_renderer.rb:45:in `render_template'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_view/renderer/template_renderer.rb:18:in `render'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_view/renderer/renderer.rb:36:in `render_template'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_view/renderer/renderer.rb:17:in `render'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/abstract_controller/rendering.rb:110:in `_render_template'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/streaming.rb:225:in `_render_template'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/abstract_controller/rendering.rb:103:in `render_to_body'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/renderers.rb:28:in `render_to_body'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/compatibility.rb:50:in `render_to_body'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/abstract_controller/rendering.rb:88:in `render'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/rendering.rb:16:in `render'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
/usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/benchmark.rb:5:in `ms'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:40:in `block in render'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime'
/opt/foreman/vendor/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:39:in `render'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/implicit_render.rb:10:in `default_render'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/implicit_render.rb:5:in `send_action'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/abstract_controller/base.rb:167:in `process_action'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/rendering.rb:10:in `process_action'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:450:in `block (3 levels) in _run__167053614986825941__process_action__589800425681599848__callbacks'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_4541'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:326:in `around'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:310:in `_callback_around_1345'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_4541'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:438:in `block (2 levels) in _run__167053614986825941__process_action__589800425681599848__callbacks'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_4540'
/opt/foreman/lib/foreman/thread_session.rb:31:in `clear_thread'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_4540'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:404:in `block in _run__167053614986825941__process_action__589800425681599848__callbacks'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_4539'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:326:in `around'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:310:in `_callback_around_13'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_4539'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:403:in `_run__167053614986825941__process_action__589800425681599848__callbacks'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in `__run_callback'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:81:in `run_callbacks'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/abstract_controller/callbacks.rb:17:in `process_action'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/rescue.rb:29:in `process_action'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:in `block in instrument'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:in `instrument'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
/opt/foreman/vendor/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/abstract_controller/base.rb:121:in `process'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/abstract_controller/rendering.rb:45:in `process'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal.rb:203:in `dispatch'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal.rb:246:in `block in action'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:73:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:36:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/routing/mapper.rb:42:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'
/opt/foreman/vendor/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
/opt/foreman/vendor/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:612:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/apipie-rails-0.0.16/lib/apipie/static_dispatcher.rb:56:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/rack-openid-1.3.1/lib/rack/openid.rb:98:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/etag.rb:23:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/conditionalget.rb:25:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/head.rb:14:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/flash.rb:242:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:in `context'
/opt/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/cookies.rb:341:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/query_cache.rb:64:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in `_run__2051103688745313223__call__2680058183576418482__callbacks'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in `__run_callback'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:81:in `run_callbacks'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/railties-3.2.13/lib/rails/rack/logger.rb:32:in `call_app'
/opt/foreman/vendor/ruby/1.9.1/gems/railties-3.2.13/lib/rails/rack/logger.rb:16:in `block in call'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/tagged_logging.rb:22:in `tagged'
/opt/foreman/vendor/ruby/1.9.1/gems/railties-3.2.13/lib/rails/rack/logger.rb:16:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/request_id.rb:22:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/static.rb:63:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in `forward'
/opt/foreman/vendor/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:in `fetch'
/opt/foreman/vendor/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:185:in `lookup'
/opt/foreman/vendor/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in `call!'
/opt/foreman/vendor/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:479:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application.rb:223:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
/opt/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:134:in `call'
/opt/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/urlmap.rb:64:in `block in call'
/opt/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in `each'
/opt/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in `call'
/usr/lib/ruby/vendor_ruby/phusion_passenger/rack/request_handler.rb:96:in `process_request'
/usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_request_handler.rb:516:in `accept_and_process_next_request'
/usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
/usr/lib/ruby/vendor_ruby/phusion_passenger/rack/application_spawner.rb:206:in `start_request_handler'
/usr/lib/ruby/vendor_ruby/phusion_passenger/rack/application_spawner.rb:171:in `block in handle_spawn_application'
/usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:479:in `safe_fork'
/usr/lib/ruby/vendor_ruby/phusion_passenger/rack/application_spawner.rb:166:in `handle_spawn_application'
/usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
/usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:180:in `start'
/usr/lib/ruby/vendor_ruby/phusion_passenger/rack/application_spawner.rb:129:in `start'
/usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb:253:in `block (2 levels) in spawn_rack_application'
/usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
/usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb:246:in `block in spawn_rack_application'
/usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize'
<internal:prelude>:10:in `synchronize'
/usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
/usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb:244:in `spawn_rack_application'
/usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb:137:in `spawn_application'
/usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
/usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
/usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/usr/share/phusion-passenger/helper-scripts/passenger-spawn-server:99:in `<main>'
  Rendered api/v1/errors/standard_error.json.rabl (0.5ms)
Completed 500 Internal Server Error in 1357ms (Views: 1.4ms | ActiveRecord: 60.7ms)
Actions #1

Updated by Romain Vrignaud over 11 years ago

Note that I can show the report without error in Foreman WebUI.

Actions

Also available in: Atom PDF