Lawrie Care
2012-Jan-11 23:28 UTC
[Puppet Users] augeas error: Could not evaluate: unknown error - Failed to initialize Augeas
Hi, I am running puppet 2.6.12 on a SLES11SP1 server. I get the following error message as part of the puppet catalog run on a SLED11SP1 client. Augeas[sap_host_entries](provider=augeas): Opening augeas with root /, lens path , flags 0 err: /Stage[main]/Sap/Augeas[sap_host_entries]: Could not evaluate: unknown error - Failed to initialize Augeas Can somebody shed some light on the error message above The test module (code listing below) i have created attempts to add a comment line to the /etc/hosts file on the client machine. I have tested the module on the server with augtool and it works correctly. class sap { augeas { "sap_host_entries": context => "/files/etc/hosts", changes => [ "set #comment[last()+1] ''Sap-specific-hosts''", ], } } On the client I have the following augeas and ruby vendor based packages installed augeas-devel-0.8.1-7.8.2 libaugeas0-0.8.1-7.8.2 ruby-devel-1.8.7.p72-5.30.5 rubygem-rake-0.8.7-0.1.4 ruby-1.8.7.p72-5.30.5 rubygems-1.3.7-1.3.3 On the server i have the following augeas and ruby vendor based packages installed augeas-0.8.1-7.8.2 augeas-lenses-0.8.1-7.8.2 libaugeas0-0.8.1-7.8.2 Cheers Lawrie -- 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.
R.I.Pienaar
2012-Jan-11 23:29 UTC
Re: [Puppet Users] augeas error: Could not evaluate: unknown error - Failed to initialize Augeas
----- Original Message -----> > augeas-devel-0.8.1-7.8.2 > libaugeas0-0.8.1-7.8.2 > > > > > > ruby-devel-1.8.7.p72-5.30.5 > rubygem-rake-0.8.7-0.1.4 > ruby-1.8.7.p72-5.30.5 > rubygems-1.3.7-1.3.3also need the augeas ruby bindings -- 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.
LawrieC
2012-Jan-13 04:03 UTC
[Puppet Users] Re: augeas error: Could not evaluate: unknown error - Failed to initialize Augeas
Thanks for the reply. I have now installed the augeas ruby bindings on the client by getting wget http://augeas.net/download/ruby/ruby-augeas-0.4.1.gem and running gem install ruby-augeas-0.4.1 Building native extensions. This could take a while... Successfully installed ruby-augeas-0.4.1 1 gem installed Installing ri documentation for ruby-augeas-0.4.1... Installing RDoc documentation for ruby-augeas-0.4.1... Alas, i am still getting the same error message. Is there any extras i need on the server or client? Thanks On Jan 12, 9:29 am, "R.I.Pienaar" <r...@devco.net> wrote:> ----- Original Message ----- > > > augeas-devel-0.8.1-7.8.2 > > libaugeas0-0.8.1-7.8.2 > > > ruby-devel-1.8.7.p72-5.30.5 > > rubygem-rake-0.8.7-0.1.4 > > ruby-1.8.7.p72-5.30.5 > > rubygems-1.3.7-1.3.3 > > also need the augeas ruby bindings-- 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.
Aaron Grewell
2012-Jan-15 06:00 UTC
Re: [Puppet Users] Re: augeas error: Could not evaluate: unknown error - Failed to initialize Augeas
The rpm-based installs of the other components probably expect different paths than the gem is providing. IMHO you shouldn''t mix rpm and gem-based installs. Weirdness is virtually guaranteed. Pick one style or the other and stick with it. On Jan 12, 2012 8:03 PM, "LawrieC" <lawrie.care1@gmail.com> wrote:> Thanks for the reply. > > I have now installed the augeas ruby bindings on the client by > getting > > wget http://augeas.net/download/ruby/ruby-augeas-0.4.1.gem > and running > > gem install ruby-augeas-0.4.1 > > Building native extensions. This could take a while... > Successfully installed ruby-augeas-0.4.1 > 1 gem installed > Installing ri documentation for ruby-augeas-0.4.1... > Installing RDoc documentation for ruby-augeas-0.4.1... > > Alas, i am still getting the same error message. > > Is there any extras i need on the server or client? > > Thanks > > > On Jan 12, 9:29 am, "R.I.Pienaar" <r...@devco.net> wrote: > > ----- Original Message ----- > > > > > augeas-devel-0.8.1-7.8.2 > > > libaugeas0-0.8.1-7.8.2 > > > > > ruby-devel-1.8.7.p72-5.30.5 > > > rubygem-rake-0.8.7-0.1.4 > > > ruby-1.8.7.p72-5.30.5 > > > rubygems-1.3.7-1.3.3 > > > > also need the augeas ruby bindings > > -- > 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. > >-- 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.
LawrieC
2012-Jan-18 04:45 UTC
[Puppet Users] Re: augeas error: Could not evaluate: unknown error - Failed to initialize Augeas
Thanks for the tip Aaron. I have stuck with the platform RPMs as indicated earlier in the thread. I could not find a ruby-augeas SLED platform RPM. I downloaded the ruby-augeas-0.4.1-1.el5.src.rpm and tried to rebuild it on the SLED11SP1 machine. I had to make changes to the spec file to get rpmbuild to run. Changed a line in the ruby-augeas.spec file from BuildRequires: ruby ruby-devel rubygem(rake) to BuildRequires: ruby ruby-devel rubygem-rake Now it attempts to build a new RPM for the SLED11SP1 platform but fails at the rake testing phase with 13 errors, output follows + rake test (in /root/rpmbuild/BUILD/ruby- augeas-0.4.1) Loaded suite /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/ rake_test_loader Started EEEEEEE.EEEEEE Finished in 0.018282 seconds. 1) Error: test_basics(TestAugeas): SystemCallError: unknown error - Failed to initialize Augeas /root/rpmbuild/BUILD/ruby-augeas-0.4.1/lib/augeas.rb:48:in `open3'' /root/rpmbuild/BUILD/ruby-augeas-0.4.1/lib/augeas.rb:48:in `open'' ./tests/tc_augeas.rb:206:in `aug_open'' ./tests/tc_augeas.rb:17:in `test_basics'' I have left out Errors 2....12 for clarity. 13) Error: test_transform(TestAugeas): SystemCallError: unknown error - Failed to initialize Augeas /root/rpmbuild/BUILD/ruby-augeas-0.4.1/lib/augeas.rb:48:in `open3'' /root/rpmbuild/BUILD/ruby-augeas-0.4.1/lib/augeas.rb:48:in `open'' ./tests/tc_augeas.rb:206:in `aug_open'' ./tests/tc_augeas.rb:78:in `test_transform'' 14 tests, 1 assertions, 0 failures, 13 errors rake aborted! Command failed with status (1): [/usr/bin/ruby -I"lib:ext/augeas" "/ usr/lib...] (See full trace by running task with --trace) error: Bad exit status from /var/tmp/rpm-tmp.72660 (%check) Hope you can help as I really need to get this working. Thanks Lawrie On Jan 15, 4:00 pm, Aaron Grewell <aaron.grew...@gmail.com> wrote:> The rpm-based installs of the other components probably expect different > paths than the gem is providing. IMHO you shouldn''t mix rpm and gem-based > installs. Weirdness is virtually guaranteed. Pick one style or the other > and stick with it. > On Jan 12, 2012 8:03 PM, "LawrieC" <lawrie.ca...@gmail.com> wrote: > > > > > > > > > Thanks for the reply. > > > I have now installed the augeas ruby bindings on the client by > > getting > > > wgethttp://augeas.net/download/ruby/ruby-augeas-0.4.1.gem > > and running > > > gem install ruby-augeas-0.4.1 > > > Building native extensions. This could take a while... > > Successfully installed ruby-augeas-0.4.1 > > 1 gem installed > > Installing ri documentation for ruby-augeas-0.4.1... > > Installing RDoc documentation for ruby-augeas-0.4.1... > > > Alas, i am still getting the same error message. > > > Is there any extras i need on the server or client? > > > Thanks > > > On Jan 12, 9:29 am, "R.I.Pienaar" <r...@devco.net> wrote: > > > ----- Original Message ----- > > > > > augeas-devel-0.8.1-7.8.2 > > > > libaugeas0-0.8.1-7.8.2 > > > > > ruby-devel-1.8.7.p72-5.30.5 > > > > rubygem-rake-0.8.7-0.1.4 > > > > ruby-1.8.7.p72-5.30.5 > > > > rubygems-1.3.7-1.3.3 > > > > also need the augeas ruby bindings > > > -- > > 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.-- 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.
Dominic Cleal
2012-Jan-19 21:05 UTC
Re: [Puppet Users] Re: augeas error: Could not evaluate: unknown error - Failed to initialize Augeas
[ CC''ed to augeas-devel, more on-topic for ruby-augeas build errors ] On 18/01/12 04:45, LawrieC wrote:> Thanks for the tip Aaron. > > I have stuck with the platform RPMs as indicated earlier in the > thread. I could not find a ruby-augeas SLED platform RPM.I''m not familiar with the SUSE community, but I do see a number of ruby-augeas RPMs and SRPMs on the build service. Picking one at random: https://build.opensuse.org/package/show?package=ruby-augeas&project=home%3Ajustin_kinney The spec doesn''t seem to have a %check section though, so you might find it just masks the problem below until later.> Now it attempts to build a new RPM for the SLED11SP1 platform but > fails at the rake testing phase with 13 errors, output follows > > + rake > test > (in /root/rpmbuild/BUILD/ruby- > augeas-0.4.1) > Loaded suite /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/ > rake_test_loader > Started > EEEEEEE.EEEEEE > Finished in 0.018282 > seconds. > > 1) Error: > test_basics(TestAugeas): > SystemCallError: unknown error - Failed to initialize AugeasThat looks pretty bad! Does Augeas function properly on your system to begin with? I''d suggest running "augtool" and seeing if you get the same error. (From the quote below, you may need to install another package for the Augeas command line tool). If you get the error, try creating an empty directory and run "augtool -r /path/to/dir" to rule out problems with files on your system. On 11/01/12 23:28, Lawrie Care wrote:> On the client I have the following augeas and ruby vendor based > packages installed > > augeas-devel-0.8.1-7.8.2 > libaugeas0-0.8.1-7.8.2This is interesting, does the libaugeas0 package contain any lens files? I can''t find a spec for it to see how the SUSE package is split up, but the EL/Fedora package would put them in the augeas-libs package: $ rpm -ql augeas-libs | grep -c \.aug\$ 219 The lenses should generally match the Augeas library version so check they''re in sync if supplied by another package. -- Dominic Cleal Red Hat Consulting m: +44 (0)7817 878113 -- 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.