Unreported Windows nodes (Puppet 3.7.3, Exchange 2010)

99 views
Skip to first unread message

cko

unread,
Dec 9, 2014, 8:28:41 AM12/9/14
to puppet...@googlegroups.com
Hi,

I'm currently having an issue with the Windows Server 2008R2 nodes in our Exchange 2010 environment.

Since I upgraded the four nodes to Puppet 3.7.3 , they do not check in to the Puppetmaster via the Windows Service every 30 minutes like all the other nodes do. 

Here is a gist of the output from "puppet agent -t --debug" that might help https://gist.github.com/anonymous/e972393ea742631ccaef

Is there a problem in my environment or are there any known issues regarding this behavior? 

Felix Frank

unread,
Dec 12, 2014, 7:31:33 AM12/12/14
to puppet...@googlegroups.com
Hi,

I actually don't know how Puppet operates on Windows exactly. But
apparently, there is supposed to be a registered service.

Is the Puppet service running? Is it writing into the event log?

Rob Reynolds

unread,
Dec 13, 2014, 10:48:59 PM12/13/14
to puppet...@googlegroups.com
We are not aware of a known issue for this behavior. If you could check the eventlog and determine what issues it may be reporting?  

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/4da95e8f-9c8f-4dca-a91d-dfae1ce1dd1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Rob Reynolds
Developer, Puppet Labs

Join us at PuppetConf 2015, October 5-9 in Portland, OR - http://2015.puppetconf.com/
Register early to save 40%!

cko

unread,
Dec 14, 2014, 10:17:56 AM12/14/14
to puppet...@googlegroups.com
The Puppet Service is actually running.

The eventlog shows records about successfully finished catalog runs. All files in the C:\ProgramData\PuppetLabs\puppet\var\state directory indicate that the puppet run finishes without problems.

I suspect there is a problem with the submission of the report to the puppet master unless the puppet run is triggered manually. 

That might be the reason they are marked "out of sync" in any dashboard application (puppetdb, puppetexplorer, foreman).

Rob Reynolds

unread,
Dec 15, 2014, 11:24:55 AM12/15/14
to puppet...@googlegroups.com
On Sun, Dec 14, 2014 at 9:17 AM, cko <der...@gmail.com> wrote:
The Puppet Service is actually running.

The eventlog shows records about successfully finished catalog runs. All files in the C:\ProgramData\PuppetLabs\puppet\var\state directory indicate that the puppet run finishes without problems.

I suspect there is a problem with the submission of the report to the puppet master unless the puppet run is triggered manually. 

What user does the puppet agent service run under? 

 

That might be the reason they are marked "out of sync" in any dashboard application (puppetdb, puppetexplorer, foreman).




On Sunday, December 14, 2014 4:48:59 AM UTC+1, Rob Reynolds wrote:


On Tue, Dec 9, 2014 at 7:28 AM, cko <der...@gmail.com> wrote:
Hi,

I'm currently having an issue with the Windows Server 2008R2 nodes in our Exchange 2010 environment.

Since I upgraded the four nodes to Puppet 3.7.3 , they do not check in to the Puppetmaster via the Windows Service every 30 minutes like all the other nodes do. 

Here is a gist of the output from "puppet agent -t --debug" that might help https://gist.github.com/anonymous/e972393ea742631ccaef

Is there a problem in my environment or are there any known issues regarding this behavior? 

We are not aware of a known issue for this behavior. If you could check the eventlog and determine what issues it may be reporting?  

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/4da95e8f-9c8f-4dca-a91d-dfae1ce1dd1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Rob Reynolds
Developer, Puppet Labs

Join us at PuppetConf 2015, October 5-9 in Portland, OR - http://2015.puppetconf.com/
Register early to save 40%!

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

cko

unread,
Dec 16, 2014, 2:51:49 AM12/16/14
to puppet...@googlegroups.com
The service runs under the Local System account.

cko

unread,
Feb 2, 2015, 6:05:35 AM2/2/15
to puppet...@googlegroups.com
I just noticed that the affected agents do not update the files located in "C:\ProgramData\PuppetLabs\puppet\var\state".

