Jack Harris Jr
2012-Mar-07 04:03 UTC
[Puppet Users] ENC script always fails with exit status 1
Whenever I use puppet agent --test on a client I get the error "err: Failed when searching for node sage.jack: Failed to find sage.jack via exec: Execution of ''/home/ldigitaldash/classifier sage.jack'' returned 1:" if i run the enc as a command /home/ldigitaldash/classifier sage.jack I get this output " --- parameters: " which is what I want. Here is my enc code: #!/bin/sh echo ''--- parameters: '' exit 0 Any suggestions on what the problem is or how to debug it. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/xd3200vtX0sJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Jeff McCune
2012-Mar-07 16:19 UTC
Re: [Puppet Users] ENC script always fails with exit status 1
On Tue, Mar 6, 2012 at 8:03 PM, Jack Harris Jr <ldigitaldash@gmail.com>wrote:> Whenever I use puppet agent --test on a client I get the error "err: > Failed when searching for node sage.jack: Failed to find sage.jack via > exec: Execution of ''/home/ldigitaldash/classifier sage.jack'' returned 1:" > if i run the enc as a command /home/ldigitaldash/classifier sage.jack I get > this output " > --- > parameters: > " > which is what I want. Here is my enc code: > #!/bin/sh > echo ''--- > parameters: > '' > exit 0 > > Any suggestions on what the problem is or how to debug it. >The Puppet master usually runs under a service account named "puppet" or "pe-puppet" for Puppet Enterprise. Does the effective UID the Puppet master is running as have permission to read from your home directory? -Jeff -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Jack Harris Jr
2012-Mar-08 05:42 UTC
Re: [Puppet Users] ENC script always fails with exit status 1
On Wednesday, March 7, 2012 11:19:19 AM UTC-5, Jeff McCune wrote:> > On Tue, Mar 6, 2012 at 8:03 PM, Jack Harris Jr <ldigitaldash@gmail.com>wrote: > >> Whenever I use puppet agent --test on a client I get the error "err: >> Failed when searching for node sage.jack: Failed to find sage.jack via >> exec: Execution of ''/home/ldigitaldash/classifier sage.jack'' returned 1:" >> if i run the enc as a command /home/ldigitaldash/classifier sage.jack I get >> this output " >> --- >> parameters: >> " >> which is what I want. Here is my enc code: >> #!/bin/sh >> echo ''--- >> parameters: >> '' >> exit 0 >> >> Any suggestions on what the problem is or how to debug it. >> > > The Puppet master usually runs under a service account named "puppet" or > "pe-puppet" for Puppet Enterprise. > > Does the effective UID the Puppet master is running as have permission to > read from your home directory? > > -Jeff > >Thanks Jeff that was the exact problem -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/gSEqy7QihLMJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.