Hi, First make sure you installed the mysql Ruby Gem (or the correct package on your system).
On 5/06/09 11:58, Juri Rischel Jensen wrote: > Now, when I startup mysql and puppetmasterd, the first one or two runs > of puppetd on the client is fine. Puppetmasterd stores the configs, but > suddenly (and this is with only one host contacting the puppetmaster) > the log says: > > Could not store configs: Mysql::Error: MySQL server has gone away: > SELECT * FROM `hosts` WHERE (`hosts`.`name` = 'web01.mydomain.com') > LIMIT 1 Server has gone away usually means MySQL has crashed. Check your mysql.err file or syslog on this system to see what happened. Which version of MySQL is it? > At first I thought it was MySQL drowning, but I've found that a restart > of puppetmasterd (with /etc/init.d/apache2 restart, as it run through > Passenger) fixes the problem - but only temporarily. Next time a host > contacts the puppetmaster, I get the error stated above. :-( And it > fails until I restart puppetmaster again. Usually MySQL restarts itself after a crash (it runs through a wrapper called mysqld_safe usually). But maybe, the mysql crash leaves the puppetmaster in an unstable state which prevents it to connect back to MySQL. > I have the following optimizations in my passenger configuration (cut > from Nigel Kerstens mails about his Passengerbased setup): > > PassengerLogLevel 1 > PassengerMaxRequests 3000 > PassengerMaxPoolSize 15 > PassengerStatThrottleRate 600 > > I've also tried to optimize the MySQL configuration, but as a restart of > Apache/Passenger solves the problem (for one clientrun), I don't think > that the problem lies with MySQL. > > Do any of you have a clue of what can be wrong here? I'd suggest you run your master outside of passenger to see if you can replicate the issue. Run the master on the console with --no-daemonize --debug --trace. Then connect your clients. If it crashes, you can rule out passenger as the culprit. If it works, then it is a bad interaction between passenger, rails and/or MySQL. Good luck, -- Brice Figureau My Blog: http://www.masterzen.fr/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
