Ryan Dooley | 1 Jun 01:17 2007

Switching to mongrel

I made an attempt to switch to mongrel today and I'm running into a strange
error message I can't seem to track down:

debug: puppetmaster: Setting servertype to 'mongrel'
Server is not a class

Tracing through with the debugger shows:

[snip]
/foo/lib/gems/puppet-0.22.4/bin/puppetmasterd:248:    case
Puppet[:servertype]
(rdb:1) n
/foo/lib/gems/puppet-0.22.4/bin/puppetmasterd:249:    when "webrick"
(rdb:1) n
/foo/lib/gems/puppet-0.22.4/bin/puppetmasterd:253:    when "mongrel":
(rdb:1) p Puppet[:servertype]
"mongrel"
(rdb:1) n
/foo/lib/gems/puppet-0.22.4/bin/puppetmasterd:254:        require
'puppet/network/server/mongrel'
(rdb:1) n
/foo/lib/gems/puppet-0.22.4/lib/puppet/network/server/mongrel.rb:50: `Server
is not a class' (TypeError)
        from 
/foo/lib/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in
`require'
        from /foo/lib/gems/puppet-0.22.4/bin/puppetmasterd:254
        from /foo/bin/puppetmasterd:16:in `load'
        from /foo/bin/puppetmasterd:16
/foo/lib/gems/puppet-0.22.4/lib/puppet/network/server/mongrel.rb:50:class
(Continue reading)

Benjamin C. Kite | 1 Jun 07:17 2007

Saturday, June 2nd - reductivelabs.com scheduled maintenance

To our friends in Europe — good news, the website is getting closer!

Things appear to be on schedule for the first phase of our server  
migration, which we plan to implement in the late evening, Saturday,  
June 2nd.

In order to ensure the data we are moving won't change while we move  
it, the following services will be unavailable from 23:00 CST on June  
2nd until 06:00 CST the following day:

	- All websites and trac (wiki) sites hosted with reductivelabs.com
	- All subversion and bzr repositories hosted with reductivelabs.com

Following the migration, DNS will take some time to propagate, so  
please be patient while your local DNS records tick toward their expiry.

This downtime should not affect mail or mailing list services for  
reductivelabs.com.  It should probably go without saying that the IRC  
channel will not be affected.

_______________________________________________
Puppet-users mailing list
Puppet-users <at> madstop.com
https://mail.madstop.com/mailman/listinfo/puppet-users
Fabian Linzberger | 1 Jun 11:06 2007
Picon

Re: Switching to mongrel

hi,

Ryan Dooley wrote:
> I made an attempt to switch to mongrel today and I'm running into a strange
> error message I can't seem to track down:

[...]

> The version of puppet is 0.22.4, mongrel is 1.0.1, and ruby is 1.8.5.

i have ruby 1.8.2-1, puppet and mongrel in the same versions (debian 
etch with puppet from unstable).

i get exactly the same error...

fabian

--

-- 
fabian linzberger -- http://lefant.net/ -- http://debienna.at/
        - do yourself a favour: use and support free software!
Luke Kanies | 1 Jun 18:04 2007

Re: Switching to mongrel

On Jun 1, 2007, at 4:06 AM, Fabian Linzberger wrote:

> hi,
>
> Ryan Dooley wrote:
>> I made an attempt to switch to mongrel today and I'm running into  
>> a strange
>> error message I can't seem to track down:
>
> [...]
>
>> The version of puppet is 0.22.4, mongrel is 1.0.1, and ruby is 1.8.5.
>
> i have ruby 1.8.2-1, puppet and mongrel in the same versions (debian
> etch with puppet from unstable).
>
> i get exactly the same error...

I don't think it's the code, as plenty of people have it working  
right now.

Do you have an older version of Puppet installed somewhere?

  --
  I take my children everywhere, but they always find their way back  
home.
              --Robert Orben
  ---------------------------------------------------------------------
  Luke Kanies | http://reductivelabs.com | http://madstop.com
(Continue reading)

Mike Renfro | 1 Jun 19:54 2007

Puppet starting before network is up

Lots of my puppet hosts have DHCP-assigned addresses. I've found, at 
least in Debian 4.0, that puppetd will often start up before the network 
interfaces are all up and running, and therefore it can't contact the 
puppetmaster. When that happens, puppet exits immediately. I'm hacking 
around the problem with the following content in /etc/default/puppet, 
but I'm sure there's a better solution:

=====

# Puppet doesn't like starting before it can contact the puppetmaster.
# Wait up to 30 seconds before continuing.
pserver=REDACTED
for n in `seq 1 30`; do
   ping -c 1 $pserver >& /dev/null && break
   echo -n " $n"
   sleep 1
done
DAEMON_OPTS="--server $pserver --factsync"

=====

--

-- 
Mike Renfro  / R&D Engineer, Center for Manufacturing Research,
931 372-3601 / Tennessee Technological University -- renfro <at> tntech.edu
ben | 1 Jun 22:47 2007
Picon

Re: Switching to mongrel

On 01/06/07, Fabian Linzberger <e <at> lefant.net> wrote:
> i get exactly the same error...

I do too.

Running centos 5, with ruby-1.8.5-5.el5 and puppet 0.22.4 from
dlutter's yum repo.
Luke Kanies | 2 Jun 02:06 2007

Re: Switching to mongrel

On Jun 1, 2007, at 3:47 PM, ben wrote:

> On 01/06/07, Fabian Linzberger <e <at> lefant.net> wrote:
>> i get exactly the same error...
>
> I do too.
>
> Running centos 5, with ruby-1.8.5-5.el5 and puppet 0.22.4 from
> dlutter's yum repo.

Hmm.  So, I've found the problem in the code, but... why is it  
working for anyone else, then?  It makes no sense.

I've filed it.

  --
  A person's maturity consists in having found again the seriousness one
  had as a child, at play.                        --Friedrich Nietzsche
  ---------------------------------------------------------------------
  Luke Kanies | http://reductivelabs.com | http://madstop.com
Micah Anderson | 2 Jun 05:48 2007
Picon

Re: Anyone using storeconfigs with a DB other than sqlite?


I decided to give mysql a try.

Luke Kanies wrote:
> On May 27, 2007, at 8:28 PM, HARRIS Jimmy ((AXA-Tech-AU)) wrote:
> 
>> Just wondering if anyone is using a backend database other than  
>> sqlite,
>> and if so, how easy/hard it was to configure.
> 
> It's very easy to configure -- set up the dbadapter, dbserver,  
> dbuser, and dbpassword, then start the master once with --migrate.

Unfortunately, --migrate is not a valid option:

/usr/sbin/puppetmasterd: unrecognized option `--migrate'

this is with 0.22.4, i can probably live without the migration, but thought I
should point it out.

micah
Frank Munsche | 2 Jun 11:15 2007
Picon
Picon

tidy dir recursive, but preserve itself

Hi all,

I'd like to clean up a temp. directory (files and subdirs within), but even 
the directory should be preserved, e.g.:

tidy { "/var/trash":
        age => '1m',
        recurse => true,
        type => atime,
        rmdirs => true
}

This does not only remove the content of /var/trash with an atime greater 1m, 
but also /var/trash . How can this be prevented?

cheer, frank
Luke Kanies | 2 Jun 16:08 2007

Re: Anyone using storeconfigs with a DB other than sqlite?

On Jun 1, 2007, at 10:48 PM, Micah Anderson wrote:
>
> Unfortunately, --migrate is not a valid option:
>
> /usr/sbin/puppetmasterd: unrecognized option `--migrate'
>
> this is with 0.22.4, i can probably live without the migration, but  
> thought I
> should point it out.

Sorry, --dbmigrate.

  --
  The death rate on Earth is: .... (computing) .... One per person.
  ---------------------------------------------------------------------
  Luke Kanies | http://reductivelabs.com | http://madstop.com

Gmane