puppetserver 2.2.1-1puppetlabs1 r10k gem jruby not found

274 views
Skip to first unread message

Rudy Gevaert

unread,
Jan 13, 2016, 1:20:14 AM1/13/16
to Puppet Users
Hi,

I'm trying to set up puppetserver for the first time.  I installed puppetserver 2.2.1-1puppetlabs1 on a trusty server with the Debian package.  I then installed r10k with 'puppetserver gem install r10k --no-ri --no-rdoc'. 

However the r10k binary is not in my path. It's in /opt/puppetlabs/server/data/puppetserver/jruby-gems/bin/r10k.  So the gem got installed.

Running that binary gives me:

root@puppet:/opt/puppetlabs# /opt/puppetlabs/server/data/puppetserver/jruby-gems/bin/r10k
/usr/bin/env: jruby: No such file or directory

Installing jruby from the ubuntu repos doesn't get it working. 
/usr/lib/jruby//lib/ruby/site_ruby/1.8/rubygems.rb:777:in `report_activate_error': Could not find RubyGem r10k (>= 0) (Gem::LoadError)

I can't find any information about setting up jruby regarding Puppetserver.

How can I fix this issue? 

Thanks in advance,

Rudy

root@puppet:/root# puppetserver gem list

*** LOCAL GEMS ***

colored (1.2)
cri (2.6.1)
faraday (0.9.2)
faraday_middleware (0.9.2)
faraday_middleware-multi_json (0.0.6)
hiera-eyaml (2.0.8)
highline (1.6.21)
jar-dependencies (0.1.13)
jruby-openssl (0.9.7 java)
json (1.8.0 java)
log4r (1.1.10)
minitar (0.5.4)
multi_json (1.11.2)
multipart-post (2.0.0)
puppet_forge (2.1.2)
r10k (2.1.1)
rake (10.1.0)
rdoc (4.1.2)
semantic_puppet (0.1.1)
trollop (2.1.2)

Thanks in advance,

Rudy

Kevin Corcoran

unread,
Jan 13, 2016, 12:05:38 PM1/13/16
to puppet...@googlegroups.com
On Tue, Jan 12, 2016 at 10:20 PM, Rudy Gevaert <rudy.g...@gmail.com> wrote:
Hi,

I'm trying to set up puppetserver for the first time.  I installed puppetserver 2.2.1-1puppetlabs1 on a trusty server with the Debian package.  I then installed r10k with 'puppetserver gem install r10k --no-ri --no-rdoc'. 

However the r10k binary is not in my path. It's in /opt/puppetlabs/server/data/puppetserver/jruby-gems/bin/r10k.  So the gem got installed.

Running that binary gives me:

root@puppet:/opt/puppetlabs# /opt/puppetlabs/server/data/puppetserver/jruby-gems/bin/r10k
/usr/bin/env: jruby: No such file or directory

Installing jruby from the ubuntu repos doesn't get it working. 
/usr/lib/jruby//lib/ruby/site_ruby/1.8/rubygems.rb:777:in `report_activate_error': Could not find RubyGem r10k (>= 0) (Gem::LoadError)

I can't find any information about setting up jruby regarding Puppetserver.

How can I fix this issue? 



Hi Rudy,

I think that what you want to do is install r10k via the *system* `gem install ...` command and not `puppetserver gem install ....`.

Even though r10k runs on the master, it runs as a separate process (not inside of Puppet Server) and uses the system ruby (likely MRI).

Kevin Corcoran

unread,
Jan 13, 2016, 12:12:35 PM1/13/16
to puppet...@googlegroups.com
On Wed, Jan 13, 2016 at 9:04 AM, Kevin Corcoran <kevin.c...@puppetlabs.com> wrote:
Even though r10k runs on the master, it runs as a separate process (not inside of Puppet Server) and uses the system ruby (likely MRI).

... unless we're talking about the r10k used by the new Code Manager feature in Puppet Enterprise 2015.3, which *does* run inside Puppet Server ... although it still doesn't use JRuby ... for now, although it likely will in the future.  I don't how this could possibly confuse anyone!  ;)

Snark aside ... Rudy, I think you just want to use the system ruby.

Rudy Gevaert

unread,
Jan 14, 2016, 6:47:11 AM1/14/16
to Puppet Users
Hi Kevin, thanks for your replies.  Indeed it's an option to use the system ruby.  I'll need to go down that route.  But previously this was working (IIRC). 
Reply all
Reply to author
Forward
0 new messages