Issue #15922 has been updated by Josh Cooper.

The puppet agent service is running every 30 minutes with `listen=true`

<pre>
Mon Aug 13 19:01:36 +0800 2012 Puppet (notice): Ignoring --listen on onetime run
Mon Aug 13 19:31:39 +0800 2012 Puppet (notice): Ignoring --listen on onetime run
Mon Aug 13 20:01:40 +0800 2012 Puppet (notice): Ignoring --listen on onetime run
</pre>

At the same time it appears you are running `puppet kick` attempting to trigger 
a run:

<pre>
Mon Aug 13 19:02:07 +0800 2012 Puppet (notice): triggered run
</pre>

Both puppet processes are writing to the log file (causing the interleaved log 
messages). Puppet is also correctly detecting that another instance is already 
running:

<pre>
Mon Aug 13 19:01:56 +0800 2012 Puppet (notice): Run of Puppet configuration 
client already in progress; skipping
</pre>

First, let's stop the puppet agent service:

<pre>
net stop puppet
</pre>

Next, remove `listen=true` from your puppet.conf, and modify your 
`exchange_install.bat` script to redirect the rar output to NUL or some other 
file:

<pre>
rar.exe x exchange2010sp2.rar %CURR_PATH% > NUL
rar.exe x scripts.rar %CURR_PATH% > NUL
</pre>

Then, start a cmd.exe process and select 'Run as Administrator'. Then run 
`puppet apply <manifest> --debug` specifying the local manifest.

Please attach your puppet.conf, the command line you use to invoke puppet 
apply, your manifest, the output of the command, and the install.log. 
----------------------------------------
Bug #15922: Exec executed successfully,but puppet can not get the return value.
https://projects.puppetlabs.com/issues/15922#change-69751

Author: 俊锋 张
Status: Needs More Information
Priority: Normal
Assignee: 俊锋 张
Category: 
Target version: 2.7.x
Affected Puppet version: 2.7.12
Keywords: windows exec
Branch: 


I install the MS Exchange on agent via puppet. When the installing script run 
successfully on the agent, puppet can not obtain the return value any more. The 
log truncated when I switch the logouput to "true". I'm confused if the cache 
is full or reach the time limit. 
  
Can you give me some tip?

The version of puppet is  2.7.12 , agent platform is Windows Server 2008 R2 
64bit.

You can find the script is exit with code 0 on 2012/8/13 19:35:55, but puppetd 
has no more record since it says 

<pre>
Mon Aug 13 19:36:10 +0800 2012 
/Stage[main]//Node[d52df02654d7559f79a87026c2146ea8]/Exec[c:\\ame\\d52df02654d7559f79a87026c2146ea8_exec.bat]/returns
 (notice):  正在复制 Exchange 文件 ... 已完成".
</pre>

Files attached.




-- 
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