Muffinresearch Labs by Stuart Colville

Debugging Elusive Puppet Errors | Comments (0)

Posted in Code, Linux/Unix on 8th June 2010, 6:14 pm by Stuart

On working on some puppet manifests I hit this error message:

$ sudo puppetd -t
err: Could not retrieve catalog from remote server: undefined method `closed?' for nil:NilClass
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run

Certainly not the most enlightening error message. After checking over the syntax of my mainfests it still wasn’t obvious what was wrong.

First port of call to diagnose the problem is to try enabling debugging on the client:

On the client:

# Run the client with debugging enabled.
$ sudo puppetd -t --debug

If that yields nothing useful try the following:

On the puppetmaster run:

# If it's running stop the puppetmasterd service
# change this to suit your distro - the following is debian specific
$ sudo /etc/init.d/puppetmaster stop 

# start the puppetmasterd in debug mode without daemonizing it.
$ sudo puppetmasterd --no-daemonize --debug

Back on the client re-run the puppetd:

$ sudo puppetd -t

By looking at the debug output on the puppetmaster I was able to see my problem which was that a generate command didn’t have permission to write a necessary file. Once I’d fixed it everything worked as expected.

Once finished ctrl-c the foreground puppetmasterd and restart the service if you’d stopped it to run it in debug mode:

$ sudo /etc/init.d/puppetmaster start

Post Tools

Comments: Add yours







XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>



Using Loggerhead with mod_wsgi|(0)

Here’s a post I wrote over on the Project Fondue Blog about our use of Loggerhead with mod_wsgi under Apache. Loggerhead is the rather nice branch viewer for bazaar branches as used on Launchpad.net.

If you’re not already subscribed to the Project Fondue blog feed then I can recommend it, as there should be some interesting posts coming out of there in the coming months (yes I’m unashamedly biased!).

Ubuntu: Turn off changing workspace with mouse wheel|(1)

I found the changing with the workspace with the mouse wheel really annoying. To disable it go to System => Preferences => CompizConfig (available if the compizconfig-settings-manager package is installed) and uncheck “Viewport Switcher” which is under the “Desktop” heading.

Photos on Flickr

© Copyright 2004-10 Stuart Colville, all rights reserved. May contain traces of Muffin. Powered by WordPress. Hosting by Slicehost.com This page was baked in 0.668s.