postrun command in windows

55 views
Skip to first unread message

Rakesh Kathpal

unread,
Jul 1, 2014, 7:38:40 AM7/1/14
to puppet...@googlegroups.com
Hi,

My puppet.conf on windows looks like the following

[main]
server="mypuppetmaster.com"
pluginsync=true
autoflush=true
environment=production
certname ="mypuppetagent.com"
report=true
postrun_command='puppet facts upload'

When I am trying the puppet run, I am getting the error below

Error: Could not run command from postrun_command: CreateProcess() failed: The system cannot find the file specified.

I even tried using the complete path but still same issue...

I am using puppet 3.4.2., please let me know if there is any resolution for this issue..

Thanks,

Rakesh K.

Rakesh Kathpal

unread,
Jul 2, 2014, 2:12:24 AM7/2/14
to puppet...@googlegroups.com
Appreciate any insight on this issue???

Brahim Dagher

unread,
Jul 2, 2014, 10:03:25 AM7/2/14
to puppet...@googlegroups.com
Do you have success running 'puppet facts upload' from the command line?

Rakesh Kathpal

unread,
Jul 2, 2014, 2:26:30 PM7/2/14
to puppet...@googlegroups.com

Yes.. it works perfectly from commandline..

--
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/b8935d03-9dd1-48e4-9efe-c26877624003%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Josh Cooper

unread,
Jul 3, 2014, 3:16:14 PM7/3/14
to puppet...@googlegroups.com

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

This is https://tickets.puppetlabs.com/browse/PUP-1431. If you use process monitor, you will likely see puppet is calling CreateProcess with a program named "puppet facts upload" instead of the "puppet" program with arguments "facts upload".

Josh

--
Josh Cooper
Developer, Puppet Labs

Join us at PuppetConf 2014September 20-24 in San Francisco
Register by July 31st to take advantage of the Early Bird discount save $249!

Rakesh Kathpal

unread,
Jul 4, 2014, 2:43:14 AM7/4/14
to puppet...@googlegroups.com
Dear Josh,

Thanks a lot for the update.

I understand this seems to be a bug.. have seen the ticket open on this..

Wanted to know if there any workaround?

Thanks & Regards,

Rakesh K.


Reply all
Reply to author
Forward
0 new messages