Project

General

Profile

Actions

Bug #31767

open

Oops wrong number of arguments (given 1, expected 0) during Provisioning Setup

Added by Jeff Singleton over 3 years ago.

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

Description

Hello,

I'm hitting an error when running the initial Provisioning Setup on my foreman host. When I hit Step 3 (Foreman Installer) when setting up my virbr0 network it is consistently producing an error page as stated in the subject. Below is all the information the error page suggested I collect for this issue.

2021-01-31T02:13:50 [I|app|ed0d1189] Started POST "/foreman_setup/provisioners/1/step4" for 127.0.0.1 at 2021-01-31 02:13:50 +0000
2021-01-31T02:13:50 [I|app|ed0d1189] Processing by ForemanSetup::ProvisionersController#step4 as HTML
2021-01-31T02:13:50 [I|app|ed0d1189]   Parameters: {"authenticity_token"=>"+qCCgTu7uC+DMnBFMswD4rBhpGJfR69xbW7mbKYa2kJdNO8Kz8QZT8NpQhxt6bufXsDyPomQw17u4HJ+6tY0MQ==", "id"=>"1"}
2021-01-31T02:13:50 [W|app|ed0d1189] wrong number of arguments (given 1, expected 0)
2021-01-31T02:13:50 [I|app|ed0d1189] Backtrace for 'wrong number of arguments (given 1, expected 0)' error (ArgumentError): wrong number of arguments (given 1, expected 0)
 ed0d1189 | /usr/share/foreman/app/models/provisioning_template.rb:153:in `build_pxe_default'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_setup-6.0.0/app/controllers/foreman_setup/provisioners_controller.rb:99:in `step4'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/abstract_controller/base.rb:195:in `process_action'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/rendering.rb:30:in `process_action'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:112:in `block in run_callbacks'
 ed0d1189 | /usr/share/foreman/app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
 ed0d1189 | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
 ed0d1189 | /usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/audited-4.10.0/lib/audited/sweeper.rb:14:in `around'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/audited-4.10.0/lib/audited/sweeper.rb:14:in `around'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:139:in `run_callbacks'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/abstract_controller/callbacks.rb:41:in `process_action'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/rescue.rb:22:in `process_action'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/instrumentation.rb:33:in `block in process_action'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `block in instrument'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `instrument'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/instrumentation.rb:32:in `process_action'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activerecord-6.0.3.4/lib/active_record/railties/controller_runtime.rb:27:in `process_action'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/abstract_controller/base.rb:136:in `process'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/rendering.rb:39:in `process'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal.rb:190:in `dispatch'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal.rb:254:in `dispatch'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/routing/route_set.rb:33:in `serve'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/journey/router.rb:49:in `block in serve'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/journey/router.rb:32:in `each'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/journey/router.rb:32:in `serve'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/routing/route_set.rb:834:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/apipie-dsl-2.3.0/lib/apipie_dsl/static_dispatcher.rb:67:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/apipie-rails-0.5.18/lib/apipie/static_dispatcher.rb:66:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/apipie-rails-0.5.18/lib/apipie/extractor/recorder.rb:137:in `call'
 ed0d1189 | /usr/share/foreman/lib/foreman/middleware/telemetry.rb:10:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/apipie-rails-0.5.18/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
 ed0d1189 | /usr/share/foreman/lib/foreman/middleware/catch_json_parse_errors.rb:9:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/tempfile_reaper.rb:15:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/etag.rb:27:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/conditional_get.rb:40:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/head.rb:12:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/http/content_security_policy.rb:18:in `call'
 ed0d1189 | /usr/share/foreman/lib/foreman/middleware/logging_context_session.rb:22:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:266:in `context'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:260:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/cookies.rb:648:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:101:in `run_callbacks'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/debug_exceptions.rb:32:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/railties-6.0.3.4/lib/rails/rack/logger.rb:37:in `call_app'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/railties-6.0.3.4/lib/rails/rack/logger.rb:28:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/sprockets-rails-3.2.2/lib/sprockets/rails/quiet_assets.rb:13:in `call'
 ed0d1189 | /usr/share/foreman/lib/foreman/middleware/logging_context_request.rb:11:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/request_id.rb:27:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/method_override.rb:24:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/runtime.rb:22:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/executor.rb:14:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/static.rb:126:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/sendfile.rb:110:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/host_authorization.rb:76:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/secure_headers-6.3.1/lib/secure_headers/middleware.rb:11:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/railties-6.0.3.4/lib/rails/engine.rb:527:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/railties-6.0.3.4/lib/rails/railtie.rb:190:in `public_send'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/railties-6.0.3.4/lib/rails/railtie.rb:190:in `method_missing'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/urlmap.rb:74:in `block in call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/urlmap.rb:58:in `each'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/urlmap.rb:58:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/puma-4.3.7/lib/puma/configuration.rb:228:in `call'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/puma-4.3.7/lib/puma/server.rb:713:in `handle_request'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/puma-4.3.7/lib/puma/server.rb:472:in `process_client'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/puma-4.3.7/lib/puma/server.rb:328:in `block in run'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/puma-4.3.7/lib/puma/thread_pool.rb:134:in `block in spawn_thread'
 ed0d1189 | /usr/share/foreman/vendor/ruby/2.5.0/gems/logging-2.3.0/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
2021-01-31T02:13:50 [I|app|ed0d1189]   Rendering common/500.html.erb within layouts/application
2021-01-31T02:13:50 [I|app|ed0d1189]   Rendered common/500.html.erb within layouts/application (Duration: 4.2ms | Allocations: 5926)
2021-01-31T02:13:50 [I|app|ed0d1189]   Rendered layouts/_application_content.html.erb (Duration: 7.3ms | Allocations: 5600)
2021-01-31T02:13:50 [I|app|ed0d1189]   Rendering layouts/base.html.erb
2021-01-31T02:13:50 [I|app|ed0d1189]   Rendered layouts/base.html.erb (Duration: 1.9ms | Allocations: 6605)
2021-01-31T02:13:50 [I|app|ed0d1189] Completed 500 Internal Server Error in 195ms (Views: 17.7ms | ActiveRecord: 15.4ms | Allocations: 57902)

Foreman version: 2.3.2
Plugins:
 - foreman-tasks 3.0.0
 - foreman_discovery 16.3.4
 - foreman_remote_execution 4.2.2
 - foreman_setup 6.0.0

 HOSTNAME: machine.hackdefendr.com
       OS: debian/ubuntu
  RELEASE: buster/sid
  FOREMAN: 2.3.2
     RUBY: ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]
   PUPPET: 6.20.0

foreman-debug is attached as well.

Thanks
Jeff


Files

foreman-debug-G5hUT.tar.xz foreman-debug-G5hUT.tar.xz 957 KB Jeff Singleton, 01/31/2021 02:21 AM

No data to display

Actions

Also available in: Atom PDF