Issue #15922 has been updated by Josh Cooper.

Status changed from Unreviewed to Needs More Information
Assignee set to 俊锋 张

The last line in puppetd.log contains:

<pre>
Mon Aug 13 20:01:54 +0800 2012 
/Stage[main]//Node[d52df02654d7559f79a87026c2146ea8]/Exec[c:\\ame\\d52df02654d7559f79a87026c2146ea8_exec.bat]
 (err): Failed to call refresh: 
c:\\ame\\d52df02654d7559f79a87026c2146ea8_exec.bat returned 1 instead of one of 
[0] at 
/etc/puppet/manifests/businesses/d52df02654d7559f79a87026c2146ea8_null_ExecCommand.pp:29
</pre>

Your script returned 1 instead of 0. If you run 
d52df02654d7559f79a87026c2146ea8_exec.bat from the command line, and then echo 
%ERRORLEVEL%, what does it return? To debug further, we would need to see your 
ExecCommand manifest (including that .bat script you are executing).
----------------------------------------
Bug #15922: Exec executed successfully,but puppet can not get the return value.
https://projects.puppetlabs.com/issues/15922#change-68884

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


Dears,
    I install the MS Exchange on agent via puppet.When the installing script 
run successfully on the agent,puppet can not obtain the return vaule 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 syas "Mon Aug 13 19:36:10 +0800 2012 
/Stage[main]//Node[d52df02654d7559f79a87026c2146ea8]/Exec[c:\\ame\\d52df02654d7559f79a87026c2146ea8_exec.bat]/returns
 (notice):  正在复制 Exchange 文件 ... 已完成".

    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