I''ve set up this machine, I think, like my two others. I''ve compiled and installed: facter-1.5.2 puppet-0.24.7 augeas-0.3.5 Also, done gem install ruby-augeas-0.2.0.gem All of it seemed to work, but: $ /usr/bin/puppetd -t --noop err: Could not create no usecacheonfailure: Could not find a default provider for augeas warning: Not using cache on failed catalog warning: Configuration could not be instantiated: Could not find a default provider for augeas That''s not an especially helpful error message; can someone give me a hint? -Robin -- They say: "The first AIs will be built by the military as weapons." And I''m thinking: "Does it even occur to you to try for something other than the default outcome?" -- http://shorl.com/tydruhedufogre http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
On Thu, Jan 15, 2009 at 05:17:37PM -0800, Robin Lee Powell wrote:> > > I''ve set up this machine, I think, like my two others. I''ve > compiled and installed: > > facter-1.5.2 > > puppet-0.24.7 > > augeas-0.3.5 > > Also, done gem install ruby-augeas-0.2.0.gem > > All of it seemed to work, but: > > $ /usr/bin/puppetd -t --noop > err: Could not create no usecacheonfailure: Could not find a default provider for augeas > warning: Not using cache on failed catalog > warning: Configuration could not be instantiated: Could not find a default provider for augeas > > That''s not an especially helpful error message; can someone give me > a hint?strace and I found the problem; I needed /usr/local/lib in my ld.so.conf. Puppet wasn''t looking there for libaugeas.so.0 -Robin -- They say: "The first AIs will be built by the military as weapons." And I''m thinking: "Does it even occur to you to try for something other than the default outcome?" -- http://shorl.com/tydruhedufogre http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Larry Ludwig
2009-Feb-02 20:51 UTC
[Puppet Users] Puppet can''t find Augeas (now with RPMs)
Hi all I''m getting this same error with the Puppet RPMs from EPEL. I have installed: puppet-0.24.7-4.el4 ruby-augeas-0.2.0-3.el4 augeas-0.3.5-2.el4 augeas-libs-0.3.5-2.el4 facter-1.5.2-1.el4 on a 64 bit CentOS 4.7. but I''m getting this error with this code: augeas { "augeas-sshd_config": context => "/files/etc/ssh/sshd_config", changes => "set Protocol 2", require => File["sshd_config"], notify => Service["sshd"], } and get this error puppetd[17297]: Could not create augeas-sshd_config: Could not find a default provider for augeas puppetd[17297]: Configuration could not be instantiated: Could not find a default provider for augeas Is there a path issue in one of the rpms with 64 bit OS?? This does not happen on the 32 bit CentOS 3 machines I have that we compiled inhouse the RPMs. Though the error does seem to occur on both 32 and 64 bit CentOS 4 and 5 but the RPMs are not complied by us. -L On Jan 15, 8:28 pm, Robin Lee Powell <rlpow...@digitalkingdom.org> wrote:> On Thu, Jan 15, 2009 at 05:17:37PM -0800, Robin Lee Powell wrote: > > > I''ve set up this machine, I think, like my two others. I''ve > > compiled and installed: > > > facter-1.5.2 > > > puppet-0.24.7 > > >augeas-0.3.5 > > > Also, done gem install ruby-augeas-0.2.0.gem > > > All of it seemed to work, but: > > > $ /usr/bin/puppetd -t --noop > > err:Couldnotcreate no usecacheonfailure:Couldnotfinda default provider foraugeas > > warning:Notusing cache on failed catalog > > warning: Configurationcouldnotbe instantiated:Couldnotfinda default provider foraugeas > > > That''snotan especially helpful error message; can someone give me > > a hint? > > strace and I found the problem; I needed /usr/local/lib in my > ld.so.conf. Puppet wasn''t looking there for libaugeas.so.0 > > -Robin > > -- > They say: "The first AIs will be built by the military as weapons." > And I''m thinking: "Does it even occur to you to try for something > other than the default outcome?" --http://shorl.com/tydruhedufogrehttp://www.digitalkingdom.org/~rlpowell/***http://www.lojban.org/--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
David Lutterkort
2009-Feb-03 06:14 UTC
[Puppet Users] Re: Puppet can''t find Augeas (now with RPMs)
On Mon, 2009-02-02 at 12:51 -0800, Larry Ludwig wrote:> Hi all I''m getting this same error with the Puppet RPMs from EPEL. > > I have installed: > puppet-0.24.7-4.el4 > ruby-augeas-0.2.0-3.el4 > augeas-0.3.5-2.el4 > augeas-libs-0.3.5-2.el4 > facter-1.5.2-1.el4 > > on a 64 bit CentOS 4.7. > > but I''m getting this error with this code: > > augeas { "augeas-sshd_config": > context => "/files/etc/ssh/sshd_config", > changes => "set Protocol 2", > require => File["sshd_config"], > notify => Service["sshd"], > } > > and get this error > > puppetd[17297]: Could not create augeas-sshd_config: Could not find a > default provider for augeas > puppetd[17297]: Configuration could not be instantiated: Could not > find a default provider for augeasDo you have ruby-augeas installed on your puppetmaster ? You''ll need that, too for things to work out.> Is there a path issue in one of the rpms with 64 bit OS??Only if you have noarch RPM''s - as long as all the RPM''s you list above have the same arch (all i386 or all x86_64), you should be fine. David --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Larry Ludwig
2009-Feb-03 13:05 UTC
[Puppet Users] Re: Puppet can''t find Augeas (now with RPMs)
David Lutterkort wrote:> On Mon, 2009-02-02 at 12:51 -0800, Larry Ludwig wrote: > >> Hi all I''m getting this same error with the Puppet RPMs from EPEL. >> >> I have installed: >> puppet-0.24.7-4.el4 >> ruby-augeas-0.2.0-3.el4 >> augeas-0.3.5-2.el4 >> augeas-libs-0.3.5-2.el4 >> facter-1.5.2-1.el4 >> >> on a 64 bit CentOS 4.7. >> >> but I''m getting this error with this code: >> >> augeas { "augeas-sshd_config": >> context => "/files/etc/ssh/sshd_config", >> changes => "set Protocol 2", >> require => File["sshd_config"], >> notify => Service["sshd"], >> } >> >> and get this error >> >> puppetd[17297]: Could not create augeas-sshd_config: Could not find a >> default provider for augeas >> puppetd[17297]: Configuration could not be instantiated: Could not >> find a default provider for augeas >> > > Do you have ruby-augeas installed on your puppetmaster ? You''ll need > that, too for things to work out. >Yup. [root@ manifests]# rpm -q ruby-augeas ruby-augeas-0.2.0-3.el4> >> Is there a path issue in one of the rpms with 64 bit OS?? >> > > Only if you have noarch RPM''s - as long as all the RPM''s you list above > have the same arch (all i386 or all x86_64), you should be fine. >Yup: [root@ RPMS]# ls -al facter-1.5.2-1.el4.x86_64.rpm -rw-r--r-- 1 yum yum 41207 Sep 10 11:03 facter-1.5.2-1.el4.x86_64.rpm [root@ RPMS]# ls -al puppet-0.24.7-4.el4.x86_64.rpm -rw-r--r-- 1 yum yum 545547 Jan 28 12:23 puppet-0.24.7-4.el4.x86_64.rpm [root@ RPMS]# ls -al ruby-augeas-0.2.0-3.el4.x86_64.rpm -rw-r--r-- 1 yum yum 17462 Jan 28 12:23 ruby-augeas-0.2.0-3.el4.x86_64.rpm [root@ RPMS]# ls -al augeas-libs-0.3.5-2.el4.x86_64.rpm -rw-r--r-- 1 yum yum 186675 Jan 28 12:23 augeas-libs-0.3.5-2.el4.x86_64.rpm Then I''m not sure what''s the issue. -L --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
David Lutterkort
2009-Feb-03 17:19 UTC
[Puppet Users] Re: Puppet can''t find Augeas (now with RPMs)
On Tue, 2009-02-03 at 08:05 -0500, Larry Ludwig wrote:> Then I''m not sure what''s the issue.What happens if you run this through plain ruby: require ''augeas'' aug = Augeas::open(nil, nil, 0) puts aug.match("/files/etc/hosts/*").join("\n") If that works, Puppet has trouble detecting Augeas; if it fails, there''s something screwed up with Augeas. David --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Larry Ludwig
2009-Feb-03 20:15 UTC
[Puppet Users] Re: Puppet can''t find Augeas (now with RPMs)
David Lutterkort wrote:> On Tue, 2009-02-03 at 08:05 -0500, Larry Ludwig wrote: > >> Then I''m not sure what''s the issue. >> > > What happens if you run this through plain ruby: > > require ''augeas'' > > aug = Augeas::open(nil, nil, 0) > > puts aug.match("/files/etc/hosts/*").join("\n") > > If that works, Puppet has trouble detecting Augeas; if it fails, there''s > something screwed up with Augeas. > > David > > >Hmm I get: [root@ ruby]# irb irb(main):001:0> require ''augeas'' LoadError: no such file to load -- _augeas from /usr/lib64/site_ruby/1.8/augeas.rb:23:in `require'' from /usr/lib64/site_ruby/1.8/augeas.rb:23 from (irb):1:in `require'' from (irb):1 irb(main):002:0> I have: [root@ ruby]# rpm -q -l ruby-augeas /usr/lib64/site_ruby/1.8/augeas.rb /usr/lib64/site_ruby/1.8/x86_64-linux-gnu/_augeas.so /usr/share/doc/ruby-augeas-0.2.0 /usr/share/doc/ruby-augeas-0.2.0/COPYING /usr/share/doc/ruby-augeas-0.2.0/README.rdoc which is the proper location for ruby''s 64 bit stuff. Hmm.. -L --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---