Ecommerce settingup

704 views
Skip to first unread message

Amir Tadrisi

unread,
Mar 9, 2016, 1:36:22 AM3/9/16
to General Open edX discussion
Hi guys i have openedx instance dogwood in my aws server , i have everything excellent up and running but i need to integrate paypal and stripe to my server  im pretty confused of how to set up ecommerce there is there any good doc for start to learn how to do it
thanks

Trinh Nguyen

unread,
Mar 9, 2016, 1:50:21 AM3/9/16
to edx-...@googlegroups.com

Amir Tadrisi

unread,
Mar 9, 2016, 7:15:18 AM3/9/16
to General Open edX discussion
Thanks a lot Trinh appreciate it

Amir Tadrisi

unread,
Mar 9, 2016, 7:26:53 AM3/9/16
to General Open edX discussion
Well this doc is for devstack i really need the config for production , you think is there any chance for developing in production ?


On Wednesday, March 9, 2016 at 1:36:22 AM UTC-5, Amir Tadrisi wrote:

Juanito

unread,
Mar 9, 2016, 12:03:29 PM3/9/16
to General Open edX discussion
Hi Amir, I am working on finding out what this ecommerce service does also,

Let me know what you find, I'll report what I find also

Amir Tadrisi

unread,
Mar 9, 2016, 12:44:41 PM3/9/16
to General Open edX discussion
Sure my friend thanks


On Wednesday, March 9, 2016 at 1:36:22 AM UTC-5, Amir Tadrisi wrote:

Renzo Lucioni

unread,
Mar 10, 2016, 10:48:00 AM3/10/16
to General Open edX discussion
Hi guys,

I'm a developer on the edX ecommerce team. We're working on more comprehensive documentation for the ecommerce service, to be available as part of the Installing, Configuring, and Running the Open edX Platform guide. A PR is in progress at https://github.com/edx/edx-documentation/pull/831.

Best,

Renzo

Jacek Bzdak

unread,
Mar 10, 2016, 11:15:27 AM3/10/16
to edx-...@googlegroups.com
Amir, 

there is no support for Stripe in Ecommerce at the moment, however I'm developing a PR that implements it, it should be done in next couple of days. You can watch progress here: https://github.com/edx/ecommerce/pull/601

On Wed, Mar 9, 2016 at 7:36 AM, Amir Tadrisi <ami...@gmail.com> wrote:
Hi guys i have openedx instance dogwood in my aws server , i have everything excellent up and running but i need to integrate paypal and stripe to my server  im pretty confused of how to set up ecommerce there is there any good doc for start to learn how to do it
thanks

--
You received this message because you are subscribed to the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/817056ef-6f8d-4c92-9e4b-d3ad8b15443c%40googlegroups.com.



--
Jacek 
@OpenCraft

Juanito

unread,
Mar 10, 2016, 2:40:53 PM3/10/16
to General Open edX discussion
Hey Guys,

I am trying to have ecommerce service up and running. I hope I am doing this right. I am trying to install ecommerce on dogwood on ubuntu 12.04 aws box. Since it wasn't installed initially by ansible, I saw that there was the /var/tmp/configuration/playbooks/edx-east/ecommerce.yml playbook. Well, I ran it and it got installed:

analytics_api                    RUNNING   pid 3620, uptime 2 days, 1:22:51
certs                            RUNNING   pid 9090, uptime 2 days, 1:06:00
ecommerce                        RUNNING   pid 2482, uptime 0:47:41
ecomworker                       RUNNING   pid 12972, uptime 0:19:23
edx_notes_api                    RUNNING   pid 14255, uptime 2 days, 1:14:49
edxapp:cms                       RUNNING   pid 24456, uptime 1 day, 2:53:08
edxapp:lms                       RUNNING   pid 24455, uptime 1 day, 2:53:08
edxapp_worker:cms_default_1      RUNNING   pid 13562, uptime 0:17:36
edxapp_worker:cms_high_1         RUNNING   pid 13560, uptime 0:17:36
edxapp_worker:cms_low_1          RUNNING   pid 13558, uptime 0:17:36
edxapp_worker:lms_default_1      RUNNING   pid 13561, uptime 0:17:36
edxapp_worker:lms_high_1         RUNNING   pid 13564, uptime 0:17:36
edxapp_worker:lms_high_mem_1     RUNNING   pid 13559, uptime 0:17:36
edxapp_worker:lms_low_1          RUNNING   pid 13563, uptime 0:17:36
forum                            RUNNING   pid 9820, uptime 2 days, 1:05:20
insights                         RUNNING   pid 13028, uptime 2 days, 1:15:09
notifier-celery-workers          RUNNING   pid 9789, uptime 2 days, 1:05:31
notifier-scheduler               RUNNING   pid 9761, uptime 2 days, 1:05:42
xqueue                           RUNNING   pid 8242, uptime 2 days, 1:06:42
xqueue_consumer                  RUNNING   pid 8273, uptime 2 days, 1:06:40

