Hi, Just started playing with Puppet and most things are pretty cool. Have started off slowly and have a few services and hosts on my test LAN working fine. Have been looking at storedconfigs after looking for a more complete MySQL recipe. I started looking at the *Complete Configuration* section in Puppet and Davids repo, which has such a beast. Grabbed his recipe and common stuff and it works well, up until when I activate storedconfig. (package, user and service management fine). As am only testing, am using SQLite as the backend. After some poking around, it seems that when I activate storedconfigs in puppet.conf, as soon as my client tries to access the puppetmaster, the puppetmasterd dies. I don''t get any returned errors or logs on the puppetmaster whatsoever, it just dies. The client puppet log (when running with --verbose) says... Jul 31 15:59:57 puppettest puppetd[21665]: Starting Puppet client version 0.24.4 Jul 31 15:59:58 puppettest puppetd[21665]: Facts have changed; recompiling Jul 31 15:59:59 puppettest puppetd[21665]: Other end went away; restarting connection and retrying Jul 31 15:59:59 puppettest puppetd[21665]: Could not retrieve catalog: Could not connect to kvcvs01.ad.kew.org on port 8140 Have tried seting the dblocation to an alternative and get the same result. If I remove the database setting, use the default and restart, everything works well, but I get the below in my puppetmasters logfile and obviously storedconfigs doesn''t work. Jul 31 16:14:01 kvcvs01 puppetmasterd[24760]: Could not call: could not open database: unable to open database file I noticed a Debian bug (http://bugs.debian.org/cgi-bin/bugreport.cgi? bug=462551) regarding improper ownership of the created database file, however after checking this doesn''t seem to be the issue (checked and manually created and chowned the file just in case, but no difference) I presume other ppl are happily using storeconfigd OK, so just wondered if anyone has any bright ideas/pointers or known gotchas as to what is going on. Thanks Dan -- Dan Hawker UNIX & Comms Royal Botanic Garden - Kew www.kew.org -- ## My Environment ## CentOS 5.2 [root@kvcvs01 signed]# uname -a Linux kvcvs01.ad.kew.org 2.6.18-92.el5 #1 SMP Tue Jun 10 18:51:06 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux Puppet v0.24.4 (from Fedora EPEL repo) [root@kvcvs01 signed]# rpm -qa | grep puppet puppet-server-0.24.4-1.el5 puppet-0.24.4-1.el5 Facter v1.3.8 (from Fedora EPEL repo) [root@kvcvs01 signed]# rpm -qa | grep facter facter-1.3.8-1.el5 Ruby v1.8.5 (default CentOS repo) [root@kvcvs01 signed]# rpm -qa | grep ruby ruby-irb-1.8.5-5.el5_2.3 ruby-libs-1.8.5-5.el5_2.3 rubygems-0.9.4-1.el5 ruby-devel-1.8.5-5.el5_2.3 ruby-rdoc-1.8.5-5.el5_2.3 ruby-1.8.5-5.el5_2.3 Ruby Gems (installed using gem install xxxx) [root@kvcvs01 signed]# gem query *** LOCAL GEMS *** actionmailer (1.3.6) Service layer for easy email delivery and testing. actionpack (1.13.6) Web-flow and rendering framework putting the VC in MVC. actionwebservice (1.2.6) Web service support for Action Pack. activerecord (1.15.6) Implements the ActiveRecord pattern for ORM. activesupport (1.4.4) Support and utility classes used by the Rails framework. rails (1.2.6) Web-application framework with template engine, control-flow layer, and ORM. rake (0.8.1) Ruby based make-like utility. sources (0.0.1) This package provides download sources for remote gem installation sqlite3-ruby (1.2.2) SQLite3/Ruby is a module to allow Ruby scripts to interface with a SQLite3 database. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Blake Barnett
2008-Jul-31 19:41 UTC
[Puppet Users] Re: storeconfigs causes puppetmaster to die???
On Jul 31, 2008, at 9:01 AM, DanHawker wrote:> > Hi, > > Just started playing with Puppet and most things are pretty cool. Have > started off slowly and have a few services and hosts on my test LAN > working fine. > > Have been looking at storedconfigs after looking for a more complete > MySQL recipe. I started looking at the *Complete Configuration* > section in Puppet and Davids repo, which has such a beast. > > Grabbed his recipe and common stuff and it works well, up until when I > activate storedconfig. (package, user and service management fine). As > am only testing, am using SQLite as the backend.I would definitely recommend either MySQL or PostgreSQL, that said it shouldn''t crash. Could you try running puppetmasterd with --trace and see if you can get a stack trace when it bails? Failing that, try strace to see what it''s trying to do. -Blake --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---