# Error installing Open edX on Ubuntu 20.04

**URL:** <https://discuss.openedx.org/t/error-installing-open-edx-on-ubuntu-20-04/2988>\
**Category:** Site Operations Help\
**Tags:** how-to\
**Created:** [August 16, 2020, 2:35pm UTC](https://discuss.openedx.org/t/error-installing-open-edx-on-ubuntu-20-04/2988 "2020-08-16T14:35:50Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![pietes](https://avatars.discourse-cdn.com/v4/letter/p/85e7bf/32.png) [@pietes](https://discuss.openedx.org/u/pietes)\
**Post date:** [August 16, 2020, 2:35pm UTC](https://discuss.openedx.org/t/error-installing-open-edx-on-ubuntu-20-04/2988/1 "2020-08-16T14:35:50Z")

</div>

I run the following command “make dev.provision” and get the following error

File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/django/core/man agement/commands/migrate.py”, line 90, in handle  
executor.loader.check\_consistent\_history(connection)  
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/django/db/migra tions/loader.py”, line 299, in check\_consistent\_history  
connection.alias,  
django.db.migrations.exceptions.InconsistentMigrationHistory: Migration commerce .0001\_data\_\_add\_ecommerce\_service\_user is applied before its dependency user\_api .0002\_retirementstate\_userretirementstatus on database ‘default’.

## Captured Task Output:

—\> pavelib.servers.update\_db  
—\> pavelib.prereqs.install\_prereqs  
—\> pavelib.prereqs.install\_node\_prereqs  
—\> pavelib.prereqs.install\_python\_prereqs  
—\> pavelib.prereqs.uninstall\_python\_packages  
pip freeze \> /edx/app/edxapp/edx-platform/test\_root/log/pip\_freeze.log  
NO\_EDXAPP\_SUDO=1 EDX\_PLATFORM\_SETTINGS\_OVERRIDE=devstack\_docker /edx/bin/edxapp- migrate-lms --traceback --pythonpath=.

Build failed running pavelib.servers.update\_db: Subprocess return code: 1  
make: \*\*\* [Makefile:44: dev.provision.run] Error 1

---

<div class="post-metadata">

**Author:** ![pietes](https://avatars.discourse-cdn.com/v4/letter/p/85e7bf/32.png) [@pietes](https://discuss.openedx.org/u/pietes)\
**Post date:** [August 16, 2020, 10:27pm UTC](https://discuss.openedx.org/t/error-installing-open-edx-on-ubuntu-20-04/2988/2 "2020-08-16T22:27:38Z")

</div>

Also tried installing on ubuntu 16.04 as per the instructions

[https://openedx.atlassian.net/wiki/spaces/OpenOPS/pages/146440579/Native+Open+edX+platform+Ubuntu+16.04+64+bit+Installation](https://openedx.atlassian.net/wiki/spaces/OpenOPS/pages/146440579/Native+Open+edX+platform+Ubuntu+16.04+64+bit+Installation)

Step 4 - Doesn’t work!!! Gives a 404 error

wget https: **//** [raw.githubusercontent.com](http://raw.githubusercontent.com) **/** edx **/** configuration **/** $OPENEDX\_RELEASE **/** util **/** install **/** ansible **-** bootstrap.sh **-** O **-** | sudo **-** E bash

---

<div class="post-metadata">

**Author:** ![nedbat](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/nedbat/32/3317_2.png) [@nedbat](https://discuss.openedx.org/u/nedbat)\
**Post date:** [August 16, 2020, 10:57pm UTC](https://discuss.openedx.org/t/error-installing-open-edx-on-ubuntu-20-04/2988/3 "2020-08-16T22:57:32Z")

</div>

Did you define OPENEDX\_RELEASE as instructed? Your line has some extra spaces in it, I’m not sure if you had them when you ran it. It should be “ansible-bootstrap.sh”, not “ansible - bootstrap.sh”

---

<div class="post-metadata">

**Author:** ![pietes](https://avatars.discourse-cdn.com/v4/letter/p/85e7bf/32.png) [@pietes](https://discuss.openedx.org/u/pietes)\
**Post date:** [August 21, 2020, 5:45pm UTC](https://discuss.openedx.org/t/error-installing-open-edx-on-ubuntu-20-04/2988/4 "2020-08-21T17:45:43Z")

</div>

open-release/ficus.4 was defined in step 1 meaning

export OPENEDX\_RELEASE=open-release/ficus.4

In step 3 This exact command was entered  
wget [https://raw.githubusercontent.com/edx/configuration/$OPENEDX\_RELEASE/util/install/ansible-bootstrap.sh](https://raw.githubusercontent.com/edx/configuration/%24OPENEDX_RELEASE/util/install/ansible-bootstrap.sh) -O - | sudo -E bash

Are you saying I should substitute ‘open-release/ficus.4’ for ‘$OPENEDX\_RELEASE’ in step 3

---

<div class="post-metadata">

**Author:** ![nedbat](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/nedbat/32/3317_2.png) [@nedbat](https://discuss.openedx.org/u/nedbat)\
**Post date:** [August 21, 2020, 8:07pm UTC](https://discuss.openedx.org/t/error-installing-open-edx-on-ubuntu-20-04/2988/5 "2020-08-21T20:07:05Z")

</div>

No, you don’t have to edit the line, the environment variable you exported should be used automatically.

But Ficus is three years old. The installation instructions have changed since then, though I’m not sure that’s the source of the problem. This is the page as it looked when Ficus was released: [https://openedx.atlassian.net/wiki/pages/viewpage.action?pageId=146440579&pageVersion=10](https://openedx.atlassian.net/wiki/pages/viewpage.action?pageId=146440579&pageVersion=10)

---

<div class="post-metadata">

**Author:** ![pietes](https://avatars.discourse-cdn.com/v4/letter/p/85e7bf/32.png) [@pietes](https://discuss.openedx.org/u/pietes)\
**Post date:** [August 22, 2020, 12:17am UTC](https://discuss.openedx.org/t/error-installing-open-edx-on-ubuntu-20-04/2988/6 "2020-08-22T00:17:30Z")

</div>

Is it ok to install juniper.2 on ubuntu 16.04?

---

<div class="post-metadata">

**Author:** ![pietes](https://avatars.discourse-cdn.com/v4/letter/p/85e7bf/32.png) [@pietes](https://discuss.openedx.org/u/pietes)\
**Post date:** [August 22, 2020, 1:02am UTC](https://discuss.openedx.org/t/error-installing-open-edx-on-ubuntu-20-04/2988/7 "2020-08-22T01:02:05Z")

</div>

I went ahead through the steps to install Juniper.2 on clean install of ubuntu 16.04 following

[https://openedx.atlassian.net/wiki/spaces/OpenOPS/pages/146440579/Native+Open+edX+platform+Ubuntu+16.04+64+bit+Installation](https://openedx.atlassian.net/wiki/spaces/OpenOPS/pages/146440579/Native+Open+edX+platform+Ubuntu+16.04+64+bit+Installation)

I was able to complete steps 1 - 4 successfully with no errors.

Step 5 I get the following 404 error  
wget [https://raw.githubusercontent.com/edx/configuration/$OPENEDX\_RELEASE/util/install/native.sh](https://raw.githubusercontent.com/edx/configuration/%24OPENEDX_RELEASE/util/install/native.sh) -O - | bash  
–2020-08-21 20:55:21-- [https://raw.githubusercontent.com/edx/configuration//util/install/native.sh](https://raw.githubusercontent.com/edx/configuration//util/install/native.sh)  
Resolving [raw.githubusercontent.com](http://raw.githubusercontent.com) ([raw.githubusercontent.com](http://raw.githubusercontent.com))… 151.101.204.133  
Connecting to [raw.githubusercontent.com](http://raw.githubusercontent.com) ([raw.githubusercontent.com](http://raw.githubusercontent.com))|151.101.204.133|:443… connected.  
HTTP request sent, awaiting response… 404 Not Found  
2020-08-21 20:55:22 ERROR 404: Not Found.

---

<div class="post-metadata">

**Author:** ![nedbat](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/nedbat/32/3317_2.png) [@nedbat](https://discuss.openedx.org/u/nedbat)\
**Post date:** [August 22, 2020, 2:02am UTC](https://discuss.openedx.org/t/error-installing-open-edx-on-ubuntu-20-04/2988/8 "2020-08-22T02:02:05Z")

</div>

If you look at the URL in the wget output, you can see that it is missing the $OPENEDX\_RELEASE value:

> [https://raw.githubusercontent.com/edx/configuration//util/install/native.sh](https://raw.githubusercontent.com/edx/configuration//util/install/native.sh)

I don’t know how you defined it, but it’s not being found in this step.

---

<div class="post-metadata">

**Author:** ![pietes](https://avatars.discourse-cdn.com/v4/letter/p/85e7bf/32.png) [@pietes](https://discuss.openedx.org/u/pietes)\
**Post date:** [August 22, 2020, 3:30pm UTC](https://discuss.openedx.org/t/error-installing-open-edx-on-ubuntu-20-04/2988/9 "2020-08-22T15:30:45Z")

</div>

Re ran it again same error.

wget [https://raw.githubusercontent.com/edx/configuration/$OPENEDX\_RELEASE/util/install/native.sh](https://raw.githubusercontent.com/edx/configuration/%24OPENEDX_RELEASE/util/install/native.sh) -O - | bash

–2020-08-21 22:59:03-- [https://raw.githubusercontent.com/edx/configuration/the-tag/open-release/juniper.2/util/install/native.sh](https://raw.githubusercontent.com/edx/configuration/the-tag/open-release/juniper.2/util/install/native.sh)

Resolving [raw.githubusercontent.com](http://raw.githubusercontent.com) ([raw.githubusercontent.com](http://raw.githubusercontent.com))… 151.101.204.133

Connecting to [raw.githubusercontent.com](http://raw.githubusercontent.com) ([raw.githubusercontent.com](http://raw.githubusercontent.com))|151.101.204.133|:443… connected.

HTTP request sent, awaiting response… 404 Not Found

2020-08-21 22:59:03 ERROR 404: Not Found.

---

<div class="post-metadata">

**Author:** ![pietes](https://avatars.discourse-cdn.com/v4/letter/p/85e7bf/32.png) [@pietes](https://discuss.openedx.org/u/pietes)\
**Post date:** [August 22, 2020, 3:58pm UTC](https://discuss.openedx.org/t/error-installing-open-edx-on-ubuntu-20-04/2988/10 "2020-08-22T15:58:44Z")

</div>

Rebooted the server and re-ran step 1 then step 5 and it worked

---

<div class="post-metadata">

**Author:** ![nedbat](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/nedbat/32/3317_2.png) [@nedbat](https://discuss.openedx.org/u/nedbat)\
**Post date:** [August 27, 2020, 8:48pm UTC](https://discuss.openedx.org/t/error-installing-open-edx-on-ubuntu-20-04/2988/11 "2020-08-27T20:48:20Z")

</div>

Split this topic on August 27, 2020, 8:48pm UTC

A post was split to a new topic: [Install failure during “edxlocal: create databases”](https://discuss.openedx.org/t/install-failure-during-edxlocal-create-databases/3101)

---

<div class="post-metadata">

**Author:** ![Sandesh\_Yadav](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/sandesh_yadav/32/880_2.png) [@Sandesh\_Yadav](https://discuss.openedx.org/u/Sandesh_Yadav)\
**Post date:** [December 1, 2020, 5:04pm UTC](https://discuss.openedx.org/t/error-installing-open-edx-on-ubuntu-20-04/2988/12 "2020-12-01T17:04:33Z")

</div>

@pietes Were you finally able to run it on Ubuntu 20.04 or 16.04?
