Failed to retrieve preconfiguration file

Hi all,

I have a problem with foreman which is driving me crazy: The problem started
a few weeks ago, at the beginning a few hosts were failing to retrieve the
preconfiguration file, but canceling the build and re-doing it was enough
to make them work. Starting from yesterday, I have this problem that on
all the machines I am deploying, and there is no way to make it work,
even rebooting 1000 times.
Could anyone help me please? (I have inherited the setup few weeks ago, and
I've already spent ~8 hours trying to fix this by myself, but I've run out
of ideas…)
If I connect to
http://foreman_master/unattended/provision?spoof=10.192.22.209 I get
redirected to http://foreman_master/unattended/provision, which is a blank
page.
I am using Foreman 1.5.2

Here is the log (debug mode) when I boot the machine I am installing (in
this case it is a VirtualBox machine, but I have the same problem on
physical machines, and I had reinstalled this virtual machine at least 5
times without any issue before…).

Medium Load (0.4ms) SELECT "media".* FROM "media" WHERE "media"."id" = 7
ORDER BY media.name LIMIT 1
Architecture Load (0.3ms) SELECT "architectures".* FROM "architectures"
WHERE "architectures"."id" = 1 LIMIT 1
Operation FAILED: expected of components of URI::FTP (scheme, userinfo,
host, port, path, typecode)
/usr/lib/ruby/1.9.1/uri/generic.rb:1558:in block in select' /usr/lib/ruby/1.9.1/uri/generic.rb:1554:incollect'
/usr/lib/ruby/1.9.1/uri/generic.rb:1554:in select' /usr/share/foreman/app/models/operatingsystems/debian.rb:10:inpreseed_path'
/usr/share/foreman/app/controllers/unattended_controller.rb:218:in
preseed_attributes' /usr/share/foreman/app/controllers/unattended_controller.rb:183:inload_template_vars'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:575:in
block (3 levels) in _run__2213027589353395358__process_action__3356309242860458219__callbacks' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:215:inblock in _conditional_callback_around_6522'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:326:in
around' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:310:in_callback_around_1849'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:214:in
_conditional_callback_around_6522' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:526:inblock (2 levels) in
_run__2213027589353395358__process_action__3356309242860458219__callbacks'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:215:in
block in _conditional_callback_around_6521' /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:33:inclear_thread'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:214:in
_conditional_callback_around_6521' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:415:inblock in
_run__2213027589353395358__process_action__3356309242860458219__callbacks'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:215:in
block in _conditional_callback_around_6520' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:326:inaround'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:310:in
_callback_around_13' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:214:in_conditional_callback_around_6520'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:414:in
_run__2213027589353395358__process_action__3356309242860458219__callbacks' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:405:in__run_callback'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:385:in
_run_process_action_callbacks' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:81:inrun_callbacks'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/abstract_controller/callbacks.rb:17:in
process_action' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/rescue.rb:29:inprocess_action'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/instrumentation.rb:30:in
block in process_action' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/notifications.rb:123:inblock in instrument'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/notifications/instrumenter.rb:20:in
instrument' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/notifications.rb:123:ininstrument'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/instrumentation.rb:29:in
process_action' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/params_wrapper.rb:207:inprocess_action'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/railties/controller_runtime.rb:18:in
process_action' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/abstract_controller/base.rb:121:inprocess'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/abstract_controller/rendering.rb:45:in
process' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal.rb:203:indispatch'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/rack_delegation.rb:14:in
dispatch' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal.rb:246:inblock in action'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:73:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:73:indispatch'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:36:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:68:inblock in call'
/usr/share/foreman/vendor/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:in
each' /usr/share/foreman/vendor/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:incall'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:608:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/apipie-rails-0.1.3/lib/apipie/static_dispatcher.rb:65:incall'
/usr/share/foreman/vendor/ruby/1.9.1/gems/apipie-rails-0.1.3/lib/apipie/middleware/checksum_in_headers.rb:27:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/best_standards_support.rb:17:incall'
/usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/etag.rb:23:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/conditionalget.rb:25:incall'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/head.rb:14:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/params_parser.rb:21:incall'
/usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:9:in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/flash.rb:242:incall'
/usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:in
context' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:incall'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/cookies.rb:341:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/query_cache.rb:64:incall'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/callbacks.rb:28:inblock in call'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:405:in
_run__4190876205236292753__call__2624884745547938663__callbacks' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:405:in__run_callback'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:385:in
_run_call_callbacks' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:81:inrun_callbacks'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/callbacks.rb:27:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/remote_ip.rb:31:incall'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/debug_exceptions.rb:16:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/show_exceptions.rb:56:incall'
/usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.18/lib/rails/rack/logger.rb:32:in
call_app' /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.18/lib/rails/rack/logger.rb:16:inblock in call'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/tagged_logging.rb:22:in
tagged' /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.18/lib/rails/rack/logger.rb:16:incall'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/request_id.rb:22:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:incall'
/usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/runtime.rb:17:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/cache/strategy/local_cache.rb:72:incall'
/usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/lock.rb:15:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/static.rb:63:incall'
/usr/share/foreman/vendor/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in
forward' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:infetch'
/usr/share/foreman/vendor/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:185:in
lookup' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:incall!'
/usr/share/foreman/vendor/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.18/lib/rails/engine.rb:484:incall'
/usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.18/lib/rails/application.rb:231:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.18/lib/rails/railtie/configurable.rb:30:inmethod_missing'
/usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:134:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/urlmap.rb:64:inblock in call'
/usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in
each' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/urlmap.rb:49:incall'
/usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:77:in
process_request' /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:142:inaccept_and_process_next_request'
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:110:in
main_loop' /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:448:inblock (3 levels) in start_threads'
Completed 500 Internal Server Error in 1083.5ms

