Message from application: cannot load such file — puppet/util/command_line (LoadError)

1,121 views
Skip to first unread message

San

unread,
May 18, 2016, 9:10:47 AM5/18/16
to Puppet Users

Hi, 


I have configured puppet with passenger (using - https://docs.puppet.com/guides/passenger.html AND http://www.olindata.com/blog/2014/09/setup-puppet-master-passenger-and-apache-centos ).


[root@a-puppet-03 ~]# puppet --version

4.4.2

[root@a-puppet-03 ~]# ruby --version

ruby 2.1.8p440 (2015-12-16 revision 53160) [x86_64-linux]

[root@a-puppet-03 ~]# passenger --version

Phusion Passenger 5.0.28

[root@a-puppet-03 ~]# cat /etc/centos-release

CentOS release 6.7 (Final)

[root@a-puppet-03 ~]#



Things are fine till the last step, when puppet agent is run, there are lots of error. Mainly LoadError.


puppet agent -t 


[ 2016-05-18 04:06:41.8270 19959/7f95efba2700 age/Cor/Con/CheckoutSession.cpp:285 ]: [Client 1-100] Cannot checkout session because a spawning error occurred. The identifier of the error is ba45fc42. Please see earlier logs for details about the error.

App 25759 stdout:

App 25759 stdout:

[ 2016-05-18 04:06:42.2164 19959/7f95ee7a0700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /usr/share/puppet/rack/puppetmasterd: An error occurred while starting up the preloader.

  Error ID: d1069d73

  Error details saved to: /tmp/passenger-error-SqIO1Z.html

  Message from application: cannot load such file -- puppet/util/command_line (LoadError)

  /usr/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'

  /usr/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'

  config.ru:41:in `block in <main>'

  /usr/local/lib/ruby/gems/2.1.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'

  /usr/local/lib/ruby/gems/2.1.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'

  config.ru:1:in `new'

  config.ru:1:in `<main>'

  /usr/local/lib/ruby/gems/2.1.0/gems/passenger-5.0.28/src/helper-scripts/rack-preloader.rb:110:in `eval'

  /usr/local/lib/ruby/gems/2.1.0/gems/passenger-5.0.28/src/helper-scripts/rack-preloader.rb:110:in `preload_app'

  /usr/local/lib/ruby/gems/2.1.0/gems/passenger-5.0.28/src/helper-scripts/rack-preloader.rb:156:in `<module:App>'

  /usr/local/lib/ruby/gems/2.1.0/gems/passenger-5.0.28/src/helper-scripts/rack-preloader.rb:30:in `<module:PhusionPassenger>'

  /usr/local/lib/ruby/gems/2.1.0/gems/passenger-5.0.28/src/helper-scripts/rack-preloader.rb:29:in `<main>'



Please can someone help.. thanks in advance..

Lowe Schmidt

unread,
May 19, 2016, 3:40:42 AM5/19/16
to puppet...@googlegroups.com
First off. As of Puppet 4 is the server part written in Clojure and runs on the JVM, the parts that are still Ruby are also ran on the JVM with JRuby. 

Secondly is the package an all in one package, so no third party or system ruby should be running.

You should not need Apache or Passenger, just go to the root of the puppet installation (i believe it is /opt/puppet/ by default) and run ./bin/puppetserver and you should be set.

--
Lowe Schmidt | +46 723 867 157

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/4adaf1f5-792e-4af8-acab-e945b19cd427%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

San

unread,
May 23, 2016, 2:28:55 AM5/23/16
to Puppet Users
Thanks a lot.. 

This helped.. Guess it was not necessary at all. Just running the puppetserver service is enough..
Reply all
Reply to author
Forward
0 new messages