Advertisement
t-readyroc

foreman-installer error

Aug 17th, 2016
531
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.25 KB | None | 0 0
  1. The command:
  2.  
  3. foreman-installer --foreman-admin-email={{ rootemail }} --foreman-admin-password={{ foreman_admin_pass }}
  4. --foreman-admin-username={{ foreman_user }} --foreman-db-adapter={{ foreman_db_adapter }}
  5. --foreman-db-database={{ foreman_database }} --foreman-db-host=localhost
  6. --foreman-db-manage=false --foreman-db-password={{ foreman_db_pass }}
  7. --foreman-foreman-url {{ foreman_url }} --foreman-servername={{ foreman_servername }}
  8. --foreman-client-ssl-key="{{ ssl_certificate_info.ssl_dir }}{{ ssl_certificate_info.privatekey_dir }}/{{ cert_hostname }}{{ ssl_certificate_info.privatekey_ext }}"
  9. --foreman-client-ssl-cert="{{ ssl_certificate_info.ssl_dir }}{{ ssl_certificate_info.certificate_dir }}/{{ cert_hostname }}{{ ssl_certificate_info.certificate_ext }}"
  10.  
  11.  
  12. The error:
  13.  
  14. /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foreman.dev.mydomain.com]: Could not evaluate: Proxy foreman.dev.mydomain.com cannot be retrieved: unknown error (response 401)
  15. /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foreman.dev.mydomain.com]: Failed to call refresh: Proxy foreman.dev.mydomain.com cannot be retrieved: unknown error (response 401)
  16. /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foreman.dev.mydomain.com]: Proxy foreman.dev.mydomain.com cannot be retrieved: unknown error (response 401)
  17. Installing Done [100%] [.........................................................................................................]
  18. Something went wrong! Check the log for ERROR-level output
  19.  
  20.  
  21. The apache error_log:
  22.  
  23. [ 2016-08-17 16:26:11.6314 8145/7f1de72c0700 Pool2/Implementation.cpp:883 ]: Could not spawn process for group /usr/share/foreman#default: An error occured while starting up the preloader.
  24. in 'void Passenger::ApplicationPool2::SmartSpawner::handleErrorResponse(Passenger::ApplicationPool2::SmartSpawner::StartupDetails&)' (SmartSpawner.h:455)
  25. in 'std::string Passenger::ApplicationPool2::SmartSpawner::negotiatePreloaderStartup(Passenger::ApplicationPool2::SmartSpawner::StartupDetails&)' (SmartSpawner.h:566)
  26. in 'void Passenger::ApplicationPool2::SmartSpawner::startPreloader()' (SmartSpawner.h:206)
  27. in 'virtual Passenger::ApplicationPool2::ProcessPtr Passenger::ApplicationPool2::SmartSpawner::spawn(const Passenger::ApplicationPool2::Options&)' (SmartSpawner.h:752)
  28. in 'void Passenger::ApplicationPool2::Group::spawnThreadRealMain(const SpawnerPtr&, const Passenger::ApplicationPool2::Options&, unsigned int)' (Implementation.cpp:804)
  29.  
  30. [ 2016-08-17 16:26:11.6315 8145/7f1de4f8a700 agents/HelperAgent/RequestHandler.h:2088 ]: [Client 20] Cannot checkout session.
  31. Error page:
  32. <p>It looks like Bundler could not find a gem. Maybe you didn't install all the gems that this application needs. To install your gems, please run:</p>
  33.  
  34. <pre class="commands">bundle install</pre>
  35.  
  36. <p>If that didn't work, then the problem is probably caused by your application being run under a different environment than it's supposed to. Please check the following:</p>
  37.  
  38. <ol>
  39. <li>Is this app supposed to be run as the <code>nobody</code> user?</li>
  40. <li>Is this app being run on the correct Ruby interpreter? Below you will
  41. see which Ruby interpreter Phusion Passenger attempted to use.</li>
  42. </ol>
  43.  
  44. <p>-------- The exception is as follows: -------</p>
  45. Could not find gem &#39;rails (= 4.2.6) ruby&#39; in the gems available on this machine. (Bundler::GemNotFound)
  46. <pre> /usr/lib/ruby/vendor_ruby/bundler/resolver.rb:296:in `resolve&#39;
  47. /usr/lib/ruby/vendor_ruby/bundler/resolver.rb:168:in `start&#39;
  48. /usr/lib/ruby/vendor_ruby/bundler/resolver.rb:129:in `block in resolve&#39;
  49. /usr/lib/ruby/vendor_ruby/bundler/resolver.rb:128:in `catch&#39;
  50. /usr/lib/ruby/vendor_ruby/bundler/resolver.rb:128:in `resolve&#39;
  51. /usr/lib/ruby/vendor_ruby/bundler/definition.rb:179:in `resolve&#39;
  52. /usr/lib/ruby/vendor_ruby/bundler/definition.rb:114:in `specs&#39;
  53. /usr/lib/ruby/vendor_ruby/bundler/definition.rb:159:in `specs_for&#39;
  54. /usr/lib/ruby/vendor_ruby/bundler/definition.rb:148:in `requested_specs&#39;
  55. /usr/lib/ruby/vendor_ruby/bundler/environment.rb:18:in `requested_specs&#39;
  56. /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:13:in `setup&#39;
  57. /usr/lib/ruby/vendor_ruby/bundler.rb:120:in `setup&#39;
  58. /usr/lib/ruby/vendor_ruby/bundler/setup.rb:17:in `&lt;top (required)&gt;&#39;
  59. /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require&#39;
  60. /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require&#39;
  61. /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:245:in `block in run_load_path_setup_code&#39;
  62. /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:348:in `running_bundler&#39;
  63. /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:243:in `run_load_path_setup_code&#39;
  64. /usr/share/passenger/helper-scripts/rack-preloader.rb:100:in `preload_app&#39;
  65. /usr/share/passenger/helper-scripts/rack-preloader.rb:158:in `&lt;module:App&gt;&#39;
  66. /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `&lt;module:PhusionPassenger&gt;&#39;
  67. /usr/share/passenger/helper-scripts/rack-preloader.rb:28:in `&lt;main&gt;&#39;</pre>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement