# Running Open edX via localhost

**URL:** <https://discuss.openedx.org/t/running-open-edx-via-localhost/6931>\
**Category:** Site Operations Help\
**Tags:** devstack, how-to\
**Created:** [March 30, 2022, 8:47am UTC](https://discuss.openedx.org/t/running-open-edx-via-localhost/6931 "2022-03-30T08:47:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![VanJ](https://avatars.discourse-cdn.com/v4/letter/v/57b2e6/32.png) [@VanJ](https://discuss.openedx.org/u/VanJ)\
**Post date:** [March 30, 2022, 8:47am UTC](https://discuss.openedx.org/t/running-open-edx-via-localhost/6931/1 "2022-03-30T08:47:18Z")

</div>

please help with my configuration settings. I follow this documentation:  
[https://edx.readthedocs.io/projects/open-edx-devstack/en/latest/pycharm\_integration.html#setup-django-support](https://edx.readthedocs.io/projects/open-edx-devstack/en/latest/pycharm_integration.html#setup-django-support)

then I got this error after I run LMS and CMS:

docker-compose -f /home/drkmnd/devstack/docker-compose.yml -f /home/drkmnd/.cache/JetBrains/PyCharm2021.3/tmp/docker-compose.override.141.yml up --exit-code-from lms --abort-on-container-exit lms  
WARNING: The DEVSTACK\_WORKSPACE variable is not set. Defaulting to a blank string.  
edx.devstack.mysql57 is up-to-date  
edx.devstack.devpi is up-to-date  
edx.devstack.elasticsearch710 is up-to-date  
edx.devstack.memcached is up-to-date  
edx.devstack.mongo is up-to-date  
edx.devstack.discovery is up-to-date  
edx.devstack.forum is up-to-date  
Recreating edx.devstack.lms …  
Attaching to edx.devstack.lms  
edx.devstack.lms | Traceback (most recent call last):  
edx.devstack.lms | File “/opt/project/edx-platform/manage.py”, line 20, in   
edx.devstack.lms | from safe\_lxml import defuse\_xml\_libs  
edx.devstack.lms | ModuleNotFoundError: No module named ‘safe\_lxml’  
edx.devstack.lms exited with code 1  
Aborting on container exit…  
ERROR: 1

below are my Django Run/Debug Configuration Settings:

Host: _blank_  
Additional options: 0.0.0.0:18000  
custom run command: lms  
Environment variables: PYTHONUNBUFFERED=1;DJANGO\_SETTINGS\_MODULE=lms.envs.devstack\_docker;CONFIG\_ROOT=/edx/app/edxapp;CMS\_CFG=/edx/etc/lms.yml

Python Interpreter: Project Default (Remote Python 3.8.10 Docker Compose (lms at [/home/drkmnd/devstack/docker-compose.yml)]  
Working directory: /edx/app/edxapp/edx-platform  
path mappings: /home/drkmnd/edx-platform=/edx/app/edxapp/edx-platform

Below are my `Before launch`:  
External tool \> Name: stop all running containers for release  
Program: make  
Arguments: OPENEDX\_RELEASE=juniper.master stop.all  
Working directory: /home/drkmnd/devstack

deselect \>Synchronize files after execution  
select \> open console for tool output  
select \> make console activate on message in stdout  
select make \> make console active on message in stderr

please help, I just want to customize both lms and cms and deploy via localhost

---

<div class="post-metadata">

**Author:** ![ghassan](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/ghassan/32/2779_2.png) [@ghassan](https://discuss.openedx.org/u/ghassan)\
**Post date:** [March 30, 2022, 12:29pm UTC](https://discuss.openedx.org/t/running-open-edx-via-localhost/6931/2 "2022-03-30T12:29:19Z")

</div>

Not sure if this would be useful, but as it seems the error is realted to a missing module, may be you didn’t run `make dev.provision` or `make dev.provision.lms` ? The provisoin command is suppose to handle installing the requirments, hence the error is about a module not found.

[Edit]: Also may be `make requirements` would be suffient if you have ran the `provision` before. but make sure you are using or have activated the same pip env) you usually use for devstack.

---

<div class="post-metadata">

**Author:** ![VanJ](https://avatars.discourse-cdn.com/v4/letter/v/57b2e6/32.png) [@VanJ](https://discuss.openedx.org/u/VanJ)\
**Post date:** [March 31, 2022, 12:35am UTC](https://discuss.openedx.org/t/running-open-edx-via-localhost/6931/3 "2022-03-31T00:35:09Z")

</div>

Thank you for the reply. I am right now running `make dev.provision` but right now I have this error in the end:

Build failed: Unknown task: install\_prereqs  
make[1]: \*\*\* [Makefile:217: impl-dev.provision] Error 1  
make[1]: Leaving directory ‘/home/drkmnd/devstack’  
Would you like to assist devstack development by sending anonymous usage metrics to edX? Run `make metrics-opt-in` to learn more!  
make: \*\*\* [Makefile:221: dev.provision] Error 2

venv is activated before I run command `make dev.provision` please help?

---

<div class="post-metadata">

**Author:** ![VanJ](https://avatars.discourse-cdn.com/v4/letter/v/57b2e6/32.png) [@VanJ](https://discuss.openedx.org/u/VanJ)\
**Post date:** [March 31, 2022, 6:24am UTC](https://discuss.openedx.org/t/running-open-edx-via-localhost/6931/4 "2022-03-31T06:24:44Z")

</div>

right now whenever I run `make dev.provision` I’m getting this error:

ERROR: for mysql57 Cannot start service mysql57: driver failed programming external connectivity on endpoint edx.devstack.mysql57 (6e2a7e3abaeefb5c1e457958d833b31ea753cc42b55e5e5b8b9dbddbad1ecb02): Error starting userland proxy: listen tcp [::]:3506: bind: address already in use  
ERROR: Encountered errors while bringing up the project.  
make[1]: \*\*\* [Makefile:225: impl-dev.provision.lms] Error 1  
make[1]: Leaving directory ‘/home/drkmnd/devstack’  
Would you like to assist devstack development by sending anonymous usage metrics to edX? Run `make metrics-opt-in` to learn more!  
make: \*\*\* [Makefile:228: dev.provision.lms] Error 2

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/openedx/original/2X/e/e0015f89e879bc75925b71fd11133ab15fe98297.png) [@system](https://discuss.openedx.org/u/system)\
**Post date:** [June 29, 2022, 6:25am UTC](https://discuss.openedx.org/t/running-open-edx-via-localhost/6931/5 "2022-06-29T06:25:37Z")

</div>

Closed on June 29, 2022, 6:25am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
