open edX fullstack - Unable to locate server-vars.yml

1,491 views
Skip to first unread message

Prashant Singh

unread,
Nov 24, 2015, 6:30:50 AM11/24/15
to Open edX operations
Hi,

We have open edX fullstack (vagrant) running on our localhost.
We're trying to install 'problem-builder' XBlock.
This is our first time XBlock installation.

Official doc page instructs to Allow All Advanced Components (first time only)

Custom XBlocks are not allowed by default, you need to update settings.
Like all platform settings, you can either write inside /edx/app/edx_ansible/server-vars.yml and update the platform to generate the custom settings files.


But we are unable to locate server-vars.yml in directory path /edx/app/edx_ansible/  (screenshot attach of ls command)
Also, while manually editing /edx/app/edxapp/cms.env.json, system gives warning: Warning: Changing a readonly file

Kindly help us to know what is wrong with our server-vars.yml file location and how to edit cms.env.json

Thanking you. 
-Prashant.
Screenshot from 2015-11-24 16_35_23.png

Sven Marnach

unread,
Nov 24, 2015, 6:46:55 AM11/24/15
to openedx-ops
You should add this setting under "FEATURES" in both
/edx/app/edxapp/cms.env.json and /edx/app/edxapp/lms.env.json:

"ALLOW_ALL_ADVANCED_COMPONENTS": true

(or change the value to true if the setting is already there). The
files should be editable with any editor, e.g. nano, executed as user
"edxapp". After making the change, restart the servers using

sudo /edx/bin/supervisorctl restart edxapp:*

executed as a user with sudo permissions (usually the user you log in
as, not sure whether it is "ubuntu" or "vagrant" or yet something
else).

Cheers,
--
Sven
@OpenCraft


On 24 November 2015 at 12:22, Prashant Singh
> --
> 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/e26dfb8a-a43c-4ca5-9c47-7b70133bc3c2%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

LIubov Fomicheva

unread,
Nov 25, 2015, 4:04:05 AM11/25/15
to Open edX operations
Hello Prashant,

Server-vars file is optional for edX installation since it contains your private installation settings (passwords, etc). You may add it yourself, a good example is given by Trinh Nguen: http://www.dangtrinh.com/2014/05/edx-platform-server-varsyaml-variables.html

Liubov

Prashant Singh

unread,
Nov 26, 2015, 12:36:00 AM11/26/15
to Open edX operations
Hi,

Thank you for your help.

We're able to add "allow advanced component" setting both in cms/lms.env.json files by opening them using sudo.

After restarting server, we set Settings -> Advanced Settings -> advanced_modules -> ["problem-builder"].

However, in our unit, upon clicking Advanced tab, problem-builder is not showing up.

Have we missed something else. Kindly help.

Thanking you.
-Prashant

Xavier Antoviaque

unread,
Nov 26, 2015, 8:07:42 AM11/26/15
to opene...@googlegroups.com
Hi,
 
Is problem-builder installed in the edxapp virtualenv? And did you run the migrations & restart Studio & the LMS after installing or reinstalling it?
 
--
Xavier

Prashant Singh

unread,
Nov 26, 2015, 11:12:22 PM11/26/15
to Open edX operations
Hi,

Yes, after editing cms.env.json and lms.env.json files, we executed following commands to install problem-builder as per doc:
cd /edx/app/edxapp
sudo -u edxapp git clone https://github.com/open-craft/problem-builder.git
sudo -u edxapp /edx/bin/pip.edxapp install problem-builder/
sudo rm -r problem-builder

Then restarted server using:

sudo /edx/bin/supervisorctl restart edxapp:*

And yes, we haven't run the migrations as we don't know how to do it. 

Pls let us know if we are still missing something.

Thanks.
-Prashant.

Prashant Singh

unread,
Nov 27, 2015, 6:17:27 AM11/27/15
to Open edX operations
oh yes, found how to run migrations here..

sudo su edxapp -s /bin/bash
cd ~
source edxapp_env
python /edx/app/edxapp/edx-platform/manage.py cms syncdb --migrate --settings=aws
python /edx/app/edxapp/edx-platform/manage.py lms syncdb --migrate --settings=aws

Then restarted server using: 
  • sudo /edx/bin/supervisorctl restart edxapp:
  • sudo /edx/bin/supervisorctl restart edxapp_worker:

But still 'problem-builder is not showing up'.   

:(
Reply all
Reply to author
Forward
0 new messages