Puppet alongside RVM

264 views
Skip to first unread message

Danny Roberts

unread,
Jul 21, 2014, 12:47:11 PM7/21/14
to puppet...@googlegroups.com
I am trying to run Puppet on a server that uses RVM for some other applications. When I try to run it I get this error:

# puppet agent -t
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/json-1.8.1/lib/json/ext/parser.so: [BUG] Segmentation fault
ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]

Aborted
# /usr/bin/ruby -v
ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]

I find this odd as the /usr/bin/puppet file explicitly call /usr/bin/ruby and should not be picking up RVM versions of ruby. The fact that you see the correct version of ruby in the output before it aborts is even more confusing. Any ideas? This is our only server that uses RVM so I have no others to compare against.

Spencer Krum

unread,
Jul 21, 2014, 12:50:55 PM7/21/14
to puppet...@googlegroups.com

Probably you have a gempath set to use 1.9.3 gems but are using a ruby 1.8.7. I would create a 'puppet' rvm gemset, use it, and install puppet from gems.

--
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/42414520-740a-4514-8ad8-dcad1488ec00%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Danny Roberts

unread,
Jul 21, 2014, 2:21:52 PM7/21/14
to puppet...@googlegroups.com
Thanks Spencer, it was a learning experience but I have it running on this box as a gem now, thanks!
Reply all
Reply to author
Forward
0 new messages