issues with puppet 3.0.1 using ruby 1.9.3 and passenger (3.0.18)

288 views
Skip to first unread message

vioilly

unread,
Dec 12, 2012, 7:02:07 AM12/12/12
to puppet...@googlegroups.com
I have installed puppet 3.0.1, passenger 3.0.18 and ruby 1.9.3 and have hit errors. The error I am hitting is this:

Error message:
cannot load such file -- puppet/util/command_line
Exception class:
LoadError


I get this when hitting the puppet server using https://puppetserver:8140

If I use ruby 1.8, everything works. This is a new deployment so I would like to use ruby 1.9.3 rather than the older version of ruby.

It appears to me that this is a PATH issue. Does anyone know how to fix this?


Cheers,

Oli



Jelle B.

unread,
Dec 12, 2012, 7:23:30 AM12/12/12
to puppet...@googlegroups.com
As far as I know there is still a compatibility issue between puppet 3.0 and ruby 1.9.3, I also need this to work due to  needing 1.9.3 for a application targeted to run on the same machine as my puppet environment but thus far it has been a no go.

Some googling has given me some options to link the right version depending on what is needed , in essence installing different ruby versions depending on requirements next to each other but for me this is not a great solution for a production environment.

vioilly

unread,
Dec 12, 2012, 7:31:51 AM12/12/12
to puppet...@googlegroups.com
I am going to revert to 1.8 for the time being although I was under the impression ruby 1.9 give performance benefits. If anyone else has information on whether 1.9.3 is supported, stable and has it working, please let me know.

Stephen Price

unread,
Dec 12, 2012, 11:41:26 AM12/12/12
to puppet...@googlegroups.com
I believe Hiera (or puppet-hiera, not sure) has outstanding issues with anything other than Ruby 1.8.7. Last time I tried using 1.9.3 with Puppet 3 I had to revert. Please correct me if I'm mistaken.

Eric Sorenson

unread,
Dec 12, 2012, 2:01:12 PM12/12/12
to puppet...@googlegroups.com
MRI Ruby 1.9.3 is in the testing matrix and is fully supported: http://docs.puppetlabs.com/guides/platforms.html#ruby-versions

There is one issue I'm aware of, with collecting resources: https://projects.puppetlabs.com/issues/10963

If there are others please file bugs in redmine about them as there was a ton of work that went into making Puppet 3.0 fully run under Ruby 1.9.3 but obviously it's a big world and not all code paths might have been fixed.

-=Eric

Josh Cooper

unread,
Dec 12, 2012, 5:12:21 PM12/12/12
to puppet...@googlegroups.com
Hi Oli,

On Wed, Dec 12, 2012 at 4:02 AM, vioilly <olive...@gmail.com> wrote:
> I have installed puppet 3.0.1,

Installed as a gem or native package?
In your puppet config.ru, can you verify that puppet's lib directory
is in the $LOAD_PATH? Also note the line at the top of that file.

As far as why it works on 1.8.7, but not 1.9.3, makes me think that
puppet is installed as a gem, and that there are rubygem differences
between the two rubies.

>
>
> Cheers,
>
> Oli
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-users/-/n9UUHUqHYlQJ.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.



--
Josh Cooper
Developer, Puppet Labs

vioilly

unread,
Dec 13, 2012, 6:07:41 AM12/13/12
to puppet...@googlegroups.com
Hi Josh,

I installed puppet-server using yum by installing the rpm from puppetlabs that enables the puppet repo. I then installed rubygems which enabled me to gem install rack and passenger.

I did compile ruby1.9.3 using this method:

This installs libyaml 0.1.4

cd /opt wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz tar xzvf yaml-0.1.4.tar.gz cd yaml-0.1.4 ./configure --prefix=/usr/local make make install


This installs ruby 1.9.3.0d

cd /opt
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz
tar xzvf ruby-1.9.3-p0.tar.gz
cd ruby-1.9.3-p0
./configure --enable-shared --disable-pthread
make
make install


I run this as part of the setup

cp /usr/share/puppet/ext/rack/files/config.ru /etc/puppet/rack/

Currently I am using ruby 1.8.7 which works fine but in the config.ru i see this

# if puppet is not in your RUBYLIB:
# $LOAD_PATH.unshift('/opt/puppet/lib')


If I were to use 1.9.3, would I have to update this to the correct ruby path for 1.9.3? Is that what you are suggesting will fix this?

I dead keen on running ruby 1.9.3 as this is a new implementation so would like to get to that version rather than have to upgrade at a later date

Cheers,
Oli


On Wed, Dec 12, 2012 at 4:02 AM, vioilly <olive...@gmail.com> wrote:
> I have installed puppet 3.0.1,

Installed as a gem or native package?

> It appears to me that this is a PATH issue. Does anyone know how to fix
> this?

In your puppet config.ru, can you verify that puppet's lib directory
is in the $LOAD_PATH? Also note the line at the top of that file.

As far as why it works on 1.8.7, but not 1.9.3, makes me think that
puppet is installed as a gem, and that there are rubygem differences
between the two rubies.

Reply all
Reply to author
Forward
0 new messages