Error with puppet in CentOS 7 - NoMethodError

175 views
Skip to first unread message

Gustavo S. L.

unread,
Jan 20, 2017, 8:49:28 PM1/20/17
to puppet...@googlegroups.com
When I execute puppet in a container with centos 7 I get this:

/usr/share/rubygems/rubygems/path_support.rb:68:in `path=': undefined method `+' for nil:NilClass (NoMethodError)
from /usr/share/rubygems/rubygems/path_support.rb:30:in `initialize'
from /usr/share/rubygems/rubygems.rb:357:in `new'
from /usr/share/rubygems/rubygems.rb:357:in `paths'
from /usr/share/rubygems/rubygems.rb:379:in `path'
from /usr/share/rubygems/rubygems/specification.rb:794:in `dirs'
from /usr/share/rubygems/rubygems/specification.rb:658:in `each_normal'
from /usr/share/rubygems/rubygems/specification.rb:669:in `_all'
from /usr/share/rubygems/rubygems/specification.rb:822:in `each'
from /usr/share/rubygems/rubygems/specification.rb:864:in `find'
from /usr/share/rubygems/rubygems/specification.rb:864:in `find_inactive_by_path'
from /usr/share/rubygems/rubygems.rb:175:in `try_activate'
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:132:in `rescue in require'
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:144:in `require'
from <internal:abrt_prelude>:2:in `<compiled>'

What's happening? How can I solve it? Thank's

Martin Alfke

unread,
Jan 21, 2017, 6:14:14 AM1/21/17
to puppet...@googlegroups.com
The error comes from system ruby.
Have you installed the AIO package?

Maybe it is facter.
Please see whether you can run the facter command successfully.
> --
> 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/CAOO4BW1hEhiryh3EDcf%2BD8ZfBwCP7aDaJknyHVZZKj%3DvL92H9Q%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

Gustavo S. L.

unread,
Jan 21, 2017, 6:25:48 AM1/21/17
to puppet...@googlegroups.com
Martin, thanks for the answer

I just saw that the problem was that by downloading the release of yum.puppetlabs.com I used the relational to Red Hat Enterprise. Now downloading the correct release the same error did not happen

> To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/192B6B1A-C75F-4903-AA74-0F67B33A0E3E%40gmail.com.
Reply all
Reply to author
Forward
0 new messages