ArgumentError (There was no default layout for UnattendedController in
#<ActionView::PathSet:0x000000088d3d50
@paths=[/usr/share/foreman/app/views,
/usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_bootdisk-2.0.8/app/views,
/usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_setup-2.0.4/app/views,
/usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_discovery-1.3.0/app/views,
/usr/share/foreman/vendor/ruby/1.9.1/gems/apipie-rails-0.1.3/app/views]>):
app/controllers/application_controller.rb:313:in generic_exception&#39; lib/middleware/catch_json_parse_errors.rb:9:incall'

Thanks a lot in advance!
Best,
Rob

Some more details: when the debug log is disabled, in production.log I have:

Started GET
"/unattended/provision?token=8aba78bd-34e3-4fdd-8413-afa545701e04" for
10.192.22.209 at 2014-09-12 10:58:32 +0200
Processing by UnattendedController#provision as /
Parameters: {"token"=>"8aba78bd-34e3-4fdd-8413-afa545701e04"}
Found vm-reds64.local
Remove puppet certificate for vm-reds64.local
Adding autosign entry for vm-reds64.local
Operation FAILED: expected of components of URI::FTP (scheme, userinfo,
host, port, path, typecode)
Completed 500 Internal Server Error in 1178.3ms

ArgumentError (There was no default layout for UnattendedController in
#<ActionView::PathSet:0x000000081bc440
@paths=[/usr/share/foreman/app/views,
/usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_bootdisk-2.0.8/app/views,
/usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_setup-2.0.4/app/views,
/usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_discovery-1.3.0/app/views,
/usr/share/foreman/vendor/ruby/1.9.1/gems/apipie-rails-0.1.3/app/views]>):
app/controllers/application_controller.rb:313:in generic_exception&#39; lib/middleware/catch_json_parse_errors.rb:9:incall'

