ansible virtualenv error

327 views
Skip to first unread message

Anurag Ramdasan

unread,
Oct 20, 2013, 12:19:54 PM10/20/13
to edx-...@googlegroups.com

At first it gave me this error.

TASK: [common | create edx virtualenv directory] ******************************
ok: [localhost]

TASK: [common | create the edx virtualenv directory initial contents] *********
failed: [localhost] => {"cmd": ["/usr/local/bin/virtualenv", "/opt/edx", "--distribute"], "failed": true, "item": "", "rc": 2}
msg: [Errno 2] No such file or directory

FATAL: all hosts have already failed -- aborting

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

localhost                  : ok=26   changed=0    unreachable=0    failed=1


I noticed that the virtual env was installed in /usr/bin/virtualenv so I moved the binary with `cp`.
After that most of the tasks proceeded well until I hit this error. Not really sure how to handle this.
Please let me know what the problem could be here. Thanks.

TASK: [fail virtualenv_user required for role] ******************************** 
failed: [localhost] => {"failed": true, "item": ""}
msg: Failed as requested from task

FATAL: all hosts have already failed -- aborting

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

localhost                  : ok=191  changed=58   unreachable=0    failed=1   

Philippe Chiu

unread,
Oct 21, 2013, 3:20:56 AM10/21/13
to edx-...@googlegroups.com
Hi,

Did you install the python required libs, using "sudo pip install -r requirements.txt" prior running the playbook?

-- 
P.

Anurag Ramdasan

unread,
Oct 21, 2013, 12:34:32 PM10/21/13
to Philippe Chiu, edx-code
set up a new fresh instance and it worked. Not sure what the problem was.
Reply all
Reply to author
Forward
0 new messages