Bug #21218
closedForeman 1.16 RC1 on Debian 9.1 with puppetserver 5.1.3
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
Updated by Ewoud Kohl van Wijngaarden over 7 years ago
- Status changed from New to Need more information
The first issue should be fixed in RC2 by pulling in theforeman-puppet 8.0.3 which adds compatibility with puppetserver 5.1.
For the second issue we need the know why a HTTP 500 was returned. That should be in /var/log/foreman/production.log.
Updated by Al Man over 7 years ago
- File foreman-logs.tar.gz foreman-logs.tar.gz added
Ewoud Kohl van Wijngaarden wrote:
The first issue should be fixed in RC2 by pulling in theforeman-puppet 8.0.3 which adds compatibility with puppetserver 5.1.
For the second issue we need the know why a HTTP 500 was returned. That should be in /var/log/foreman/production.log.
I can't see any useful information in the logs, but I've attached them.
Updated by Ewoud Kohl van Wijngaarden over 7 years ago
I would have expected a request in production.log. Can you see if you hit the correct (v)host when you manually do the HTTP request?
Updated by Al Man over 7 years ago
- File foreman-error.JPG foreman-error.JPG added
- File error.log error.log added
What do you mean?
When I go to main web-page of foreman I get following error (see screenshot)
Also I'm attaching apache2 error log
Updated by Ewoud Kohl van Wijngaarden over 7 years ago
I expected those errors in production.log, not the apache error log. This is the output we need.
Updated by Ivan Necas over 7 years ago
I've seen the issue with "dynflow_schema_info" issue some (quite long) time ago, but was never able to reproduce locally/find what the cause for this actually is. Running foreman-rake db:migrate
and foreman-rake db:seed
might be helpful. If it doesn't help, since it seems like a fresh install, dropping all dynlfow_*
tables, followed by foreman-rake db:migrate
and foreman-rake db:seed
might be also worth trying. But as I said, the problem with this issue is the finding a reproducer.
Updated by Al Man over 7 years ago
- File output.txt output.txt added
Ivan Necas wrote:
I've seen the issue with "dynflow_schema_info" issue some (quite long) time ago, but was never able to reproduce locally/find what the cause for this actually is. Running
foreman-rake db:migrate
andforeman-rake db:seed
might be helpful. If it doesn't help, since it seems like a fresh install, dropping alldynlfow_*
tables, followed byforeman-rake db:migrate
andforeman-rake db:seed
might be also worth trying. But as I said, the problem with this issue is the finding a reproducer.
These commands didn't help me (even after dropping tables). The full output in attachment.
Updated by Anonymous over 7 years ago
Any updates for this issue?
Which one?
The puppetserver issue should be gone with 1.16RC2, you might need to reset some parameters, see http://projects.theforeman.org/projects/foreman/wiki/Upgrading_from_Puppet_4_to_5#Prepare-And-Run-The-Installer
The dynflow issue is completely unrelated.
Updated by Anonymous about 7 years ago
- Status changed from Need more information to Feedback