I am installing edx platform on debian squeeze with anisible at the middle of the process of installation I get this error :

TASK: [supervisor | create a symlink for supervisor cfg] ********************** 
ok: [localhost] => (item=/edx/app/supervisor/supervisord.conf)
ok: [localhost] => (item=/edx/app/supervisor/conf.d)

TASK: [supervisor | start supervisor] ***************************************** 
failed: [localhost] => {"failed": true, "item": ""}
msg: cannot find 'service' binary or init script for service,  possible typo in service name?, aborting

FATAL: all hosts have already failed -- aborting

PLAY RECAP ******************************************************************** 
       to retry, use: --limit @/root/edx_sandbox.retry

localhost                  : ok=42   changed=2    unreachable=0    failed=1

I don't know what is the problem? can anybody help me?thanks.


Answering regarding the error message "cannot find 'service' binary", which was part of the original title:

The binary service is in /usr/sbin/, and that directory is not allways in PATH.

So, maybe you just need to add it?

/usr/sbin/ is normaly in PATH of root, but not for other users - not sure you did run it as root from the output you show.

(Turned out that this was not the real problem here, but could still be helpfull in other cases when looking for the error message. Leave a comment if I should better delete it, I wouldn't object.)

  • no,I am root.here is my $PATH : $PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin – mojibuntu Apr 16 '14 at 17:24
  • What does "which service" say? – Volker Siegel Apr 16 '14 at 17:28
  • /usr/sbin/service – mojibuntu Apr 16 '14 at 17:28
  • Good, so not the problem I thought... – Volker Siegel Apr 16 '14 at 17:29
  • yes.should be.but I am root user and get this error. – mojibuntu Apr 16 '14 at 17:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.