Upgrading puppet 2.7.19 to 3.0.1

292 views
Skip to first unread message

thinkwell

unread,
Oct 30, 2012, 10:01:24 PM10/30/12
to puppet...@googlegroups.com
Hello everyone. I'm asking this question with reluctance; but I've been working on this upgrade for most of the day. I had a working Kubuntu 12.04 puppet master 2.7.19 with most clients at 2.7.19 as well. I'm trying to upgrade the puppetmaster to 3.0.1 for the speed improvements. Upgrading via apt generated unwelcome errors that I need not go into here. Let's just say that I uninstalled all ruby versions & ruby gems and started from scratch.

So now I have puppet 3.0.1 installed from the puppetlabs debian repo and I thought I'd fought my way through the thicket, but I've hit a wall with this error When running puppet agent on the clients. I get the following error:

Ruby (Rack) application could not be started


Error message:
undefined method `settings' for Puppet:Module
Exception class:
NoMethodError
Application root:
/etc/puppet/rack/puppetmaster

Backtrace:
# File Line Location
0   /usr/lib/ruby/vendor_ruby/puppet/application.rb    273  in `run_mode'
1   /usr/lib/ruby/vendor_ruby/puppet/application/master.rb    5
2   /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb    36 in `gem_original_require'
3   /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb    36 in `require'
4   config.ru    13
5   /var/lib/gems/1.8/gems/rack-1.1.0/lib/rack/builder.rb    46 in `instance_eval'
6   /var/lib/gems/1.8/gems/rack-1.1.0/lib/rack/builder.rb    46 in `initialize'
7   config.ru    1 in `new'
8   config.ru


My puppetmaster site and conf files are attached. I'd be under many obligations for some help.

TIA,

Dave
puppetmaster.txt
10_passenger.txt
20_puppetmaster.txt

Andreas Ntaflos

unread,
Oct 30, 2012, 10:15:22 PM10/30/12
to puppet...@googlegroups.com
On 2012-10-31 03:01, thinkwell wrote:
> So now I have puppet 3.0.1 installed from the puppetlabs debian repo and
> I thought I'd fought my way through the thicket, but I've hit a wall
> with this error When running puppet agent on the clients. I get the
> following error:
>
>
> Ruby (Rack) application could not be started
>

Just an idea, are you using the config.ru file updated for 3.0, provided
by the puppet-common package? Should be in
/usr/share/puppet/ext/rack/files/config.ru or
/usr/share/puppet/rack/puppetmasterd/config.ru.

Andreas

signature.asc

thinkwell

unread,
Oct 31, 2012, 10:39:08 AM10/31/12
to puppet...@googlegroups.com
I am using the new config.ru file now; thanks for the tip. Where is the puppetmaster init script? As I mentioned, I'm starting over from scratch so I deleted the init scripts from the 2.7.19 install, but installing  3.0.1 didn't include an init script. Very strange.

Are there any docs I can read regarding the configuration of 3.0.1 from soup-to-nuts?  For 2.7.19 I used Turnbull's Pro Puppet book but that not getting me going in 3.0.

thinkwell

unread,
Oct 31, 2012, 11:02:05 AM10/31/12
to puppet...@googlegroups.com
Hey, hey, hey. Never mind. I had the application root wrong. Changed 2 things at once as I noticed a few other settings were wrong when I updated the config.ru file. Got the application root wrong in the process. Now I'm going again!
Reply all
Reply to author
Forward
0 new messages