Re: [Puppet Users] Puppet can''t start service (dropbox) but init.d command works manually

Felix Frank
2012-01-31T17:19:13Z

Hi,

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