Setup E-Commerce service

168 views
Skip to first unread message

truong nguyen

unread,
Sep 17, 2016, 3:04:45 AM9/17/16
to General Open edX discussion
I try to setup E-commerce service follow these instruction bellow:
https://openedx.atlassian.net/wiki/display/OpenOPS/How+to+Install+and+Start+the+E-Commerce+Service+in+Native+Installations
I take follow these step is error: Unknow id ecommerce

    sudo su ecommerce -s /bin/bash
    cd ~/ecommerce
    source ../ecommerce_env
Who can help me please!
Thankyou.

Jason Onoda

unread,
Sep 17, 2016, 8:17:43 PM9/17/16
to General Open edX discussion
does the directory /edx/app/ecommerce/ exist? If not, then there's a chance that you forgot to change the false flag to true in step 2. By changing it to true, it should go through the process of installing the ecommerce files and creating the necessary system accounts.

truong nguyen

unread,
Sep 18, 2016, 2:12:53 AM9/18/16
to General Open edX discussion
Hi Onoda!
Thank for your reply!
I set up flag is true,I checked
But directory /edx/app/ecommerce not exist,I don't know why ?
Do you have anything ideal help me ?
( ^ - ^) thank you Onoda.

Vào 07:17:43 UTC+7 Chủ Nhật, ngày 18 tháng 9 năm 2016, Jason Onoda đã viết:

Jason Onoda

unread,
Sep 18, 2016, 7:21:44 PM9/18/16
to General Open edX discussion
Did you change anything else in the edx_sandbox.yml playbook? By setting the SANDBOX_ENABLE_ECOMMERCE to True, (line 19), it should install the ecommerce files necessary. Another issue that might cause a problem is if the installation does not fully finish and instead ends with an error. In this situation, there's no telling what else you might also be missing.

truong nguyen

unread,
Sep 19, 2016, 5:03:45 AM9/19/16
to General Open edX discussion

Hi Onoda !
I only set flag SANDBOX_ENABLE_ECOMMERCE to True.
You are right,after finishing installation,it has error:
  TASK: [edxapp | checkout edx-platform repo into {{ edxapp_code_dir }}] ********
failed: [localhost] => {"failed": true}
msg: Local modifications exist in repository (force=no).

FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************
INFO:ansible.callback_plugins.task_timing:server_utils | Install ubuntu system packages ----------------------------------- 81.76s
INFO:ansible.callback_plugins.task_timing:mongo | Install mongo server and recommends ------------------------------------- 28.43s
INFO:ansible.callback_plugins.task_timing:edxapp_common | Install system packages ----------------------------------------- 27.55s
INFO:ansible.callback_plugins.task_timing:user | Install debian packages user role needs ---------------------------------- 27.53s
INFO:ansible.callback_plugins.task_timing:nginx | Install the nginx package ----------------------------------------------- 26.43s
INFO:ansible.callback_plugins.task_timing:rabbitmq | Stop rabbit cluster -------------------------------------------------- 20.16s
INFO:ansible.callback_plugins.task_timing:memcache | Install memcached ---------------------------------------------------- 19.77s
INFO:ansible.callback_plugins.task_timing:edxapp | install system packages on which LMS and CMS rely ---------------------- 16.77s
INFO:ansible.callback_plugins.task_timing:common | Install role-independent useful system packages from custom PPA -------- 14.80s
INFO:ansible.callback_plugins.task_timing:common | pip install virtualenv ------------------------------------------------- 11.64s
INFO:ansible.callback_plugins.task_timing:
Playbook edx_sandbox finished: 2016-09-19 08:48:07.805301, 217 total tasks.  0:07:12.478829 elapsed.

           to retry, use: --limit @/home/vagrant/edx_sandbox.retry

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


I don't know why ?
Please help me,thank you Onoda!

Vào 06:21:44 UTC+7 Thứ Hai, ngày 19 tháng 9 năm 2016, Jason Onoda đã viết:

Jason Onoda

unread,
Sep 19, 2016, 11:56:21 AM9/19/16
to General Open edX discussion
From the error message (the part you have in red) it seems like you're trying to install everything over itself again. Are you starting this from a fresh server without edx already installed on it? If you're not far into the configuration, you might want to start over again and start from a new ubuntu 12.04 instance.

truong nguyen

unread,
Sep 22, 2016, 5:06:30 AM9/22/16
to General Open edX discussion
Hi Onoda !
Recently I installed E-Commerce service successfully, follow yours instructions,I'am very happy,Thank you Onoda.
I don't know if  this service has support others Payment Processor in my country,if yes how to set up ?

Vào 22:56:21 UTC+7 Thứ Hai, ngày 19 tháng 9 năm 2016, Jason Onoda đã viết:

Jason Onoda

unread,
Sep 22, 2016, 10:31:47 AM9/22/16
to General Open edX discussion
Awesome! Glad it worked! There are only two payment processors that comes with edx by default right now (cybersource and paypal), however, I've seen some work (https://github.com/edx/ecommerce/pull/601) to add Stripe as another payment processor that may help with developing your own processor.
Reply all
Reply to author
Forward
0 new messages