Issue #3581 has been updated by Stefan Schulte.

Status changed from Needs More Information to In Topic Branch Pending Review
Branch set to https://github.com/stschulte/puppet/tree/ticket/2.7.x/3581

The error is still present in recent puppet versions. I use puppet agent 2.6.1, 
puppet master 2.6.11, the mysql2 gem, passenger 3.0.9 and activerecord 3.0.10. 
I have set the `smtpserver` configuration setting (so puppet uses `Net::SMTP` 
instead calling `sendmail` to do the job). I got about 20 error messages a day.

I think it is a forking issue where the child process closes the connection, 
leaving the parent process with an invalid database handle. The patch in the 
branch field removes the fork call in the tagmail report (causing the puppet 
process to block until the email is sent). I patched my puppet master two days 
ago and have not seen the error since.
----------------------------------------
Bug #3581: tagmail + err: PGError: server closed the connection unexpectedly
https://projects.puppetlabs.com/issues/3581

Author: Jan  Doleschal
Status: In Topic Branch Pending Review
Priority: Normal
Assignee: 
Category: stored configuration
Target version: 
Affected Puppet version: 0.25.4
Keywords: 
Branch: https://github.com/stschulte/puppet/tree/ticket/2.7.x/3581


Hello all, 

got a strange issue with puppet 0.25.4, tagmail and postgresql connections. 
Having the following setup running - 
puppet0.25.4 and foreman. As DB backend works a PostgreSQL database. We are 
managing aprox. 50 Clients. OS is only SLES10SP2. Now, when running puppet i 
got after some minutes the following error: err: PGError: server closed the 
connection unexpectedly. This only happens when reports is set to tagmail. It 
seems that puppet tries to open a connection but then stalls.


-- 
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://projects.puppetlabs.com/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