vioilly
2012-Dec-12 12:02 UTC
[Puppet Users] issues with puppet 3.0.1 using ruby 1.9.3 and passenger (3.0.18)
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_lineException 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 -- 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-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.
Jelle B.
2012-Dec-12 12:23 UTC
[Puppet Users] Re: issues with puppet 3.0.1 using ruby 1.9.3 and passenger (3.0.18)
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. On Wednesday, December 12, 2012 1:02:07 PM UTC+1, vioilly wrote:> > 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_lineException > 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 > > > >-- 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/-/xE2NKyWTyjUJ. 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.
vioilly
2012-Dec-12 12:31 UTC
[Puppet Users] Re: issues with puppet 3.0.1 using ruby 1.9.3 and passenger (3.0.18)
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. On Wednesday, December 12, 2012 12:23:30 PM UTC, Jelle B. wrote:> > 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. > > >-- 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/-/RxmFGiMoJPkJ. 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.
Stephen Price
2012-Dec-12 16:41 UTC
[Puppet Users] Re: issues with puppet 3.0.1 using ruby 1.9.3 and passenger (3.0.18)
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. On Wednesday, December 12, 2012 4:31:51 AM UTC-8, vioilly wrote:> > 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. > > On Wednesday, December 12, 2012 12:23:30 PM UTC, Jelle B. wrote: >> >> 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. >> >> >>-- 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/-/X6ZMYXzgcz4J. 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.
Eric Sorenson
2012-Dec-12 19:01 UTC
[Puppet Users] Re: issues with puppet 3.0.1 using ruby 1.9.3 and passenger (3.0.18)
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 On Wednesday, December 12, 2012 8:41:26 AM UTC-8, Stephen Price wrote:> > 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. > > On Wednesday, December 12, 2012 4:31:51 AM UTC-8, vioilly wrote: >> >> 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. >> >> On Wednesday, December 12, 2012 12:23:30 PM UTC, Jelle B. wrote: >>> >>> 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. >>> >>> >>>-- 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/-/IcbPt02seFAJ. 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.
Josh Cooper
2012-Dec-12 22:12 UTC
Re: [Puppet Users] issues with puppet 3.0.1 using ruby 1.9.3 and passenger (3.0.18)
Hi Oli, On Wed, Dec 12, 2012 at 4:02 AM, vioilly <oliverleach@gmail.com> wrote:> I have installed puppet 3.0.1,Installed as a gem or native package?> 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?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-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.-- Josh Cooper Developer, Puppet Labs -- 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.
vioilly
2012-Dec-13 11:07 UTC
Re: [Puppet Users] issues with puppet 3.0.1 using ruby 1.9.3 and passenger (3.0.18)
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 <javascript:>> 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. > > -- > Josh Cooper > Developer, Puppet Labs >-- 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/-/zp6Xzi9hUIwJ. 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.