What Steps need to be Done after Successfully Install of Native edx (Need Help)

135 views
Skip to first unread message

Deep

unread,
Oct 30, 2018, 12:06:30 PM10/30/18
to Open edX operations
Hi All,

Can any body please tell me how to fix CSS issue after successfully installation of native edx (hawthorn.master) on Ubuntu 16.

Attach with this post is the screen-shot of landing page with distorted CSS. 

i had done following Steps to install Open Edx as a native installation on Ubuntu 16.

sudo apt-get update -y
sudo apt-get upgrade -y
sudo reboot

export OPENEDX_RELEASE=open-release/hawthorn.master

sudo /edx/bin/supervisorctl status 
#All 20 process are running.

cd ~
pip install -U Paver
pip install watchdog
source /edx/app/edxapp/edxapp_env
cd /edx/app/edxapp/edx-platform  
paver update_assets cms --settings=aws
paver update_assets lms --settings=aws
sudo reboot

Still css are not loading

landing-page.png

Yafet Getachew

unread,
Oct 31, 2018, 7:15:03 AM10/31/18
to opene...@googlegroups.com
It's a static assets compilation problem or an ownership problem. Make sure your assets directory is owned by edxapp:www-data I believe. And also check if the
paver update_assets lms --settings=aws command goes through without any problems. If that won't fix it try applying the stanford theme with comprehensive theming enabled. 

--
You received this message because you are subscribed to the Google Groups "Open edX operations" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openedx-ops...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openedx-ops/a76378b7-39d6-4f6c-94ef-bc542c5961b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Deep

unread,
Nov 2, 2018, 4:25:10 AM11/2/18
to Open edX operations
Hi Yafet,

I follow steps mentioned in


After i finish sudo reboot  (mentioned in my previous above post)

i downloaded the theme from blog.lawrencemcdaniel.com and renamed as custom-theme
and copy & pasted in folder /edx/app/edxapp/edx-platform/themes/

then change following parameters in lms.env.json

ENABLE_COMPREHENSIVE_THEMING = true
COMPREHENSIVE_THEME_DIRS = "/edx/app/edxapp/edx-platform/themes"
DEFAULT_SITE_THEME = "custom-theme"

Then Run following commands

sudo -H -u edxapp bash
source /edx/app/edxapp/edxapp_env
cd /edx/app/edxapp/edx-platform
paver update_assets lms --settings=aws

/edx/bin/supervisorctl restart lms
/edx/bin/supervisorctl restart cms
/edx/bin/supervisorctl restart edxapp_worker:

But still CSS is distorted, but some how i can see the HTML text changes. I just change some txt in /themes/custom-theme/lms/template/index.html and can see the changed content reflection after browser refresh.

But still looking for a Theme of good appearance for hawthorn version.



Yafet Getachew

unread,
Nov 2, 2018, 7:58:34 AM11/2/18
to opene...@googlegroups.com
I assume you ran
chown edxapp -R edxapp:edxapp edx.custom-theme

but also Lawrence's custom theme doesn't have any styling files ".scss" so I don't know what the effect of not having any might be (but something worth looking into). And also, where did you get these steps from:
pip install -U Paver
pip install watchdog

I don't believe that you should've installed paver and watchdog since openedx requires specific versions and those versions are already installed by the third script you ran in the beginning (when installing edx).






--
You received this message because you are subscribed to the Google Groups "Open edX operations" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openedx-ops...@googlegroups.com.

Deep

unread,
Nov 4, 2018, 1:39:34 AM11/4/18
to Open edX operations
Hi Yafet,

i did n't run chown edxapp -R edxapp:edxapp edx.custom-theme . i will try it.

regarding Paver & watchdog, it was throwing no module found error while running paver update_assets lms , so i had to run pip install paver. Once installation is finish paver update_assets lms  works fine.

But today i tried to install ginkgo version on a fresh VM and voilà, it installs successfully with no css issue. May be there is an issue with hawthorn version for first time installation.
Ginkgo.png

Mahyar Damavand

unread,
Nov 5, 2018, 1:16:20 AM11/5/18
to opene...@googlegroups.com
Hi Deep,
open edx native installation is an automated process which itself installs everything open edx needs to work permanently.
So I think your server had not any trouble and worked fine until you tried to enable the comprehensive theming. (assume your installation finished  with no failure)
Now if you need to recompile assets manually you must change your current user to edxapp. (assume that you did not change the default file's ownership)
Managing OpenEdX Tips and Tricks is a very useful document for you (bookmark it!) and also it has described how you can compile assets yourself.

have a good day,

--
You received this message because you are subscribed to the Google Groups "Open edX operations" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openedx-ops...@googlegroups.com.

Deep

unread,
Nov 5, 2018, 1:34:49 AM11/5/18
to Open edX operations
Hi Mahyar,

I was facing distorted CSS issue in Hawthorn master version which i installed in one of my VMs. For Ginkgo installation in another VM, its smooth , even i change to a comprehensive theme (https://github.com/raccoongang/themes_for_themex.io/tree/marvel-theme-ginkgo)  no issues. 

So i am exploring both version, as i am new to edx platform, will take some time for me to understand the whole platform.

Thanks for your concern. 
Reply all
Reply to author
Forward
0 new messages