Project

General

Profile

Actions

Bug #21218

closed

Foreman 1.16 RC1 on Debian 9.1 with puppetserver 5.1.3

Added by Al Man over 7 years ago. Updated about 7 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Category:
foreman-installer script
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

I faced with 2 problems with installing foreman on Debian 9.1 with puppetmaster 5.1.3 (all packages from official repos)
The first problem is located in incorrect template "/usr/share/foreman-installer/modules/puppet/templates/server/puppetserver/services.d/ca.cfg.erb": there is no requaried string "puppetlabs.trapperkeeper.services.watcher.filesystem-watch-service/filesystem-watch-service" at the end of file. It causes following error during running foreman-installer:

java.lang.RuntimeException: Service ':FilesystemWatchService' not found

So I just added necessary line in this template before run foreman-installer.
The second problem is more comlicated. I get following error during installation and cannot solve it:
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[for.localdomain]: Could not evaluate: Proxy for.localdomain cannot be retrieved: unknown error (response 500)
[2017-10-05 16:20:05]  /usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_smartproxy/rest_v3.rb:7:in `proxy'
[2017-10-05 16:20:05]  /usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_smartproxy/rest_v3.rb:13:in `id'
[2017-10-05 16:20:05]  /usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_smartproxy/rest_v3.rb:17:in `exists?'
[2017-10-05 16:20:05]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property/ensure.rb:81:in `retrieve'
[2017-10-05 16:20:05]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:1070:in `retrieve'
[2017-10-05 16:20:05]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:1098:in `retrieve_resource'
[2017-10-05 16:20:05]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:302:in `from_resource'
[2017-10-05 16:20:05]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in `evaluate'
[2017-10-05 16:20:05]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:248:in `apply'
[2017-10-05 16:20:05]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:267:in `eval_resource'
[2017-10-05 16:20:05]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:179:in `call'
[2017-10-05 16:20:05]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:179:in `block (2 levels) in evaluate'
[2017-10-05 16:20:05]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:511:in `block in thinmark'
[2017-10-05 16:20:05]  /opt/puppetlabs/puppet/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'
[2017-10-05 16:20:05]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:510:in `thinmark'
[2017-10-05 16:20:05]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:179:in `block in evaluate'
[2017-10-05 16:20:05]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:121:in `traverse'
[2017-10-05 16:20:06]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:169:in `evaluate'
[2017-10-05 16:20:06]  /usr/lib/ruby/vendor_ruby/kafo/modules/kafo_configure/lib/puppet/parser/functions/add_progress.rb:30:in `evaluate_with_trigger'
[2017-10-05 16:20:06]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:225:in `block in apply'
[2017-10-05 16:20:06]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:155:in `with_destination'
[2017-10-05 16:20:06]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/report.rb:140:in `as_logging_destination'
[2017-10-05 16:20:06]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:224:in `apply'
[2017-10-05 16:20:06]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:172:in `block in apply_catalog'
[2017-10-05 16:20:06]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:224:in `block in benchmark'
[2017-10-05 16:20:06]  /opt/puppetlabs/puppet/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'
[2017-10-05 16:20:06]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:223:in `benchmark'
[2017-10-05 16:20:06]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:171:in `apply_catalog'
[2017-10-05 16:20:06]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:344:in `run_internal'
[2017-10-05 16:20:06]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:222:in `block in run'
[2017-10-05 16:20:06]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
[2017-10-05 16:20:06]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:264:in `override'
[2017-10-05 16:20:06]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:196:in `run'
[2017-10-05 16:20:06]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:356:in `apply_catalog'
[2017-10-05 16:20:06]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:280:in `block (2 levels) in main'
[2017-10-05 16:20:06]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
[2017-10-05 16:20:06]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:264:in `override'
[2017-10-05 16:20:06]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:280:in `block in main'
[2017-10-05 16:20:06]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
[2017-10-05 16:20:06]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:264:in `override'
[2017-10-05 16:20:06]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:233:in `main'
[2017-10-05 16:20:06]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:174:in `run_command'
[2017-10-05 16:20:06]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:358:in `block in run'
[2017-10-05 16:20:06]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:666:in `exit_on_fail'
[2017-10-05 16:20:06]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:358:in `run'
[2017-10-05 16:20:06]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132:in `run'
[2017-10-05 16:20:06]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:72:in `execute'
[2017-10-05 16:20:06]  /opt/puppetlabs/puppet/bin/puppet:5:in `<main>'
[2017-10-05 16:20:06]   /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[for.localdomain]: Failed to call refresh: Proxy for.localdomain cannot be retrieved: unknown error (response 500)
[2017-10-05 16:20:08]   /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[for.localdomain]: Proxy for.localdomain cannot be retrieved: unknown error (response 500)
[2017-10-05 16:20:08]  /usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_smartproxy/rest_v3.rb:7:in `proxy'
[2017-10-05 16:20:08]  /usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_smartproxy/rest_v3.rb:13:in `id'
[2017-10-05 16:20:08]  /usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_smartproxy/rest_v3.rb:17:in `exists?'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property/ensure.rb:81:in `retrieve'
[2017-10-05 16:20:08]  /usr/share/foreman-installer/modules/foreman/lib/puppet/type/foreman_smartproxy.rb:72:in `refresh'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/event_manager.rb:147:in `process_callback'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/event_manager.rb:34:in `block in process_events'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/event_manager.rb:119:in `block in queued_events'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/event_manager.rb:118:in `each'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/event_manager.rb:118:in `queued_events'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/event_manager.rb:33:in `process_events'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:268:in `eval_resource'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:179:in `call'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:179:in `block (2 levels) in evaluate'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:511:in `block in thinmark'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:510:in `thinmark'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:179:in `block in evaluate'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:121:in `traverse'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:169:in `evaluate'
[2017-10-05 16:20:08]  /usr/lib/ruby/vendor_ruby/kafo/modules/kafo_configure/lib/puppet/parser/functions/add_progress.rb:30:in `evaluate_with_trigger'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:225:in `block in apply'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:155:in `with_destination'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/report.rb:140:in `as_logging_destination'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:224:in `apply'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:172:in `block in apply_catalog'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:224:in `block in benchmark'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:223:in `benchmark'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:171:in `apply_catalog'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:344:in `run_internal'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:222:in `block in run'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:264:in `override'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:196:in `run'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:356:in `apply_catalog'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:280:in `block (2 levels) in main'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:264:in `override'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:280:in `block in main'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:264:in `override'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:233:in `main'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:174:in `run_command'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:358:in `block in run'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:666:in `exit_on_fail'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:358:in `run'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132:in `run'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:72:in `execute'
[2017-10-05 16:20:08]  /opt/puppetlabs/puppet/bin/puppet:5:in `<main>'
[2017-10-05 16:20:08]  Installing             Datacat_fragment[foreman_proxy::enabled_features:: [99%] [............................................................................... ]Installing             Datacat_fragment[foreman_proxy::enabled_features:: [99%] [............................................................................... ]Installing             Done                                               [100%] [...............................................................................]Installing             Done                                               [100%] [...............................................................................]
[2017-10-05 16:20:12]    Something went wrong! Check the log for ERROR-level output
[2017-10-05 16:20:12]    * Foreman is running at https://for.localdomain
[2017-10-05 16:20:12]        Initial credentials are admin / 7z3q8Et6P79re7VV
[2017-10-05 16:20:12]    * Foreman Proxy is running at https://for.localdomain:8443
[2017-10-05 16:20:12]    * Puppetmaster is running at port 8140
[2017-10-05 16:20:12]    The full log is at /var/log/foreman-installer/foreman.log


Files

foreman-logs.tar.gz foreman-logs.tar.gz 127 KB foreman-install logs Al Man, 10/05/2017 11:57 AM
foreman-error.JPG View foreman-error.JPG 66.7 KB http error Al Man, 10/09/2017 03:33 AM
error.log error.log 90.6 KB apache2 error log Al Man, 10/09/2017 03:34 AM
output.txt output.txt 40.2 KB Al Man, 10/09/2017 07:51 AM
Actions

Also available in: Atom PDF