It is currently accessible through port http://myPublicURL:18130, but it is giving me server error. I check the logs on /edx/var/log/ecommerce/edx.log

this is what I found:

OperationalError: (1045, "Access denied for user 'ecomm001'@'localhost' (using password: YES)")

It looks like it needs additional configuration. I don't see any database for ecommmerce:

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| analytics-api      |
| dashboard          |
| edx_notes_api      |
| edxapp             |
| mysql              |
| performance_schema |
| reports            |
| test               |
| xqueue             |
+--------------------+

Anyone know what I am missing?

Amir Tadrisi

unread,
Mar 10, 2016, 6:54:06 PM3/10/16
to edx-...@googlegroups.com
excellent thanks for sharing my friend , im agree the database is not created well i try the way you did and share my experience as well

--
You received this message because you are subscribed to a topic in the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/5508e7cf-82fc-419e-a744-ffd7beea1976%40googlegroups.com.

Amir Tadrisi

unread,
Mar 11, 2016, 9:47:14 PM3/11/16
to General Open edX discussion

Thank you very much Jacek  for letting me know ,
best regards

On Thursday, March 10, 2016 at 11:15:27 AM UTC-5, Jacek Bzdak wrote:

Nate Aune

unread,
Mar 12, 2016, 7:22:02 PM3/12/16
to General Open edX discussion
You might try adding the two roles (ecommerce and ecomworker) to your playbook that sets up the whole server, probably a copy of edx_sandbox.yml instead of trying to run the ecommerce playbook from edx-east. This should set up the required ecommerce users and database.

Also, I think you should enable those two things under FEATURES in server-vars.yml:

  ENABLE_SHOPPING_CART: true
  ENABLE_PAID_COURSE_REGISTRATION: true

Once you've done that, re-run the playbook and see if that solves your problem.

Nate

Amir Tadrisi

unread,
Mar 12, 2016, 7:45:34 PM3/12/16
to General Open edX discussion
thanks a lot nate i always enjoy your articles

Juanito

unread,
Mar 14, 2016, 10:45:23 AM3/14/16
to General Open edX discussion
Hi Nate,

Thanks for that tip. I has able to fully install ecommerce, and ecommerce worker along with it's mysql db and accounts.

What is and where is server-vars.yml?

Also 

  ENABLE_SHOPPING_CART: true
  ENABLE_PAID_COURSE_REGISTRATION: true

aren't those old shopping cart flags?


On Saturday, March 12, 2016 at 7:22:02 PM UTC-5, Nate Aune wrote:

Sylvia Pearce

unread,
Mar 14, 2016, 10:53:17 AM3/14/16
to General Open edX discussion
Amir et al, documentation is now available in the Installing, Configuring, and Running the Open edX Platform guide:




On Wednesday, March 9, 2016 at 1:36:22 AM UTC-5, Amir Tadrisi wrote:

Juanito

unread,
Mar 14, 2016, 12:14:23 PM3/14/16
to General Open edX discussion
Thanks for that link.

Are there instructions on correctly configuring ecommerce for sanbox/staging servers? I have everything installed on a ubuntu box and I am trying to adapt from the guide, but it's not working out well. I'm making setting changes on /edx/app/ecommerce/ecommerce/ecommerce/settings/local.py but nothing is changing. I have a feeling I have to change at the ansible-level here? /edx/etc/ecommerce.yml, but don't know how to rerun.

Any tips?

Ned Batchelder

unread,
Mar 14, 2016, 5:50:04 PM3/14/16
to edx-...@googlegroups.com
Operations questions should go on the openedx-ops list: https://groups.google.com/forum/#!forum/openedx-ops

I understand the temptation to post to the general mailing list, but it will help us all if we can keep topics separated.

Thanks,

--Ned.

--
You received this message because you are subscribed to the Google Groups "General Open edX discussion" group.
Message has been deleted

Amir Tadrisi

unread,
Jun 8, 2016, 11:44:21 AM6/8/16
to General Open edX discussion
Excellent , finally configure it with your help :)

regards

Nishant Dixit

unread,
Aug 1, 2016, 11:32:08 AM8/1/16
to General Open edX discussion
Hello Juanito.
What do you mean that you run the playbbok file. Can you write the steps to do that. I am a beginner and I don't know what to do. Although, the same file does exist in my server but i don't know what to do with it.

Ki Hwan Song

unread,
Aug 1, 2016, 11:42:41 AM8/1/16
to edx-...@googlegroups.com
playbook that I am referring to is an Ansible concept. That is how everything gets installed. I strongly recommend getting a general idea what Ansible is.

I followed these steps and it worked out for me:

Make sure you specify named-release/dogwood.3 for repos.


