All I had to is to add the "path" variable. In my case the minimum I needed was "path => '/bin',".
Here is another post that had a brief mention of my problem: http://groups.google.com/group/puppet-users/browse_frm/thread/c60e8ae314ae687b/3b51f6664348e557?lnk=gst&q=is+both+unqualifed+and+specified+no+search+path+at#3b51f6664348e557 On Oct 8, 5:27 pm, armenzg <arme...@gmail.com> wrote: > I am a little better now. scratchbox does not allow to run anything as > root so I tried this: > "su - cltbld -c '/scratchbox/moz_scratchbox -p apt-get --yes --force- > yes install libhildonfm2-dev'" > I now got this problem: > err: Could not create su - cltbld -c '/scratchbox/moz_scratchbox -p > apt-get --yes --force-yes install libhildonfm2-dev': 'su - cltbld -c '/ > scratchbox/moz_scratchbox -p apt-get --yes --force-yes install > libhildonfm2-dev'' is both unqualifed and specified no search path at / > etc/puppet/manifests/packages/extras.pp:11 > warning: Not using cache on failed catalog > warning: Configuration could not be instantiated: 'su - cltbld -c '/ > scratchbox/moz_scratchbox -p apt-get --yes --force-yes install > libhildonfm2-dev'' is both unqualifed and specified no search path at / > etc/puppet/manifests/packages/extras.pp:11 > > On Oct 8, 5:08 pm, armenzg <arme...@gmail.com> wrote: > > > What seems to be an easy thing to do as to install a library into > > scratchbox is being something difficult to debug. > > > The command "/scratchbox/moz_scratchbox -p apt-get --yes --force-yes > > install libhildonfm2-dev" can be run in a linux vm with the account > > "cltbld" without any problems but when I try to test it from this same > > slave (I remove first the package) or any other slave as root by > > typing this: > > puppetd --test --server staging-puppet.build.mozilla.org > > I get the following error message: > > err: //Node[moz2-linux-slave03.build.mozilla.org]/staging-buildslave/ > > extras/Exec[/scratchbox/moz_scratchbox -p apt-get --yes --force-yes > > install libhildonfm2-dev]/returns: change from notrun to 0 failed: / > > scratchbox/moz_scratchbox -p apt-get --yes --force-yes install > > libhildonfm2-dev returned 1 instead of 0 at /etc/puppet/manifests/ > > packages/extras.pp:11 > > > What am I doing wrong? Is the command being run as cltbld when puppet > > tries that? > > > Cheers, > > Armen > > > diff -r 758b10a407d1 classes/staging-buildslave.pp > > --- a/classes/staging-buildslave.pp Tue Oct 06 15:42:31 2009 -0400 > > +++ b/classes/staging-buildslave.pp Thu Oct 08 14:02:22 2009 -0700 > > @@ -1,4 +1,4 @@ > > -# buildslave.pp > > +# staging-buildslave.pp > > > ### These includes all come from files of the same name > > ### in the /manifests/packages/ tree > > @@ -12,6 +12,7 @@ > > #include scratchbox > > include mercurial > > include buildbot > > + include extras > > } > > Darwin: { > > include devtools > > diff -r 758b10a407d1 packages/extras.pp > > --- /dev/null Thu Jan 01 00:00:00 1970 +0000 > > +++ b/packages/extras.pp Thu Oct 08 14:02:22 2009 -0700 > > @@ -0,0 +1,12 @@ > > +# extras.pp > > +# installs extra packages or libraries that we may need for our build > > system > > + > > +class extras { > > + exec { > > + ### This installs libhildonfm2-dev for Fennec on Maemo - bug > > 511290 > > + "/scratchbox/moz_scratchbox -p apt-get --yes --force-yes > > install libhildonfm2-dev": > > + # As long as CHINOOK-ARMEL-2007 is _the_ target used by > > scratchbox > > + creates => "/scratchbox/users/cltbld/targets/CHINOOK- > > ARMEL-2007/var/lib/dpkg/info/libhildonfm2-dev.list", > > + alias => "install-libhildonfm2-dev"; > > + } > > +} > > > [r...@moz2-linux-slave03 ~]# puppetd --test --server staging- > > puppet.build.mozilla.org > > info: mount[localhost]: Mounted / > > info: mount[modules]: Mounted > > info: mount[plugins]: Mounted > > info: Caching catalog at /var/lib/puppet/localconfig.yaml > > notice: Starting catalog run > > notice: //Node[moz2-linux-slave03.build.mozilla.org]/cltbld/Exec[/usr/ > > bin/crontab -u cltbld /home/cltbld/crontab]/returns: executed > > successfully > > notice: //Node[moz2-linux-slave03.build.mozilla.org]/base/centos5/ > > Service[auditd]/ensure: ensure changed 'running' to 'stopped' > > notice: //Node[moz2-linux-slave03.build.mozilla.org]/base/centos5/ > > Service[acpid]/ensure: ensure changed 'running' to 'stopped' > > notice: //Node[moz2-linux-slave03.build.mozilla.org]/base/centos5/ > > Service[atd]/ensure: ensure changed 'running' to 'stopped' > > err: //Node[moz2-linux-slave03.build.mozilla.org]/staging-buildslave/ > > extras/Exec[/scratchbox/moz_scratchbox -p apt-get --yes --force-yes > > install libhildonfm2-dev]/returns: change from notrun to 0 failed: / > > scratchbox/moz_scratchbox -p apt-get --yes --force-yes install > > libhildonfm2-dev returned 1 instead of 0 at /etc/puppet/manifests/ > > packages/extras.pp:11 > > notice: Finished catalog run in 13.03 seconds > > --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---