Issue #2880 has been updated by Christian Hofstaedtler.

I'm seeing something similar on our 0.24.8 production setup, but this might 
really be some ActiveRecord concurrent connection usage thingy. Also mysql 
timeouts may play some game here.
The key thing to find out really is: why is the connection going away.

Frank, can you check if the TCP connection to your mysqld is lost after the 
first run? (using netstat or similar), and, that this is not the case using 
webrick?
----------------------------------------
Bug #2880: Fix for mysql 'server has gone away' under passenger
http://projects.reductivelabs.com/issues/2880

Author: Frank Sweetser
Status: Needs design decision
Priority: Normal
Assigned to: Christian Hofstaedtler
Category: Rails
Target version: 
Affected version: 0.25.1
Keywords: mysql passenger
Branch: 


After moving my puppetmaster from webrick to passenger, I found that each 
backend puppetmaster instance would lose it database connection after the first 
client finished its run.  Searching around, I found that recent versions of 
rails included a reconnect option, which fixed similar symptoms in other 
applications.

The attached patch appears to have fixed the glitch for me.

Gem versions:

activerecord (2.3.3)
passenger (2.2.7)
rack (1.0.1)



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--

You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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-bugs?hl=en.


Reply via email to