Bug #19005
closedAVCs as Foreman fails to transition to passenger_t on Fedora 24
Description
This is my first time installing TheForeman, and I'm trying to install it on a brand new Fedora 24 Server VM. I've followed the instructions in the quick start guide, and after running the installer, it fails when it gets to the smart proxy. If I disabled the proxy through the interactive installation, it the installation completes, but the site still does not load.
This is the error that is dumped out during installation :
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foreman.testdomain.com]: Could not evaluate: Proxy foreman.testdomain.com cannot be retrieved: unknown error (response 500)
/usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_smartproxy/rest_v3.rb:7: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/share/ruby/vendor_ruby/puppet/property/ensure.rb:81:in `retrieve'
/usr/share/ruby/vendor_ruby/puppet/type.rb:1043:in `retrieve'
/usr/share/ruby/vendor_ruby/puppet/type.rb:1071:in `retrieve_resource'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:241:in `from_resource'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:19:in `evaluate'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:204:in `apply'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:220:in `eval_resource'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `call'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `block (2 levels) in evaluate'
/usr/share/ruby/vendor_ruby/puppet/util.rb:292:in `block in thinmark'
/usr/share/ruby/benchmark.rb:308:in `realtime'
/usr/share/ruby/vendor_ruby/puppet/util.rb:291:in `thinmark'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `block in evaluate'
/usr/share/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:138:in `evaluate'
/usr/share/gems/gems/kafo-1.0.5/modules/kafo_configure/lib/puppet/parser/functions/add_progress.rb:30:in `evaluate_with_trigger'
/usr/share/ruby/vendor_ruby/puppet/resource/catalog.rb:178:in `block in apply'
/usr/share/ruby/vendor_ruby/puppet/util/log.rb:153:in `with_destination'
/usr/share/ruby/vendor_ruby/puppet/transaction/report.rb:107:in `as_logging_destination'
/usr/share/ruby/vendor_ruby/puppet/resource/catalog.rb:177:in `apply'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:119:in `block in apply_catalog'
/usr/share/ruby/vendor_ruby/puppet/util.rb:129:in `block in benchmark'
/usr/share/ruby/benchmark.rb:308:in `realtime'
/usr/share/ruby/vendor_ruby/puppet/util.rb:128:in `benchmark'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:118:in `apply_catalog'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:228:in `run_internal'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:134:in `block in run'
/usr/share/ruby/vendor_ruby/puppet/context.rb:64:in `override'
/usr/share/ruby/vendor_ruby/puppet.rb:223:in `override'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:133:in `run'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:343:in `apply_catalog'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:274:in `block in main'
/usr/share/ruby/vendor_ruby/puppet/context.rb:64:in `override'
/usr/share/ruby/vendor_ruby/puppet.rb:223:in `override'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:225:in `main'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:170:in `run_command'
/usr/share/ruby/vendor_ruby/puppet/application.rb:344:in `block in run'
/usr/share/ruby/vendor_ruby/puppet/util.rb:446:in `exit_on_fail'
/usr/share/ruby/vendor_ruby/puppet/application.rb:344:in `run'
/usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:128:in `run'
/usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:72:in `execute'
/usr/bin/puppet:5:in `<main>'
I've shut down the firewall completelely, and set SELinux to permissive and it still won't load. When I try disabling the smart proxy and then going to the website, that fails to load as well:
@
We're sorry, but something went wrong.
We've been notified about this issue and we'll take a look at it shortly.
@
In the error_log file I see this error:
[ 2017-03-23 10:45:16.7380 6922/7f88bb7fe700 age/Cor/Con/CheckoutSession.cpp:285 ]: [Client 2-163] Cannot checkout session because a spawning error occurred. The identifier of the error is 4bca0174. Please see earlier logs for details a$
rb_sysopen - /usr/share/foreman/tmp/cache/websockets_ssl_key20170323-18202-2tmgp6 (Errno::EACCES)
App 18202 stdout:
App 18202 stderr: [passenger_native_support.so] trying to compile for the current user (foreman) and Ruby interpreter...
App 18202 stderr:
App 18202 stderr: (set PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0 to disable)
App 18202 stderr:
App 18202 stderr: Warning: compilation didn't succeed. To learn why, read this file:
App 18202 stderr:
App 18202 stderr: /tmp/passenger_native_support-nbait3.log
App 18202 stderr:
App 18202 stderr: [passenger_native_support.so] not downloading because passenger wasn't installed from a release package
App 18202 stderr:
App 18202 stderr: [passenger_native_support.so] will not be used (can't compile or download)
App 18202 stderr:
App 18202 stderr: --> Passenger will still operate normally.
App 18202 stderr:
App 18202 stderr: Log file /usr/share/foreman/log/production.log cannot be opened. Falling back to STDOUT
App 18202 stderr:
App 18202 stdout: WARN root : No appender set, logging to STDOUT
App 18202 stdout:
[ 2017-03-23 10:45:19.6900 6922/7f88c83ba700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /usr/share/foreman: An error occurred while starting up the preloader.
Error ID: 659b0dc9
Error details saved to: /tmp/passenger-error-QQAXxX.html
Message from application: Permission denied
/usr/share/ruby/tempfile.rb:133:in `initialize'
/usr/share/ruby/tempfile.rb:133:in `open'
/usr/share/ruby/tempfile.rb:133:in `block in initialize'
/usr/share/ruby/tmpdir.rb:130:in `create'
/usr/share/ruby/tempfile.rb:131:in `initialize'
/usr/share/gems/gems/activesupport-4.2.5.2/lib/active_support/core_ext/file/atomic.rb:21:in `new'
/usr/share/gems/gems/activesupport-4.2.5.2/lib/active_support/core_ext/file/atomic.rb:21:in `atomic_write'
/usr/share/gems/gems/activesupport-4.2.5.2/lib/active_support/cache/file_store.rb:83:in `write_entry'
/usr/share/gems/gems/activesupport-4.2.5.2/lib/active_support/cache/strategy/local_cache.rb:115:in `write_entry'
/usr/share/gems/gems/activesupport-4.2.5.2/lib/active_support/cache.rb:391:in `block in write'
/usr/share/gems/gems/activesupport-4.2.5.2/lib/active_support/cache.rb:547:in `block in instrument'
/usr/share/gems/gems/activesupport-4.2.5.2/lib/active_support/notifications.rb:166:in `instrument'
/usr/share/gems/gems/activesupport-4.2.5.2/lib/active_support/cache.rb:547:in `instrument'
/usr/share/gems/gems/activesupport-4.2.5.2/lib/active_support/cache.rb:389:in `write'
/usr/share/foreman/app/models/setting.rb:87:in `[]'
/usr/share/foreman/app/models/setting/auth.rb:55:in `validate_websockets_encrypt'
/usr/share/foreman/app/models/setting.rb:24:in `validate'
/usr/share/gems/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:455:in `public_send'
/usr/share/gems/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:455:in `block in make_lambda'
/usr/share/gems/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:182:in `block in conditional'
/usr/share/gems/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:504:in `block in call'
/usr/share/gems/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:504:in `each'
/usr/share/gems/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:504:in `call'
/usr/share/gems/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
/usr/share/gems/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:778:in `_run_validate_callbacks'
/usr/share/gems/gems/activemodel-4.2.5.2/lib/active_model/validations.rb:399:in `run_validations!'
/usr/share/gems/gems/activemodel-4.2.5.2/lib/active_model/validations/callbacks.rb:113:in `block in run_validations!'
/usr/share/gems/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:117:in `call'
/usr/share/gems/gems/activemodel-4.2.5.2/lib/active_model/validations/callbacks.rb:113:in `block in run_validations!'
/usr/share/gems/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:117:in `call'
/usr/share/gems/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
/usr/share/gems/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:505:in `call'
/usr/share/gems/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
/usr/share/gems/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:778:in `_run_validation_callbacks'
/usr/share/gems/gems/activemodel-4.2.5.2/lib/active_model/validations/callbacks.rb:113:in `run_validations!'
/usr/share/gems/gems/activemodel-4.2.5.2/lib/active_model/validations.rb:338:in `valid?'
/usr/share/gems/gems/activerecord-4.2.5.2/lib/active_record/validations.rb:58:in `valid?'
/usr/share/gems/gems/activerecord-4.2.5.2/lib/active_record/validations.rb:83:in `perform_validations'
/usr/share/gems/gems/activerecord-4.2.5.2/lib/active_record/validations.rb:37:in `save'
/usr/share/gems/gems/activerecord-4.2.5.2/lib/active_record/attribute_methods/dirty.rb:21:in `save'
/usr/share/gems/gems/activerecord-4.2.5.2/lib/active_record/transactions.rb:286:in `block (2 levels) in save'
/usr/share/gems/gems/activerecord-4.2.5.2/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status'
/usr/share/gems/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `transaction'
/usr/share/gems/gems/activerecord-4.2.5.2/lib/active_record/transactions.rb:220:in `transaction'
/usr/share/gems/gems/activerecord-4.2.5.2/lib/active_record/transactions.rb:348:in `with_transaction_returning_status'
/usr/share/gems/gems/activerecord-4.2.5.2/lib/active_record/transactions.rb:286:in `block in save'
/usr/share/gems/gems/activerecord-4.2.5.2/lib/active_record/transactions.rb:301:in `rollback_active_record_state!'
/usr/share/gems/gems/activerecord-4.2.5.2/lib/active_record/transactions.rb:285:in `save'
/usr/share/gems/gems/activerecord-4.2.5.2/lib/active_record/persistence.rb:252:in `block in update'
/usr/share/gems/gems/activerecord-4.2.5.2/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status'
/usr/share/gems/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `transaction'
/usr/share/gems/gems/activerecord-4.2.5.2/lib/active_record/transactions.rb:220:in `transaction'
/usr/share/gems/gems/activerecord-4.2.5.2/lib/active_record/transactions.rb:348:in `with_transaction_returning_status'
/usr/share/gems/gems/activerecord-4.2.5.2/lib/active_record/persistence.rb:250:in `update'
/usr/share/foreman/app/models/setting.rb:228:in `block in create_existing'
/usr/share/foreman/app/models/setting.rb:244:in `bypass_readonly'
/usr/share/foreman/app/models/setting.rb:224:in `create_existing'
/usr/share/foreman/app/models/setting.rb:203:in `create!'
/usr/share/foreman/app/models/setting/auth.rb:38:in `block (2 levels) in load_defaults'
/usr/share/foreman/app/models/setting/auth.rb:38:in `each'
/usr/share/foreman/app/models/setting/auth.rb:38:in `block in load_defaults'
/usr/share/gems/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'
/usr/share/gems/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction'
/usr/share/gems/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
/usr/share/gems/gems/activerecord-4.2.5.2/lib/active_record/transactions.rb:220:in `transaction'
/usr/share/foreman/app/models/setting/auth.rb:13:in `load_defaults'
/usr/share/foreman/config/initializers/foreman.rb:25:in `each'
/usr/share/foreman/config/initializers/foreman.rb:25:in `<top (required)>'
/usr/share/gems/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:268:in `load'
/usr/share/gems/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:268:in `block in load'
/usr/share/gems/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:240:in `load_dependency'
/usr/share/gems/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:268:in `load'
/usr/share/gems/gems/railties-4.2.5.2/lib/rails/engine.rb:652:in `block in load_config_initializer'
/usr/share/gems/gems/activesupport-4.2.5.2/lib/active_support/notifications.rb:166:in `instrument'
/usr/share/gems/gems/railties-4.2.5.2/lib/rails/engine.rb:651:in `load_config_initializer'
/usr/share/gems/gems/railties-4.2.5.2/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
/usr/share/gems/gems/railties-4.2.5.2/lib/rails/engine.rb:615:in `each'
/usr/share/gems/gems/railties-4.2.5.2/lib/rails/engine.rb:615:in `block in <class:Engine>'
/usr/share/gems/gems/railties-4.2.5.2/lib/rails/initializable.rb:30:in `instance_exec'
/usr/share/gems/gems/railties-4.2.5.2/lib/rails/initializable.rb:30:in `run'
/usr/share/gems/gems/railties-4.2.5.2/lib/rails/initializable.rb:55:in `block in run_initializers'
/usr/share/ruby/tsort.rb:228:in `block in tsort_each'
/usr/share/ruby/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
/usr/share/ruby/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
/usr/share/ruby/tsort.rb:431:in `each_strongly_connected_component_from'
/usr/share/ruby/tsort.rb:421:in `block in each_strongly_connected_component_from'
/usr/share/gems/gems/railties-4.2.5.2/lib/rails/initializable.rb:44:in `each'
/usr/share/gems/gems/railties-4.2.5.2/lib/rails/initializable.rb:44:in `tsort_each_child'
/usr/share/gems/gems/railties-4.2.5.2/lib/rails/initializable.rb:44:in `each'
/usr/share/gems/gems/railties-4.2.5.2/lib/rails/initializable.rb:44:in `tsort_each_child'
/usr/share/ruby/tsort.rb:415:in `call'
/usr/share/ruby/tsort.rb:415:in `each_strongly_connected_component_from'
/usr/share/ruby/tsort.rb:349:in `block in each_strongly_connected_component'
/usr/share/ruby/tsort.rb:347:in `each'
/usr/share/ruby/tsort.rb:347:in `call'
/usr/share/ruby/tsort.rb:347:in `each_strongly_connected_component'
/usr/share/ruby/tsort.rb:226:in `tsort_each'
/usr/share/ruby/tsort.rb:205:in `tsort_each'
/usr/share/gems/gems/railties-4.2.5.2/lib/rails/initializable.rb:54:in `run_initializers'
/usr/share/gems/gems/railties-4.2.5.2/lib/rails/application.rb:352:in `initialize!'
/usr/share/gems/gems/railties-4.2.5.2/lib/rails/railtie.rb:194:in `public_send'
/usr/share/gems/gems/railties-4.2.5.2/lib/rails/railtie.rb:194:in `method_missing'
/usr/share/foreman/config/environment.rb:5:in `<top (required)>'
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
config.ru:3:in `block in <main>'
/usr/share/gems/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
/usr/share/gems/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
config.ru:1:in `new'
config.ru:1:in `<main>'
/usr/share/passenger/helper-scripts/rack-preloader.rb:110:in `eval'
/usr/share/passenger/helper-scripts/rack-preloader.rb:110:in `preload_app'
/usr/share/passenger/helper-scripts/rack-preloader.rb:156:in `<module:App>'
/usr/share/passenger/helper-scripts/rack-preloader.rb:30:in `<module:PhusionPassenger>'
/usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<main>'
[ 2017-03-23 10:45:19.7070 6922/7f88bbfff700 age/Cor/Con/CheckoutSession.cpp:285 ]: [Client 1-164] Cannot checkout session because a spawning error occurred. The identifier of the error is 659b0dc9. Please see earlier logs for details a$
@
We're completely stuck here. I've tried a few different flavors of OS (Server/Workstation). It's been a huge pain.