··· Le vendredi 12 septembre 2014 09:21:51 UTC+2, rob...@gmail.com a écrit : > > Hi all, > > I have a problem with foreman which is driving me crazy: The problem started > a few weeks ago, at the beginning a few hosts were failing to retrieve > the preconfiguration file, but canceling the build and re-doing it was > enough to make them work. Starting from yesterday, I have this problem > that on *all* the machines I am deploying, and there is no way to make it > work, even rebooting 1000 times. > Could anyone help me please? (I have inherited the setup few weeks ago, > and I've already spent ~8 hours trying to fix this by myself, but I've run > out of ideas...) > If I connect to > http://foreman_master/unattended/provision?spoof=10.192.22.209 I get > redirected to http://foreman_master/unattended/provision, which is a > blank page. > I am using Foreman 1.5.2 > > Here is the log (debug mode) when I boot the machine I am installing (in > this case it is a VirtualBox machine, but I have the same problem on > physical machines, and I had reinstalled this virtual machine at least 5 > times without any issue before...). > > Medium Load (0.4ms) SELECT "media".* FROM "media" WHERE "media"."id" = > 7 ORDER BY media.name LIMIT 1 > Architecture Load (0.3ms) SELECT "architectures".* FROM "architectures" > WHERE "architectures"."id" = 1 LIMIT 1 > Operation FAILED: expected of components of URI::FTP (scheme, userinfo, > host, port, path, typecode) > /usr/lib/ruby/1.9.1/uri/generic.rb:1558:in `block in select' > /usr/lib/ruby/1.9.1/uri/generic.rb:1554:in `collect' > /usr/lib/ruby/1.9.1/uri/generic.rb:1554:in `select' > /usr/share/foreman/app/models/operatingsystems/debian.rb:10:in > `preseed_path' > /usr/share/foreman/app/controllers/unattended_controller.rb:218:in > `preseed_attributes' > /usr/share/foreman/app/controllers/unattended_controller.rb:183:in > `load_template_vars' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:575:in > `block (3 levels) in > _run__2213027589353395358__process_action__3356309242860458219__callbacks' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:215:in > `block in _conditional_callback_around_6522' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:326:in > `around' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:310:in > `_callback_around_1849' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:214:in > `_conditional_callback_around_6522' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:526:in > `block (2 levels) in > _run__2213027589353395358__process_action__3356309242860458219__callbacks' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:215:in > `block in _conditional_callback_around_6521' > /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:33:in > `clear_thread' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:214:in > `_conditional_callback_around_6521' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:415:in > `block in > _run__2213027589353395358__process_action__3356309242860458219__callbacks' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:215:in > `block in _conditional_callback_around_6520' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:326:in > `around' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:310:in > `_callback_around_13' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:214:in > `_conditional_callback_around_6520' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:414:in > `_run__2213027589353395358__process_action__3356309242860458219__callbacks' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:405:in > `__run_callback' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:385:in > `_run_process_action_callbacks' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:81:in > `run_callbacks' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/abstract_controller/callbacks.rb:17:in > `process_action' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/rescue.rb:29:in > `process_action' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/instrumentation.rb:30:in > `block in process_action' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/notifications.rb:123:in > `block in instrument' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/notifications/instrumenter.rb:20:in > `instrument' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/notifications.rb:123:in > `instrument' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/instrumentation.rb:29:in > `process_action' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/params_wrapper.rb:207:in > `process_action' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/railties/controller_runtime.rb:18:in > `process_action' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/abstract_controller/base.rb:121:in > `process' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/abstract_controller/rendering.rb:45:in > `process' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal.rb:203:in > `dispatch' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/rack_delegation.rb:14:in > `dispatch' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal.rb:246:in > `block in action' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:73:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:73:in > `dispatch' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:36:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:68:in > `block in call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:in > `each' > /usr/share/foreman/vendor/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:608:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/apipie-rails-0.1.3/lib/apipie/static_dispatcher.rb:65:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/apipie-rails-0.1.3/lib/apipie/middleware/checksum_in_headers.rb:27:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/best_standards_support.rb:17:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/etag.rb:23:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/conditionalget.rb:25:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/head.rb:14:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/params_parser.rb:21:in > `call' > /usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:9:in `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/flash.rb:242:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:in > `context' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/cookies.rb:341:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/query_cache.rb:64:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/callbacks.rb:28:in > `block in call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:405:in > `_run__4190876205236292753__call__2624884745547938663__callbacks' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:405:in > `__run_callback' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:385:in > `_run_call_callbacks' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:81:in > `run_callbacks' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/callbacks.rb:27:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/remote_ip.rb:31:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/debug_exceptions.rb:16:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/show_exceptions.rb:56:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.18/lib/rails/rack/logger.rb:32:in > `call_app' > /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.18/lib/rails/rack/logger.rb:16:in > `block in call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/tagged_logging.rb:22:in > `tagged' > /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.18/lib/rails/rack/logger.rb:16:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/request_id.rb:22:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/runtime.rb:17:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/cache/strategy/local_cache.rb:72:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/lock.rb:15:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/static.rb:63:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in > `forward' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:in > `fetch' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:185:in > `lookup' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in > `call!' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.18/lib/rails/engine.rb:484:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.18/lib/rails/application.rb:231:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.18/lib/rails/railtie/configurable.rb:30:in > `method_missing' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:134:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/urlmap.rb:64:in > `block in call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in > `each' > /usr/share/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/thread_handler_extension.rb:77:in > `process_request' > /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:142:in > `accept_and_process_next_request' > /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:110:in > `main_loop' > /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:448:in > `block (3 levels) in start_threads' > Completed 500 Internal Server Error in 1083.5ms > > ArgumentError (There was no default layout for UnattendedController in > # @paths=[/usr/share/foreman/app/views, > /usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_bootdisk-2.0.8/app/views, > /usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_setup-2.0.4/app/views, > /usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_discovery-1.3.0/app/views, > /usr/share/foreman/vendor/ruby/1.9.1/gems/apipie-rails-0.1.3/app/views]>): > app/controllers/application_controller.rb:313:in `generic_exception' > lib/middleware/catch_json_parse_errors.rb:9:in `call' > > Thanks a lot in advance! > Best, > Rob >

