Hello guys,
I am trying to setup Foreman for the first time on a Ubuntu 18.04 VM, but after running foreman-installer (without any arguments) I am getting the following error:
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[ubu02.example.local]: Could not evaluate: Exception SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate) in get request to: https://ubu02.example.local/api/v2/smart_proxies?search=name=%22ubu02.example.local%22
/usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_resource/rest_v3.rb:89:in `rescue in request'
/usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_resource/rest_v3.rb:71:in `request'
/usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_smartproxy/rest_v3.rb:6:in `proxy'
/usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_smartproxy/rest_v3.rb:13:in `id'
/usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_smartproxy/rest_v3.rb:17:in `exists?'
/usr/lib/ruby/vendor_ruby/puppet/property/ensure.rb:81:in `retrieve'
/usr/lib/ruby/vendor_ruby/puppet/type.rb:1070:in `retrieve'
/usr/lib/ruby/vendor_ruby/puppet/type.rb:1098:in `retrieve_resource'
/usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:302:in `from_resource'
/usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in `evaluate'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:257:in `apply'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:277:in `eval_resource'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:181:in `call'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:181:in `block (2 levels) in evaluate'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:517:in `block in thinmark'
/usr/lib/ruby/2.5.0/benchmark.rb:308:in `realtime'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:516:in `thinmark'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:181:in `block in evaluate'
/usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:121:in `traverse'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:171:in `evaluate'
/usr/lib/ruby/vendor_ruby/kafo/modules/kafo_configure/lib/puppet/parser/functions/add_progress.rb:30:in `evaluate_with_trigger'
/usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:238:in `block in apply'
/usr/lib/ruby/vendor_ruby/puppet/util/log.rb:156:in `with_destination'
/usr/lib/ruby/vendor_ruby/puppet/transaction/report.rb:144:in `as_logging_destination'
/usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:237:in `apply'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:174:in `block in apply_catalog'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:232:in `block in benchmark'
/usr/lib/ruby/2.5.0/benchmark.rb:308:in `realtime'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:231:in `benchmark'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:173:in `apply_catalog'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:348:in `run_internal'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:224:in `block in run'
/usr/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
/usr/lib/ruby/vendor_ruby/puppet.rb:260:in `override'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:198:in `run'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:354:in `apply_catalog'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:280:in `block (2 levels) in main'
/usr/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
/usr/lib/ruby/vendor_ruby/puppet.rb:260:in `override'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:280:in `block in main'
/usr/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
/usr/lib/ruby/vendor_ruby/puppet.rb:260:in `override'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:233:in `main'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:174:in `run_command'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:375:in `block in run'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:665:in `exit_on_fail'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:375:in `run'
/usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:137:in `run'
/usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:73:in `execute'
/usr/bin/puppet:5:in `<main>'
Wrapped exception:
SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)
/usr/lib/ruby/2.5.0/net/protocol.rb:44:in `connect_nonblock'
/usr/lib/ruby/2.5.0/net/protocol.rb:44:in `ssl_socket_connect'
/usr/lib/ruby/2.5.0/net/http.rb:981:in `connect'
/usr/lib/ruby/2.5.0/net/http.rb:920:in `do_start'
/usr/lib/ruby/2.5.0/net/http.rb:909:in `start'
/usr/lib/ruby/2.5.0/net/http.rb:1455:in `request'
/usr/lib/ruby/vendor_ruby/oauth/consumer.rb:180:in `request'
/usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_resource/rest_v3.rb:76:in `request'
/usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_smartproxy/rest_v3.rb:6:in `proxy'
/usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_smartproxy/rest_v3.rb:13:in `id'
/usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_smartproxy/rest_v3.rb:17:in `exists?'
/usr/lib/ruby/vendor_ruby/puppet/property/ensure.rb:81:in `retrieve'
/usr/lib/ruby/vendor_ruby/puppet/type.rb:1070:in `retrieve'
/usr/lib/ruby/vendor_ruby/puppet/type.rb:1098:in `retrieve_resource'
/usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:302:in `from_resource'
/usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in `evaluate'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:257:in `apply'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:277:in `eval_resource'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:181:in `call'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:181:in `block (2 levels) in evaluate'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:517:in `block in thinmark'
/usr/lib/ruby/2.5.0/benchmark.rb:308:in `realtime'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:516:in `thinmark'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:181:in `block in evaluate'
/usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:121:in `traverse'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:171:in `evaluate'
/usr/lib/ruby/vendor_ruby/kafo/modules/kafo_configure/lib/puppet/parser/functions/add_progress.rb:30:in `evaluate_with_trigger'
/usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:238:in `block in apply'
/usr/lib/ruby/vendor_ruby/puppet/util/log.rb:156:in `with_destination'
/usr/lib/ruby/vendor_ruby/puppet/transaction/report.rb:144:in `as_logging_destination'
/usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:237:in `apply'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:174:in `block in apply_catalog'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:232:in `block in benchmark'
/usr/lib/ruby/2.5.0/benchmark.rb:308:in `realtime'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:231:in `benchmark'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:173:in `apply_catalog'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:348:in `run_internal'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:224:in `block in run'
/usr/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
/usr/lib/ruby/vendor_ruby/puppet.rb:260:in `override'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:198:in `run'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:354:in `apply_catalog'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:280:in `block (2 levels) in main'
/usr/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
/usr/lib/ruby/vendor_ruby/puppet.rb:260:in `override'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:280:in `block in main'
/usr/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
/usr/lib/ruby/vendor_ruby/puppet.rb:260:in `override'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:233:in `main'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:174:in `run_command'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:375:in `block in run'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:665:in `exit_on_fail'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:375:in `run'
/usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:137:in `run'
/usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:73:in `execute'
/usr/bin/puppet:5:in `<main>'
Installing Done [100%] [..................................................................................................................................]
Something went wrong! Check the log for ERROR-level output`
When visiting the web UI, I am getting:
**Oops, we're sorry but something went wrong** ERF42-4995 [Foreman::Exception]: Invalid authenticity token
Any ideas?
Thank you!