--
You received this message because you are subscribed to a topic in the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/fb886643-703a-46b3-8ab0-eb3beeebf085%40googlegroups.com.



--
Ki Hwan Song
송기환

Nishant Dixit

unread,
Aug 1, 2016, 12:46:41 PM8/1/16
to General Open edX discussion
@Juanito, i followed the manual instruction given here - 

now when i run that ansible playbook via this command -

cd /var/tmp/configuration/playbooks/edx-east && sudo ansible-playbook -c local ./ecommerce.yml -i "localhost,"

I get this error - 

ERROR: become is not a legal parameter in an Ansible task or handler

Ki Hwan Song

unread,
Aug 1, 2016, 3:27:39 PM8/1/16
to edx-...@googlegroups.com
The way I installed ecommerce is I specified ecommerce roles in edx_sandbox.yml

...
roles:
    - { role: swapfile, SWAPFILE_SIZE: "2GB" }
    - role: nginx
      nginx_sites:
      - certs
      - cms
      - lms
      - forum
      - xqueue
      nginx_default_sites:
      - lms
    - role: nginx
      nginx_sites:
      - ecommerce
      when: SANDBOX_ENABLE_ECOMMERCE
    - role: mysql
      when: EDXAPP_MYSQL_HOST == 'localhost'
    - edxlocal
    - role: mongo
      when: "'localhost' in EDXAPP_MONGO_HOSTS"
    - { role: 'rabbitmq', rabbitmq_ip: '127.0.0.1' }
    - { role: 'edxapp', celery_worker: True }
    - edxapp
    - role: ecommerce
      when: SANDBOX_ENABLE_ECOMMERCE
    - role: ecomworker
      when: SANDBOX_ENABLE_ECOMMERCE
    - notifier
    - analytics_api
....

reina az

unread,
Aug 17, 2017, 9:55:39 PM8/17/17
to General Open edX discussion
Hi all
 i try to configure ecommerce to the platform (ficus master native installation on ubuntu 16.04) 

using this https://github.com/edx/configuration/blob/master/util/install/sandbox.sh and configuration with this
https://openedx.atlassian.net/wiki/spaces/OpenOPS/pages/110330276/How+to+Install+and+Start+the+E-Commerce+Service+in+Native+Installations

How can i properly add and configure ecommerce  and run on my platform please

i don't know if it is normal to have  this when en enter  python manage.py makemigrations
No changes detected

python manage.py migrate
System check identified some issues:

WARNINGS:
?: (mysql.W002) MySQL Strict Mode is not set for database connection 'default'
    HINT: MySQL's Strict Mode fixes many data integrity problems in MySQL, such as data truncation upon insertion, by escalating warnings into errors. It is strongly recommended you activate it. See: https://docs.djangoproject.com/en/1.10/ref/databases/#mysql-sql-mode
Operations to perform:
  Apply all migrations: address, admin, analytics, auth, basket, catalogue, contenttypes, core, courses, customer, flatpages, invoice, offer, order, partner, payment, programs, promotions, referrals, refund, reviews, sailthru, sessions, shipping, sites, social_django, theming, thumbnail, voucher, waffle, wishlists
Running migrations:
  No migrations to apply.


alfa@alfa:/edx/app/edxapp$ sudo su ecommerce -s /bin/bash
ecommerce@alfa:/edx/app/
edxapp$ cd ~/ecommerce
ecommerce@alfa:~/ecommerce$ source ../ecommerce_env
ecommerce@alfa:~/ecommerce$ python manage.py makemigrations
No changes detected
ecommerce@alfa:~/ecommerce$ python manage.py migrate
System check identified some issues:

WARNINGS:
?: (mysql.W002) MySQL Strict Mode is not set for database connection 'default'
    HINT: MySQL's Strict Mode fixes many data integrity problems in MySQL, such as data truncation upon insertion, by escalating warnings into errors. It is strongly recommended you activate it. See: https://docs.djangoproject.com/en/1.10/ref/databases/#mysql-sql-mode
Operations to perform:
  Apply all migrations: address, admin, analytics, auth, basket, catalogue, contenttypes, core, courses, customer, flatpages, invoice, offer, order, partner, payment, programs, promotions, referrals, refund, reviews, sailthru, sessions, shipping, sites, social_django, theming, thumbnail, voucher, waffle, wishlists
Running migrations:
  No migrations to apply.
ecommerce@alfa:~/ecommerce$ python manage.py makemigrations ecommerce
App 'ecommerce' could not be found. Is it in INSTALLED_APPS?
ecommerce@alfa:~/ecommerce$ python manage.py makemigrations
No changes detected
ecommerce@alfa:~/ecommerce$ exit
exit


Many thanx

reina az

unread,
Aug 21, 2017, 4:07:49 PM8/21/17
to General Open edX discussion
Reply all
Reply to author
Forward
0 new messages