Issue #15922 has been updated by Josh Cooper.

Can you try redirecting the output of setup.com to a different file:

<pre>
%PKG_PATH%\setup.com /m:install /r:M,C,H /on:myorg /s:%PKG_PATH% >> setup.log
</pre>

----------------------------------------
Bug #15922: Exec executed successfully,but puppet can not get the return value.
https://projects.puppetlabs.com/issues/15922#change-69383

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