On 01/31/2012 12:05 AM, Richard K. Miller wrote:
> I get the following syslog error when this runs:
> (/Stage[main]/Dropbox::Service/Service[dropbox]/ensure) change from
> stopped to running failed: Could not start Service[dropbox]: Execution
> of '/etc/init.d/dropbox start' returned 1: at /etc/puppet/modules/
> dropbox/manifests/init.pp:14
>
> However, if I run the above command manually, it works fine and
> returns 0:
>
> root@webhost:~# /etc/init.d/dropbox start ; echo $?
> Starting dropbox...
> 0
it's a long shot, but there might be a problem related to the
environment when puppet runs the initscript.
Try the "start" command with a clean environment.
Side question: When you're trying that, is the service actually stopped?
Is puppet deducing that much correctly?
Cheers,
Felix
Try this on the command line:
puppet resource service dropbox ensure=running -d
Nan
I had the same problem when running ssh-keygen via an exec. It ran fine
from the CLI but not via Puppet. In my case it turned out that SELinux
had been left enabled, so that's one thing to check.
On 02/01/2012 02:01 AM, Richard K. Miller wrote:
> AppArmor is
> on. Could that be a factor?
I certainly believe so. It should be investigated.
Regards