I have a fresh install of Puppet 4.2 on an Ubuntu 14.04 box: root@puppet:~# /opt/puppetlabs/bin/puppetserver -v puppetserver version: 2.1.1
We have a locally written Ruby command to do a LDAP lookup to get UIDs for our users, but with Puppet 4.2 it errors out: ----- Begin error ----- root@puppet:~# puppet agent -t Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Internal Server Error: org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- ldap Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run ----- End error ----- I installed the gem with: ----- Begin quote ----- root@puppet:/etc/puppetlabs/code# /opt/puppetlabs/puppet/bin/gem install ruby-ldap root@puppet:/etc/puppetlabs/code# /opt/puppetlabs/puppet/bin/gem list ruby-ldap *** LOCAL GEMS *** ruby-ldap (0.9.17) ----- End quote ----- The full back-trace is attached. The same Ruby file works with Puppet 3.8.1 on Ubuntu 12.04 with the ruby-ldap package installed (not as a gem). What am I missing? Thanks, Omen -- Omen Wild Systems Administrator Metro Cluster -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/20150717011546.GB10028%40descolada.ucdavis.edu. For more options, visit https://groups.google.com/d/optout.
2015-07-16 18:02:16,699 ERROR [p.p.ringutils] Exception while handling HTTP request org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- ldap at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1072) ~[puppet-server-release.jar:na] at RUBY.require(/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:54) ~[na:na] at RUBY.real_function_get_campus_gecos(/etc/puppetlabs/code/environments/production/modules/ucdpuppet/lib/puppet/parser/functions/get_campus_gecos.rb:4) ~[na:na] at RUBY.function_get_campus_gecos(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/functions.rb:162) ~[na:na] at RUBY.profile(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58) ~[na:na] at RUBY.profile(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51) ~[na:na] at RUBY.function_get_campus_gecos(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/functions.rb:155) ~[na:na] at RUBY.call_function(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/runtime3_support.rb:281) ~[na:na] at RUBY.call_function_with_block(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:836) ~[na:na] at RUBY.eval_CallNamedFunctionExpression(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:816) ~[na:na] at RUBY.visit_this_1(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/visitor.rb:67) ~[na:na] at RUBY.evaluate(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:73) ~[na:na] at RUBY.evaluate(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/parser/evaluating_parser.rb:57) ~[na:na] at RUBY.evaluate(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast/pops_bridge.rb:32) ~[na:na] at RUBY.safeevaluate(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast.rb:31) ~[na:na] at RUBY.set_default_parameters(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource.rb:476) ~[na:na] at org.jruby.RubyHash.each(org/jruby/RubyHash.java:1341) ~[puppet-server-release.jar:na] at org.jruby.RubyEnumerable.collect(org/jruby/RubyEnumerable.java:759) ~[puppet-server-release.jar:na] at RUBY.set_default_parameters(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource.rb:470) ~[na:na] at RUBY.set_resource_parameters(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/type.rb:277) ~[na:na] at RUBY.evaluate_code(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/type.rb:106) ~[na:na] at RUBY.evaluate(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/resource.rb:79) ~[na:na] at RUBY.evaluate_definitions(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:368) ~[na:na] at RUBY.profile(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58) ~[na:na] at RUBY.profile(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51) ~[na:na] at RUBY.evaluate_definitions(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:367) ~[na:na] at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613) ~[puppet-server-release.jar:na] at RUBY.evaluate_definitions(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:366) ~[na:na] at RUBY.profile(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58) ~[na:na] at RUBY.profile(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51) ~[na:na] at RUBY.evaluate_definitions(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:365) ~[na:na] at RUBY.exceptwrap(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/errors.rb:64) ~[na:na] at RUBY.evaluate_definitions(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:364) ~[na:na] at RUBY.evaluate_generators(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:387) ~[na:na] at RUBY.profile(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58) ~[na:na] at RUBY.profile(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51) ~[na:na] at RUBY.evaluate_generators(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:384) ~[na:na] at org.jruby.RubyKernel.loop(org/jruby/RubyKernel.java:1511) ~[puppet-server-release.jar:na] at RUBY.evaluate_generators(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:381) ~[na:na] at RUBY.compile(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:137) ~[na:na] at RUBY.profile(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58) ~[na:na] at RUBY.profile(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51) ~[na:na] at RUBY.compile(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:137) ~[na:na] at RUBY.override(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:64) ~[na:na] at RUBY.override(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:223) ~[na:na] at RUBY.compile(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:121) ~[na:na] at RUBY.compile(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:34) ~[na:na] at RUBY.compile(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:93) ~[na:na] at RUBY.profile(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58) ~[na:na] at RUBY.profile(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51) ~[na:na] at RUBY.compile(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:91) ~[na:na] at RUBY.benchmark(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:129) ~[na:na] at RUBY.realtime(/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/1.9/benchmark.rb:295) ~[na:na] at RUBY.benchmark(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:128) ~[na:na] at RUBY.compile(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:90) ~[na:na] at RUBY.find(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:50) ~[na:na] at RUBY.find(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/indirection.rb:194) ~[na:na] at RUBY.do_find(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/api/indirected_routes.rb:134) ~[na:na] at RUBY.call(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/api/indirected_routes.rb:48) ~[na:na] at RUBY.override(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:64) ~[na:na] at RUBY.override(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:223) ~[na:na] at RUBY.call(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/api/indirected_routes.rb:47) ~[na:na] at RUBY.process(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:82) ~[na:na] at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613) ~[puppet-server-release.jar:na] at RUBY.process(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:81) ~[na:na] at RUBY.process(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:87) ~[na:na] at RUBY.process(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:87) ~[na:na] at RUBY.process(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:60) ~[na:na] at RUBY.profile(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58) ~[na:na] at RUBY.profile(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51) ~[na:na] at RUBY.process(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:58) ~[na:na] at RUBY.handleRequest(file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/master.rb:39) ~[na:na] at Puppet$$Server$$Master_1398138982.handleRequest(Puppet$$Server$$Master_1398138982.gen:13) ~[na:na] at puppetlabs.services.request_handler.request_handler_core$handle_request.invoke(request_handler_core.clj:274) ~[na:na] at puppetlabs.services.request_handler.request_handler_service$reify__7466$service_fnk__4090__auto___positional$reify__7473.handle_request(request_handler_service.clj:14) ~[na:na] at puppetlabs.services.protocols.request_handler$eval5613$fn__5614$G__5605__5617.invoke(request_handler.clj:3) ~[na:na] at puppetlabs.services.protocols.request_handler$eval5613$fn__5614$G__5604__5621.invoke(request_handler.clj:3) ~[na:na] at clojure.core$apply.invoke(core.clj:626) ~[puppet-server-release.jar:na] at clojure.core$partial$fn__4228.doInvoke(core.clj:2468) ~[puppet-server-release.jar:na] at puppetlabs.services.master.master_core$v3_routes$fn__14127.invoke(master_core.clj:47) ~[na:na] at bidi.ring$eval12151$fn__12152.invoke(ring.clj:22) ~[na:na] at bidi.ring$eval12130$fn__12131$G__12121__12140.invoke(ring.clj:13) ~[na:na] at puppetlabs.comidi$make_handler$fn__13946.invoke(comidi.clj:267) ~[na:na] at puppetlabs.puppetserver.ringutils$wrap_exception_handling$fn__11275.invoke(ringutils.clj:106) ~[na:na] at puppetlabs.puppetserver.ringutils$wrap_request_logging$fn__11221.invoke(ringutils.clj:62) ~[na:na] at puppetlabs.puppetserver.ringutils$wrap_response_logging$fn__11229.invoke(ringutils.clj:68) ~[na:na] at puppetlabs.puppetserver.ringutils$wrap_with_puppet_version_header$fn__11280.invoke(ringutils.clj:118) ~[na:na] at puppetlabs.trapperkeeper.services.webserver.jetty9_core$ring_handler$fn__8410.invoke(jetty9_core.clj:408) ~[na:na]
smime.p7s
Description: S/MIME cryptographic signature