# Build failed - customised theme

**URL:** <https://discuss.openedx.org/t/build-failed-customised-theme/852>\
**Category:** Site Operations Help\
**Created:** [November 14, 2019, 11:31am UTC](https://discuss.openedx.org/t/build-failed-customised-theme/852 "2019-11-14T11:31:18Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Melsu](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/melsu/32/1978_2.png) [@Melsu](https://discuss.openedx.org/u/Melsu)\
**Post date:** [November 14, 2019, 11:31am UTC](https://discuss.openedx.org/t/build-failed-customised-theme/852/1 "2019-11-14T11:31:18Z")

</div>

Hello community

I got my lms and cms running.

I have started reading about functionalities and how to enable them or use them. This is firsthand experience and very exciting even though i am failing repeatedly only to succeed at last and make a note of which method work for me without deviation from the guidelines. However one failure has made me miserable for over 48 hours🙄 ever since i got hands on lms i am trying to customise theme. So what i am doing here is I have taken chosen a theme from one git repository and tried applying it. I did clone theme in appropriate directory i run chown and chgrp commands i modified lms.env.json as documented. I bash the user sudo virtual environment and update the assets to execute the task. It fails me with an error shown below

build failed running pavelib.assets.update\_assets subprocess return code 1

Then i did tried reading online about it but did not understand much.

At this point I did try this repeatedly for about 6 to 7 times then tried different repository of bootstrap theme which also failed then i realised it was 3 year old theme could be something wrong with it (i do not think there is something wrong with theme though) then i tried raccoon gang theme which failed i then tried one of inbuilt theme which worked fine to me and again failed with Simple theme by open craft.

So there seems something is wrong somewhere please assist how do i go about this one?

---

<div class="post-metadata">

**Author:** ![Terry](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/terry/32/340_2.png) [@Terry](https://discuss.openedx.org/u/Terry)\
**Post date:** [November 14, 2019, 12:18pm UTC](https://discuss.openedx.org/t/build-failed-customised-theme/852/2 "2019-11-14T12:18:15Z")

</div>

@Melsu Hie, have u checked your logs? and did you make the correct changes in the env.json files…theme path etc…?

---

<div class="post-metadata">

**Author:** ![Melsu](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/melsu/32/1978_2.png) [@Melsu](https://discuss.openedx.org/u/Melsu)\
**Post date:** [November 14, 2019, 12:38pm UTC](https://discuss.openedx.org/t/build-failed-customised-theme/852/3 "2019-11-14T12:38:28Z")

</div>

No i am not aware how do i check logs please let me know. I will follow the procedures go through logs and also publish here for further reference. While i run update assets it returns log of beyond 300 to 350 lines is it worth posting here? Is there a way to download that entire output in some file format and update here?

Regards

---

<div class="post-metadata">

**Author:** ![Terry](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/terry/32/340_2.png) [@Terry](https://discuss.openedx.org/u/Terry)\
**Post date:** [November 14, 2019, 12:42pm UTC](https://discuss.openedx.org/t/build-failed-customised-theme/852/4 "2019-11-14T12:42:28Z")

</div>

try to check in your edx/var/log/lms

---

<div class="post-metadata">

**Author:** ![Terry](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/terry/32/340_2.png) [@Terry](https://discuss.openedx.org/u/Terry)\
**Post date:** [November 14, 2019, 12:44pm UTC](https://discuss.openedx.org/t/build-failed-customised-theme/852/5 "2019-11-14T12:44:22Z")

</div>

@Melsu what changes have you made in your lms.env.json file?

---

<div class="post-metadata">

**Author:** ![Melsu](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/melsu/32/1978_2.png) [@Melsu](https://discuss.openedx.org/u/Melsu)\
**Post date:** [November 14, 2019, 12:52pm UTC](https://discuss.openedx.org/t/build-failed-customised-theme/852/6 "2019-11-14T12:52:25Z")

</div>

I have made exactly 3 changes using sudo vi lms.env.json

1. theme directory set to “/edx/app/edxapp/edx-platform/themes”  
(In bitnami stack i had seen two different directories mime has only one)

2. theme name - set theme folder tnder the directory

3. enable comprehensive theming is set true.

---

<div class="post-metadata">

**Author:** ![Terry](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/terry/32/340_2.png) [@Terry](https://discuss.openedx.org/u/Terry)\
**Post date:** [November 14, 2019, 1:07pm UTC](https://discuss.openedx.org/t/build-failed-customised-theme/852/7 "2019-11-14T13:07:58Z")

</div>

make sure your theme directory points to your custom theme,  
theme name = name of your custom theme

---

<div class="post-metadata">

**Author:** ![Terry](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/terry/32/340_2.png) [@Terry](https://discuss.openedx.org/u/Terry)\
**Post date:** [November 14, 2019, 1:08pm UTC](https://discuss.openedx.org/t/build-failed-customised-theme/852/8 "2019-11-14T13:08:32Z")

</div>

follow this article [https://blog.lawrencemcdaniel.com/open-edx-custom-theming-tutorial/](https://blog.lawrencemcdaniel.com/open-edx-custom-theming-tutorial/) by @lpm0073

---

<div class="post-metadata">

**Author:** ![Melsu](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/melsu/32/1978_2.png) [@Melsu](https://discuss.openedx.org/u/Melsu)\
**Post date:** [November 14, 2019, 1:13pm UTC](https://discuss.openedx.org/t/build-failed-customised-theme/852/9 "2019-11-14T13:13:55Z")

</div>

I followed exact same blog and instructions 😃 that log file is very huge i will send create another instance and send you log however i see one msg Reoccurring 1000s of time 🤯😵

6] - consumer: Cannot connect to amqp://celery:\*\*@127.0.0.1:5672//: [Errno 104] Connection reset by peer.  
Trying again in 8.00 seconds…

Can you explain what this is?

---

<div class="post-metadata">

**Author:** ![Terry](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/terry/32/340_2.png) [@Terry](https://discuss.openedx.org/u/Terry)\
**Post date:** [November 14, 2019, 1:22pm UTC](https://discuss.openedx.org/t/build-failed-customised-theme/852/10 "2019-11-14T13:22:34Z")

</div>

seems to be a celery issue,check this article [https://blog.lawrencemcdaniel.com/open-edx-trouble-shooting-celery-rabbitmq/](https://blog.lawrencemcdaniel.com/open-edx-trouble-shooting-celery-rabbitmq/)

---

<div class="post-metadata">

**Author:** ![Melsu](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/melsu/32/1978_2.png) [@Melsu](https://discuss.openedx.org/u/Melsu)\
**Post date:** [November 14, 2019, 1:48pm UTC](https://discuss.openedx.org/t/build-failed-customised-theme/852/11 "2019-11-14T13:48:57Z")

</div>

Will this fix build fail issues as well or they appear to be different from each other?

As i found out the error I started looking around and i am in luck i have already started reading the blogpost mentioned in your comment.

However what i am planning is this

1. instance set up
2. production set up as explained by Lawrence McDaniel
3. theme customisation
4. understanding various components beyond lms and cms for ref ecommerce and making proper connections among them
5. learning administration role
6. exploring analytics
7. assessing my server requirements.
8. meanwhile building 2 cources for 4 weeks each. For the audience of University size.

Am i going in the right direction?

I think task 4 could become a challenge as of now i greatly fear what if I skip a step for eg celery right now.

I have installtion and config official guide downloaded from atlassian will it cover all the requirements to have stable error free production unit or do you advice additional read?

Regards

---

<div class="post-metadata">

**Author:** ![Melsu](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/melsu/32/1978_2.png) [@Melsu](https://discuss.openedx.org/u/Melsu)\
**Post date:** [November 14, 2019, 11:54pm UTC](https://discuss.openedx.org/t/build-failed-customised-theme/852/12 "2019-11-14T23:54:54Z")

</div>

@Terry

Thanks for bringing log file to my notice. Celery issues are sorted. However theme did not work.

I have cloned below repo

[https://github.com/sujitpatel90/edx-simple-theme.git](https://github.com/sujitpatel90/edx-simple-theme.git)

I have followed these instructions as given in below blogpost

> **[Open edX Custom Theming Tutorial - Lawrence McDaniel](https://blog.lawrencemcdaniel.com/open-edx-custom-theming-tutorial/)**
>
> Get started on the most common Open edX Comprehensive Theming tasks like a custom header, footer, logo and adding your Google Analytics tracking code.

It failed while recompiling assets.

Error log is as below

Nov 14 23:30:03 ip-172-31-33-176 [service\_variant=lms][openedx.core.lib.log\_utils][env:sandbox] INFO [ip-172-31-33-176 2789] [log\_utils.py:36] - ApiKeyHeaderPermission used: ip=“127.0.0.1”, path="/notifier\_api/v1/users/"  
Nov 14 23:30:03 ip-172-31-33-176 [service\_variant=lms][py.warnings][env:sandbox] WARNING [ip-172-31-33-176 2789] [paginator.py:119] - /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest\_framework/pagination.py:208: UnorderedObjectListWarning: Pagination may yield inconsistent results with an unordered object\_list: \<class ‘django.contrib.auth.models.User’\> QuerySet.  
paginator = self.django\_paginator\_class(queryset, page\_size)  
Nov 14 23:35:03 ip-172-31-33-176 [service\_variant=lms][openedx.core.lib.log\_utils][env:sandbox] INFO [ip-172-31-33-176 2820] [log\_utils.py:36] - ApiKeyHeaderPermission used: ip=“127.0.0.1”, path="/notifier\_api/v1/users/"  
Nov 14 23:35:03 ip-172-31-33-176 [service\_variant=lms][py.warnings][env:sandbox] WARNING [ip-172-31-33-176 2820] [paginator.py:119] - /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest\_framework/pagination.py:208: UnorderedObjectListWarning: Pagination may yield inconsistent results with an unordered object\_list: \<class ‘django.contrib.auth.models.User’\> QuerySet.  
paginator = self.django\_paginator\_class(queryset, page\_size)

---

<div class="post-metadata">

**Author:** ![jramnai](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/jramnai/32/87_2.png) [@jramnai](https://discuss.openedx.org/u/jramnai)\
**Post date:** [November 15, 2019, 5:36am UTC](https://discuss.openedx.org/t/build-failed-customised-theme/852/13 "2019-11-15T05:36:33Z")

</div>

hi @Melsu,

Please check [this](https://discuss.openedx.org/t/setup-to-develop-a-custom-theme-in-devstack/221) conversation, you will get some insights from it.

And if you want to change color in your theme then there is no need to clone any theme inside your platform instead you can create your own.

If you have no idea how to create new them then you can take reference of [red-theme](https://github.com/edx/edx-platform/tree/open-release/ironwood.master/themes/red-theme).

Create your own theme like red-theme, for example, my-theme and then pass this name in your lms.env.json file like this  
`DEFAULT_SITE_THEME = ‘my-theme’`

Update your assets and then restart your services.

If you want to change color of the platform then you can simply change a variable in [this file](https://github.com/edx/edx-platform/blob/open-release/ironwood.master/themes/red-theme/lms/static/sass/partials/lms/theme/_variables.scss#L11) and you are good to go.

---

<div class="post-metadata">

**Author:** ![jramnai](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/jramnai/32/87_2.png) [@jramnai](https://discuss.openedx.org/u/jramnai)\
**Post date:** [November 15, 2019, 5:44am UTC](https://discuss.openedx.org/t/build-failed-customised-theme/852/14 "2019-11-15T05:44:19Z")

</div>

These are not error logs, they are just INFO and WARNING

---

<div class="post-metadata">

**Author:** ![Melsu](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/melsu/32/1978_2.png) [@Melsu](https://discuss.openedx.org/u/Melsu)\
**Post date:** [November 15, 2019, 7:24am UTC](https://discuss.openedx.org/t/build-failed-customised-theme/852/15 "2019-11-15T07:24:14Z")

</div>

So the idea is to understand the process of doing tasks. Assessing what method works best, atleast for the particular instance. I have set the red theme [edge.edx.org](http://edge.edx.org) theme and also the [edx.org](http://edx.org) they work perfectly fine. This simple thime in discuss aka edx simple theme is from open craft what it does is unifies the colour scheme across the platform and gives nice feel to the entire platform compared to changing variable that’s not global in inbuilt theme. If this works i intend to start making UI by rendering my own images logos etc. Which i believe should provide a good starting point. Hope that clarifies.

---

<div class="post-metadata">

**Author:** ![Melsu](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/melsu/32/1978_2.png) [@Melsu](https://discuss.openedx.org/u/Melsu)\
**Post date:** [November 15, 2019, 8:04am UTC](https://discuss.openedx.org/t/build-failed-customised-theme/852/16 "2019-11-15T08:04:36Z")

</div>

However so that everyone knows i haven’t done configuration post setting up the sandbox except celery. I don’t think so even my django admin consol is connected to my platform. I can use the port to get to my django admin but it’s totally empty.