Hey,

> ArgumentError (There was no default layout for UnattendedController in
> #<ActionView::PathSet:0x000000081bc440

This is IMHO something wrong with your Rails app. You must have deleted
some file or view from the code base.

> /usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_bootdisk-2.0.8/app/views,

I see vendored gems, this is not the official RPM/DEB installation, is
it? Check your installation. Using git?

··· -- Later, Lukas #lzap Zapletal

Hi,

Thanks for your answer. During the past days I have absolutely not touched
the application (also because I know nothing about Rails) – just
added/removed classes. Also, Foreman's configuration has not been touched
in the past 15 days at least. I had only changed the hostname of the Ubuntu
mirror in the preseed. Foreman runs on a dedicated VM on a server in the
datacenter to which I am the only one who has access (another person has
kind of limited access rights to the administration of Foreman via the web
interface, but he swore on a mountain of bibles that he hasn't touched
anything).

Concerning the installation type, unfortunately I have absolutely no clue
– the guy who did the installation left 15 days ago, leaving no written
trace about the procedure he followed during the installation…

Best,
Rob

··· Le vendredi 12 septembre 2014 13:43:19 UTC+2, Lukas Zapletal a écrit : > > Hey, > > > ArgumentError (There was no default layout for UnattendedController in > > # > This is IMHO something wrong with your Rails app. You must have deleted > some file or view from the code base. > > > > /usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_bootdisk-2.0.8/app/views, > > I see vendored gems, this is not the official RPM/DEB installation, is > it? Check your installation. Using git? > > -- > Later, > Lukas #lzap Zapletal >

This log line:

> Operation FAILED: expected of components of URI::FTP

Leads me to ask what the URL of your Installation Medium is set to?

> Leads me to ask what the URL of your Installation Medium is set to?
>

I have put this in my preseed template:
d-i mirror/protocol string ftp
d-i mirror/country string manual
d-i mirror/ftp/hostname string 10.192.53.189
d-i mirror/ftp/directory string /ubuntu
d-i mirror/ftp/proxy string
where 10.192.53.189 is the IP of the local Xubuntu mirror (I had put its
fqdn before, but it was not working either…).
Thanks!
Rob

I've tried changing both the URL in the Installation Medium to the
fqdn/ubuntu and the IP in the preseed template with the fqdn, but nothing
changed.
Below the screenshot of the error I get.

<https://lh5.googleusercontent.com/-SCVI4aa7tdY/VBaVzA8a81I/AAAAAAAAAAM/ADSnGGd9sk0/s1600/error.png>
Have a nice day,
Rob

Try setting the installation media to an HTTP mirror, rather than FTP.
Foreman doesn't support FTP, which is what's causing the error in your
original e-mail.

··· On 15/09/14 06:23, robhhh6@gmail.com wrote: > > Leads me to ask what the URL of your Installation Medium is set to? > > > I have put this in my preseed template: > > > d-i mirror/protocol stringftp > d-i mirror/country stringmanual > d-i mirror/ftp/hostname string10.192.53.189 > d-i mirror/ftp/directory string/ubuntu > d-i mirror/ftp/proxy string > > > where 10.192.53.189 is the IP of the local Xubuntu mirror (I had put its > fqdn before, but it was not working either...).


Dominic Cleal
Red Hat Engineering

Thanks thanks thanks thanks!!! I've lost so much sleep because of that
(I've started panicking… :frowning: )
On the other hand, now I would like to understand why it worked almost
without a flaw for more than one month with the local ftp server before
collapsing…
I had deployed for three times more than 50 machines using our ftp
server…
???
Thanks again and have a nice day!
Rob

··· Le lundi 15 septembre 2014 14:50:05 UTC+2, Dominic Cleal a écrit : > > On 15/09/14 06:23, rob...@gmail.com wrote: > > > > Leads me to ask what the URL of your Installation Medium is set to? > > > > > > I have put this in my preseed template: > > > > > d-i mirror/protocol stringftp > > d-i mirror/country stringmanual > > d-i mirror/ftp/hostname string10.192.53.189 > > d-i mirror/ftp/directory string/ubuntu > > d-i mirror/ftp/proxy string > > > > > where 10.192.53.189 is the IP of the local Xubuntu mirror (I had put its > > fqdn before, but it was not working either...). > > Try setting the installation media to an HTTP mirror, rather than FTP. > Foreman doesn't support FTP, which is what's causing the error in your > original e-mail. > > -- > Dominic Cleal > Red Hat Engineering >