Puppet Error: err: /Stage[main]//Exec[C:/tmp/foo.exe]/returns: change from notrun to 0 failed: CreateProcess() failed: Access is denied.

0 votes

While using Puppet Enterprise with windows, There's an error as shown below:

err: /Stage[main]//Exec[C:/tmp/foo.exe]/returns: change from notrun to 0 failed: CreateProcess() failed: Access is denied.

Please help.

Aug 1, 2019 in Puppet by Sam
• 4,890 points
44 views

1 answer to this question.

0 votes

This error occurs when requesting an executable from a remote Puppet master that cannot be executed.

Set the user/group executable bits appropriately on the master:

file { "C:/tmp/foo.exe": 
source => "puppet:///modules/foo/foo.exe",
 } 
exec { 'C:/tmp/foo.exe': 
logoutput => true 
}

This should do!

answered Aug 1, 2019 by Sirajul
• 44,960 points

Related Questions In Puppet

0 votes
1 answer

Error saying "Package[pacman]/ensure: change from absent to present failed: Could not find package pacman"

Hey @Dipti, Add --debug --verbose to see the command ...READ MORE

answered Feb 25, 2019 in Puppet by Nandita
49 views
0 votes
1 answer

Puppet: Error while trying to execute shell commands in Exec resource type

The default exec provider on *nix OSes ...READ MORE

answered Aug 2, 2019 in Puppet by Sirajul
• 44,960 points
261 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,400 points
297 views
0 votes
1 answer