Also interesting: The "agent_catalog_run.lock" file is not properly removed after a puppet run.

See the timestamps on the files ( http://i.imgur.com/qE87OB5.png )

Rob Reynolds

unread,
Feb 2, 2015, 3:49:01 PM2/2/15
to puppet...@googlegroups.com
On Mon, Feb 2, 2015 at 5:05 AM, cko <der...@gmail.com> wrote:
I just noticed that the affected agents do not update the files located in "C:\ProgramData\PuppetLabs\puppet\var\state".

Also interesting: The "agent_catalog_run.lock" file is not properly removed after a puppet run.

See the timestamps on the files ( http://i.imgur.com/qE87OB5.png )


Can you give me an icacls on that folder? icacls C:\ProgramData\PuppetLabs\puppet\var\state. Also I wonder if you have a connection issue in sending the report to the master? From the gist I didn't see an issue jump out at me though.

Also, 3.7.4 just came out. I don't know for sure if it will resolve the issues or not.
 

For more options, visit https://groups.google.com/d/optout.

cko

unread,
Feb 3, 2015, 9:25:14 AM2/3/15
to puppet...@googlegroups.com
Icacls: http://i.imgur.com/s1xQy65.png

I will upgrade to Puppet 3.7.3 this week an see if that fixed the issue.

Rob Reynolds

unread,
Feb 5, 2015, 5:27:43 PM2/5/15
to puppet...@googlegroups.com
On Tue, Feb 3, 2015 at 8:25 AM, cko <der...@gmail.com> wrote:

Can you run one against the last_run_report.yaml and the lock file (if still present)? 

I'm seeing a similar set of permissions for var/state but want to verify the permissions on the files (as they can be different).


For more options, visit https://groups.google.com/d/optout.

Christian Koep

unread,
Feb 6, 2015, 2:55:21 AM2/6/15
to puppet...@googlegroups.com

cko

unread,
Feb 12, 2015, 12:31:15 AM2/12/15
to puppet...@googlegroups.com
I just updated to 3.7.4

This is the output when I manually run Puppet: http://i.imgur.com/pdrklFm.png (Still, only happening on exchange 2010 nodes)

The Agent basically stops working after loading all facts, without removing the .lock file.

Let me know if you need more information on this.

Rob Reynolds

unread,
Apr 8, 2015, 2:14:00 PM4/8/15
to puppet...@googlegroups.com
On Wed, Feb 11, 2015 at 11:31 PM, cko <der...@gmail.com> wrote:
I just updated to 3.7.4

This is the output when I manually run Puppet: http://i.imgur.com/pdrklFm.png (Still, only happening on exchange 2010 nodes)

The Agent basically stops working after loading all facts, without removing the .lock file.

Let me know if you need more information on this.

Apologies on not getting back sooner. This definitely seems like something is wrong. However it would be hard to understand specifically what it is on your system that is causing the weird behavior without some low level debugging.

There are a few possibilities into why the pidlock file is not removed, including possibly something else taking a lock on the file and Puppet is not able to delete it on exit. There are tools out there that can help you see what, if anything has a lock on a specific file/directory (I use LockHunter). Timing it right though may be necessary, so a combination of that and procmon.

Other debugging tools I would recommend:
  • Wireshark
  • SysInternals' Process Explorer (aka procexp)
  • SysInternal's Process Monitor (aka procmon)

One suggestion I would have before going to the low level debugging would be to completely remove Puppet from that machine (including manually removing the c:\programdata\puppetlabs directory), Reboot, and then try installing it again fresh. Note that you will need to remove the cert from the master as it will try to request a new cert.[1][2] I would back up the programdata\puppetlabs directory prior to removing it.

 

For more options, visit https://groups.google.com/d/optout.



--
Rob Reynolds
Developer, Puppet Labs

PuppetConf 2015 is coming to Portland, Oregon! Join us October 5-9.
Register now to take advantage of the Early Adopter discount save $349!
Reply all
Reply to author
Forward
0 new messages