Project

General

Profile

Actions

Bug #4140

closed

GET on /API generate 500 error

Added by Ohad Levy almost 11 years ago. Updated about 7 years ago.

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

Description

Started GET "/api" for 127.0.0.1 at 2014-01-20 22:09:21 +0200
Processing by Api::V1::HomeController#index as JSON
  Parameters: {"apiv"=>"v1"}
  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
Setting current user thread-local variable to admin
  Feature Load (0.1ms)  SELECT "features".* FROM "features" 
ENCRYPTION_KEY is not defined, so encryption is turned off for ComputeResource.
superclass mismatch for class PluginNotFound (TypeError)
/home/ohad/git/foreman/app/services/foreman/plugin.rb:20:in `<module:Foreman>'
/home/ohad/git/foreman/app/services/foreman/plugin.rb:18:in `<top (required)>'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:469:in `load'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:469:in `block in load_file'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:639:in `new_constants_in'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:468:in `load_file'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:353:in `require_or_load'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:502:in `load_missing_constant'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:192:in `block in const_missing'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:190:in `each'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:190:in `const_missing'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:514:in `load_missing_constant'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:192:in `block in const_missing'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:190:in `each'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:190:in `const_missing'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:514:in `load_missing_constant'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:192:in `block in const_missing'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:190:in `each'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:190:in `const_missing'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/inflector/methods.rb:230:in `block in constantize'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/inflector/methods.rb:229:in `each'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/inflector/methods.rb:229:in `constantize'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/inflector/methods.rb:260:in `safe_constantize'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/core_ext/string/inflections.rb:66:in `safe_constantize'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_controller/metal/params_wrapper.rb:152:in `_default_wrap_model'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_controller/metal/params_wrapper.rb:169:in `_set_wrapper_defaults'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_controller/metal/params_wrapper.rb:133:in `inherited'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/abstract_controller/railties/routes_helpers.rb:7:in `block (2 levels) in with'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_controller/railties/paths.rb:7:in `block (2 levels) in with'
/home/ohad/git/foreman/app/controllers/api/v2/plugins_controller.rb:3:in `<module:V2>'
/home/ohad/git/foreman/app/controllers/api/v2/plugins_controller.rb:2:in `<module:Api>'
/home/ohad/git/foreman/app/controllers/api/v2/plugins_controller.rb:1:in `<top (required)>'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:469:in `load'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:469:in `block in load_file'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:639:in `new_constants_in'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:468:in `load_file'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:353:in `require_or_load'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:502:in `load_missing_constant'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:192:in `block in const_missing'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:190:in `each'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:190:in `const_missing'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/inflector/methods.rb:230:in `block in constantize'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/inflector/methods.rb:229:in `each'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/inflector/methods.rb:229:in `constantize'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/core_ext/string/inflections.rb:54:in `constantize'
/home/ohad/.gem/ruby/gems/apipie-rails-0.0.24/lib/apipie/application.rb:316:in `load_controller_from_file'
/home/ohad/.gem/ruby/gems/apipie-rails-0.0.24/lib/apipie/application.rb:265:in `block in reload_documentation'
/home/ohad/.gem/ruby/gems/apipie-rails-0.0.24/lib/apipie/application.rb:264:in `each'
/home/ohad/.gem/ruby/gems/apipie-rails-0.0.24/lib/apipie/application.rb:264:in `reload_documentation'
/home/ohad/.gem/ruby/gems/apipie-rails-0.0.24/lib/apipie/apipie_module.rb:18:in `method_missing'
/home/ohad/git/foreman/app/controllers/api/v1/home_controller.rb:10:in `index'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/abstract_controller/base.rb:167:in `process_action'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_controller/metal/rendering.rb:10:in `process_action'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:450:in `block (3 levels) in _run__3876641735367710996__process_action__1576873676077934148__callbacks'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_6547'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:326:in `around'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:310:in `_callback_around_3903'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_6547'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:438:in `block (2 levels) in _run__3876641735367710996__process_action__1576873676077934148__callbacks'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_6546'
/home/ohad/git/foreman/app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_6546'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:404:in `block in _run__3876641735367710996__process_action__1576873676077934148__callbacks'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_6545'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:326:in `around'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:310:in `_callback_around_13'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_6545'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:403:in `_run__3876641735367710996__process_action__1576873676077934148__callbacks'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/abstract_controller/callbacks.rb:17:in `process_action'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_controller/metal/rescue.rb:29:in `process_action'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/notifications.rb:123:in `block in instrument'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/notifications.rb:123:in `instrument'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
/home/ohad/.gem/ruby/gems/activerecord-3.2.16/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/abstract_controller/base.rb:121:in `process'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/abstract_controller/rendering.rb:45:in `process'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_controller/metal.rb:203:in `dispatch'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_controller/metal.rb:246:in `block in action'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_dispatch/routing/route_set.rb:73:in `call'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_dispatch/routing/route_set.rb:36:in `call'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_dispatch/routing/mapper.rb:43:in `call'
/home/ohad/.gem/ruby/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'
/home/ohad/.gem/ruby/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
/home/ohad/.gem/ruby/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_dispatch/routing/route_set.rb:608:in `call'
/home/ohad/.gem/ruby/gems/apipie-rails-0.0.24/lib/apipie/static_dispatcher.rb:65:in `call'
/home/ohad/.gem/ruby/gems/rack-openid-1.4.1/lib/rack/openid.rb:99:in `call'
/home/ohad/.gem/ruby/gems/bullet-4.7.1/lib/bullet/rack.rb:10:in `call'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
/home/ohad/.gem/ruby/gems/rack-1.4.5/lib/rack/etag.rb:23:in `call'
/home/ohad/.gem/ruby/gems/rack-1.4.5/lib/rack/conditionalget.rb:25:in `call'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_dispatch/middleware/head.rb:14:in `call'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
/home/ohad/git/foreman/lib/middleware/catch_json_parse_errors.rb:9:in `call'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_dispatch/middleware/flash.rb:242:in `call'
/home/ohad/.gem/ruby/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:in `context'
/home/ohad/.gem/ruby/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:in `call'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_dispatch/middleware/cookies.rb:341:in `call'
/home/ohad/.gem/ruby/gems/activerecord-3.2.16/lib/active_record/query_cache.rb:64:in `call'
/home/ohad/.gem/ruby/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:405:in `_run__2022903484714684845__call__1586532181974285__callbacks'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_dispatch/middleware/reloader.rb:65:in `call'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
/home/ohad/.gem/ruby/gems/railties-3.2.16/lib/rails/rack/logger.rb:32:in `call_app'
/home/ohad/.gem/ruby/gems/railties-3.2.16/lib/rails/rack/logger.rb:16:in `block in call'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/tagged_logging.rb:22:in `tagged'
/home/ohad/.gem/ruby/gems/railties-3.2.16/lib/rails/rack/logger.rb:16:in `call'
/home/ohad/.gem/ruby/gems/quiet_assets-1.0.2/lib/quiet_assets.rb:18:in `call_with_quiet_assets'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_dispatch/middleware/request_id.rb:22:in `call'
/home/ohad/.gem/ruby/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call'
/home/ohad/.gem/ruby/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call'
/home/ohad/.gem/ruby/gems/activesupport-3.2.16/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
/home/ohad/.gem/ruby/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call'
/home/ohad/.gem/ruby/gems/actionpack-3.2.16/lib/action_dispatch/middleware/static.rb:63:in `call'
/home/ohad/.gem/ruby/gems/railties-3.2.16/lib/rails/engine.rb:484:in `call'
/home/ohad/.gem/ruby/gems/railties-3.2.16/lib/rails/application.rb:231:in `call'
/home/ohad/.gem/ruby/gems/railties-3.2.16/lib/rails/railtie/configurable.rb:30:in `method_missing'
/home/ohad/.gem/ruby/gems/rack-1.4.5/lib/rack/builder.rb:134:in `call'
/home/ohad/.gem/ruby/gems/rack-1.4.5/lib/rack/urlmap.rb:64:in `block in call'
/home/ohad/.gem/ruby/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in `each'
/home/ohad/.gem/ruby/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in `call'
/home/ohad/.gem/ruby/gems/rack-1.4.5/lib/rack/content_length.rb:14:in `call'
/home/ohad/.gem/ruby/gems/railties-3.2.16/lib/rails/rack/log_tailer.rb:17:in `call'
/home/ohad/.gem/ruby/gems/rack-1.4.5/lib/rack/handler/webrick.rb:59:in `service'
/usr/share/ruby/webrick/httpserver.rb:138:in `service'
/usr/share/ruby/webrick/httpserver.rb:94:in `run'
/usr/share/ruby/webrick/server.rb:295:in `block in start_thread'
  Rendered api/v1/errors/standard_error.json.rabl (0.3ms)
Completed 500 Internal Server Error in 1834.9ms (Views: 2.1ms | ActiveRecord: 0.5ms)

this happens regardless of user auth creds


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #3988: Expected app/services/foreman/plugin.rb to define PluginClosedIvan Necas01/09/2014Actions
Actions

Also available in: Atom PDF