problem-builder xblock not showing up in fullstack

1,123 views
Skip to first unread message

Prashant Singh

unread,
Dec 16, 2015, 6:44:46 AM12/16/15
to Open edX operations
Hi,

I, earlier too had problem installing problem-builder xblock

Today I tried installing oppia and problem-builder xblock from this documentation in devstack and succeeded. Both problem-builder and oppia were showing in Advanced tab inside unit.

However, when re-tried installing both oppia and problem-builder in fullstack using this documentation, only oppia was showing up in Advanced tab, problem-builder was again not showing up. (see attached screenshot)

I cannot figure out what I'm still missing.

We are struggling in installing it from a very long time and any help would be greatly appreciated.

Thanks.
-Prashant


PS:

FYKI, below are commands I executed:

vagrant@precise64:~$ cd /edx/app/edxapp
vagrant@precise64
:/edx/app/edxapp$ sudo -u edxapp git clone https://github.com/open-craft/problem-builder.git
vagrant@precise64
:/edx/app/edxapp$ sudo -u edxapp /edx/bin/pip.edxapp install problem-builder/


Output of above install command:

Processing ./problem-builder
Requirement already satisfied (use --upgrade to upgrade): XBlock in ./venvs/edxapp/src/xblock (from xblock-problem-builder==2.0)
Requirement already satisfied (use --upgrade to upgrade): xblock-utils in ./venvs/edxapp/src/xblock-utils (from xblock-problem-builder==2.0)
Requirement already satisfied (use --upgrade to upgrade): lxml in ./venvs/edxapp/lib/python2.7/site-packages (from XBlock->xblock-problem-builder==2.0)
Requirement already satisfied (use --upgrade to upgrade): markupsafe in ./venvs/edxapp/lib/python2.7/site-packages (from XBlock->xblock-problem-builder==2.0)
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in ./venvs/edxapp/lib/python2.7/site-packages (from XBlock->xblock-problem-builder==2.0)
Requirement already satisfied (use --upgrade to upgrade): pytz in ./venvs/edxapp/lib/python2.7/site-packages (from XBlock->xblock-problem-builder==2.0)
Requirement already satisfied (use --upgrade to upgrade): webob in ./venvs/edxapp/lib/python2.7/site-packages (from XBlock->xblock-problem-builder==2.0)
Requirement already satisfied (use --upgrade to upgrade): six in ./venvs/edxapp/lib/python2.7/site-packages (from python-dateutil->XBlock->xblock-problem-builder==2.0)
Installing collected packages: xblock-problem-builder
 
Running setup.py install for xblock-problem-builder
Successfully installed xblock-problem-builder-2.0


Finally, rebooted using: 
vagrant@precise64:/edx/app/edxapp$ sudo /edx/bin/supervisorctl restart edxapp:*

Then changed  Settings -> Advanced Settings and set advanced_modules to
[
   
"annotatable",
   
"videoalpha",
   
"openassessment",
   
"oppia",
   
"problem-builder",
   
"step-builder"
]


Screenshot from 2015-12-16 16:50:33.png

Xavier Antoviaque

unread,
Dec 17, 2015, 1:36:26 AM12/17/15
to opene...@googlegroups.com
Hi Prashant,
 
Do you have any error messages in the logs when you restart the CMS and load a page?
 
Without the error message it's hard to say for sure, but have you run the migrations on your fullstack box, after installing it there? Devstack does it automatically on server start, but not fullstack - that could be a cause.
 
--
Xavier
 
On Wed, Dec 16, 2015, at 12:44, Prashant Singh wrote:
Hi,
 
I, earlier too had problem installing problem-builder xblock
 
Today I tried installing oppia and problem-builder xblock from this documentation in devstack and succeeded. Both problem-builder and oppia were showing in Advanced tab inside unit.
 
However, when re-tried installing both oppia and problem-builder in fullstack using this documentation, only oppia was showing up in Advanced tab, problem-builder was again not showing up. (see attached screenshot)
 
I cannot figure out what I'm still missing.
 
We are struggling in installing it from a very long time and any help would be greatly appreciated.
 
Thanks.
-Prashant
 
 
PS:
 
FYKI, below are commands I executed:
 

vagrant@precise64:~$ cd /edx/app/edxapp
vagrant@precise64
:/edx/app/edxapp$ sudo -u edxapp git clone https://github.com/open-craft/problem-builder.git
vagrant@precise64
:/edx/app/edxapp$ sudo -u edxapp /edx/bin/pip.edxapp install problem-builder/

 
 
Output of above install command:
 

Processing./problem-builder
Requirement already satisfied (use--upgrade to upgrade):XBlockin./venvs/edxapp/src/xblock (from xblock-problem-builder==2.0)
Requirement already satisfied (use--upgrade to upgrade): xblock-utils in./venvs/edxapp/src/xblock-utils (from xblock-problem-builder==2.0)
Requirement already satisfied (use--upgrade to upgrade): lxml in./venvs/edxapp/lib/python2.7/site-packages (fromXBlock->xblock-problem-builder==2.0)
Requirement already satisfied (use--upgrade to upgrade): markupsafe in./venvs/edxapp/lib/python2.7/site-packages (fromXBlock->xblock-problem-builder==2.0)
Requirement already satisfied (use--upgrade to upgrade): python-dateutil in./venvs/edxapp/lib/python2.7/site-packages (fromXBlock->xblock-problem-builder==2.0)
Requirement already satisfied (use--upgrade to upgrade): pytz in./venvs/edxapp/lib/python2.7/site-packages (fromXBlock->xblock-problem-builder==2.0)
Requirement already satisfied (use--upgrade to upgrade): webob in./venvs/edxapp/lib/python2.7/site-packages (fromXBlock->xblock-problem-builder==2.0)
Requirement already satisfied (use--upgrade to upgrade): six in./venvs/edxapp/lib/python2.7/site-packages (from python-dateutil->XBlock->xblock-problem-builder==2.0)

Installing collected packages: xblock-problem-builder
Running setup.py install for xblock-problem-builder
Successfully installed xblock-problem-builder-2.0
 
Finally, rebooted using: 

vagrant@precise64:/edx/app/edxapp$ sudo /edx/bin/supervisorctl restart edxapp:*

 
Then changed Settings -> Advanced Settings and set advanced_modules to

[
"annotatable",
"videoalpha",
"openassessment",
"oppia",
"problem-builder",
"step-builder"
]

 
 


--
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.
For more options, visit https://groups.google.com/d/optout.

Email had 1 attachment:

  • Screenshot from 2015-12-16 16:50:33.png
      33k (image/png)
 

Prashant Singh

unread,
Dec 17, 2015, 5:42:54 AM12/17/15
to Open edX operations
Hi Xavier, 

Thank you for your reply. 

Yes, /edx/var/log/cms/edx.log is showing some errors related to problem-builder. I've attached snippet of that log file. 

Running migration using below commands 

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



gave following FATAL_ERROR related to problem_builder:

Running migrations for problem_builder:
 
- Migrating forwards to 0003_auto__add_share__add_unique_share_shared_by_shared_with_block_id.
 
> problem_builder:0001_initial
 
> problem_builder:0002_copy_from_mentoring
 
- Migration 'problem_builder:0002_copy_from_mentoring' is marked for no-dry-run.
FATAL ERROR
- The following SQL query failed: INSERT INTO problem_builder_answer (name, student_id, course_id, student_input, created_on, modified_on ) SELECT name, student_id, course_id, student_input, created_on, modified_on FROM mentoring_answer
The error was: (1146, "Table 'edxapp.mentoring_answer' doesn't exist")
 
- Seems like mentoring_answer does not exist. No data migration needed.
 
> problem_builder:0003_auto__add_share__add_unique_share_shared_by_shared_with_block_id
 
- Loading initial data for problem_builder.
Installed 0 object(s) from 0 fixture(s)

edx.log

Xavier Antoviaque

unread,
Dec 18, 2015, 1:42:35 AM12/18/15
to opene...@googlegroups.com
Hi Prashant,
 
That only shows because you don't have data to migrate - it seem to have been able to proceed with the other migrations. Have you tried restarting the server and trying to use the block again, now that the migrations have run?
 
--
Xavier
 
On Thu, Dec 17, 2015, at 11:42, Prashant Singh wrote:
Hi Xavier, 
 
Thank you for your reply. 
 
Yes, /edx/var/log/cms/edx.log is showing some errors related to problem-builder. I've attached snippet of that log file. 
 
Running migration using below commands 
 

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

 
gave following FATAL_ERROR related to problem_builder:
 

Running migrations for problem_builder:
-Migrating forwards to 0003_auto__add_share__add_unique_share_shared_by_shared_with_block_id.

> problem_builder:0001_initial
> problem_builder:0002_copy_from_mentoring
-Migration'problem_builder:0002_copy_from_mentoring'is marked forno-dry-run.

FATAL ERROR
-The following SQL query failed: INSERT INTO problem_builder_answer (name, student_id, course_id, student_input, created_on, modified_on ) SELECT name, student_id, course_id, student_input, created_on, modified_on FROM mentoring_answer
The error was:(1146,"Table 'edxapp.mentoring_answer' doesn't exist")
-Seems like mentoring_answer does not exist.No data migration needed.

> problem_builder:0003_auto__add_share__add_unique_share_shared_by_shared_with_block_id
-Loading initial data for problem_builder.
Installed0object(s)from0 fixture(s)

 
For more options, visit https://groups.google.com/d/optout.

Email had 1 attachment:

  • edx.log
      445k (application/octet-stream)
 

Prashant Singh

unread,
Dec 19, 2015, 11:18:27 AM12/19/15
to Open edX operations
Hi Xavier, 

Thank you for replying.

As far I remember, we restarted the server, however I'm not fully confirmed. I will do it once more. 

But it is weekend here and I don't have access to server as it is on localhost. So, I will be able to update you on Monday. 

Till then have a nice time!!  :)

Prashant Singh

unread,
Dec 20, 2015, 11:28:02 PM12/20/15
to Open edX operations
Hi,

So, today I restarted the server using all below: 

sudo
/edx/bin/supervisorctl restart edxapp:
sudo
/edx/bin/supervisorctl restart edxapp_worker:

sudo
/edx/bin/supervisorctl restart edxapp:*

Still, problem-builder isn't showing up. 
...

Prashant Singh

unread,
Dec 23, 2015, 1:22:16 AM12/23/15
to Open edX operations
Hi Xavier,

After trying multiple times to install problem-builder, I was wondering whether my edX installation was not set up properly or was something missing from problem-builder xblock.

I thought may be I was not following up correct process. So, I decided to give try to install other XBlocks. To my surprise all xblocks get installed in single shot .. there was no need to run migrations, simple server restart did the job.. (see attached screenshot of installed xblocks)

I'm still wondering what is going wrong with our problem-builder installation?

When I opened other xblock's setup.py files, I noticed entry_point of each setup file have their respective xblock name e.g.

entry_points={
       
'xblock.v1': [
           
'personalitytest = personalitytest.personalitytestblock:PersonalityTestXBlock',
       
]


entry_points
={
       
'xblock.v1': [
           
'poll = poll:PollBlock',
           
'survey = poll:SurveyBlock',
       
]


entry_points
={
       
'xblock.v1': [
           
'google-document = google_drive:GoogleDocumentBlock',
           
'google-calendar = google_drive:GoogleCalendarBlock'
       
]



But this was not the case with problem-builder:


entry_points={
       
'xblock.v1': BLOCKS,
   
}



(Though I'm not open edX programmer) I was thinking is this is the reason for problem-builder not showing up in advanced tab despite successful installation showing up in terminal?

Our main reason to use problem-builder is to use Free-form answers & Answer recaps which are not part of default edx distribution.

Thanks.
-Prashant
...
Screenshot from 2015-12-22 16_53_58.png
Screenshot from 2015-12-22 17_06_22.png

Prashant Singh

unread,
Dec 28, 2015, 2:07:18 AM12/28/15
to Open edX operations
Hi,

Though problem-builder successfully get installed in devstack and also showing up in advanced tab, the component we needed (Long answer a.k.a Free-form answers) is showing errors. Other components like 'Ranged Value Slider', 'HTML', 'Rating Question' etc. are working ok as expected. 

When I'm clicking on 'Long Answer' button, it is showing some table related error (screenshot attached)

Any clue on how to correct it.

Thanks.
-Prashant.


On Thursday, 17 December 2015 12:06:26 UTC+5:30, Xavier Antoviaque wrote:
On Thursday, 17 December 2015 12:06:26 UTC+5:30, Xavier Antoviaque wrote:
On Thursday, 17 December 2015 12:06:26 UTC+5:30, Xavier Antoviaque wrote:
On Thursday, 17 December 2015 12:06:26 UTC+5:30, Xavier Antoviaque wrote:
On Thursday, 17 December 2015 12:06:26 UTC+5:30, Xavier Antoviaque wrote:
On Thursday, 17 December 2015 12:06:26 UTC+5:30, Xavier Antoviaque wrote:
Error - Long Answer.png
problem builder - other question types.png

Xavier Antoviaque

unread,
Dec 28, 2015, 4:42:00 AM12/28/15
to opene...@googlegroups.com
Hi Prashant,
 
The error you're showing on the screenshot is that the table "problem_builder_answer" doesn't exist - however, from an earlier message in this thread, you ran the migration that created this table, and it seemed to have been able to create it at the time. Was it on the same instance? Did you make any changes to the database in the meantime?
 
--
Xavier
For more options, visit https://groups.google.com/d/optout.

Email had 2 attachments:

  • Error - Long Answer.png
      216k (image/png)
  • problem builder - other question types.png
      198k (image/png)
 

Prashant Singh

unread,
Dec 28, 2015, 4:58:03 AM12/28/15
to Open edX operations
Hi Xavier,

The error I'm showing is of devstack.

Migrations and table created by it, which I talked about in earlier message, was ran on fullstack. 

As per my knowledge, devstack and fullstack both are separate instances, right?

In our fullstack, problem-builder is still not showing up in Advanced tab. 

So, in nutshell, we are now facing two different problems:

1.) In fullstack - problem-builder xblock is not showing up in Advanced tab.
2.) In devstack - though problem-builder is showing up in Advanced tab, we are not able to use Long-Answer question.


-Prashant.
...

Xavier Antoviaque

unread,
Dec 28, 2015, 7:41:37 AM12/28/15
to opene...@googlegroups.com
Ok, that makes more sense.
 
For the devstack that has the error, it seem to be missing the migrations run.
 
For the fullstack, given the traceback it looks like you don't have the right version of xblock-utils - like for problem builder, try to uninstall the xblock-utils package via pip, and install the latest master from https://github.com/edx/xblock-utils - then restart the LMS&Studio.
 
Traceback (most recent call last):
  File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/plugin.py", line 144, in load_classes
    yield (class_.name, cls._load_class_entry_point(class_))
  File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/plugin.py", line 73, in _load_class_entry_point
    class_ = entry_point.load()
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2355, in load
    return self.resolve()
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2361, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/problem_builder/mcq.py", line 30, in <module>
    from .questionnaire import QuestionnaireAbstractBlock
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/problem_builder/questionnaire.py", line 32, in <module>
    from xblockutils.studio_editable import StudioEditableXBlockMixin, StudioContainerXBlockMixin, XBlockWithPreviewMixin
ImportError: cannot import name XBlockWithPreviewMixin
Dec 16 11:18:37 precise64 [service_variant=cms][xblock.plugin][env:sandbox] WARNING [precise64  11280] [plugin.py:147] - Unable to load XBlock 'sb-review-per-question-feedback'
 

Prashant Singh

unread,
Dec 31, 2015, 6:29:30 AM12/31/15
to Open edX operations
Hi Xavier,

Thank you for replying.

However, we would prefer to run commands manually at this moment as ours is not a live production server as of now and we are still in learning mode and not comfortable with advanced configuration like VMs swapping, ansible etc.

But, when I'm trying to uninstall xblock-utils using 'pip uninstall xblock-utils' from the edxapp virtual environment, I'm getting error that "Cannot uninstall requirement xblock-utils, not installed"

Now, I'm not sure whether xblock-utils is really not pre-installed in our machine or my conception of edxapp virtual environment is wrong. 

Also, this git page has not mentioned anything how to install xblock-utils

Should we use following from edxapp virtual environment or something else:
sudo -u edxapp git clone https://github.com/edx/xblock-utils.git
sudo  -u edxapp /edx/bin/pip.edxapp install xblock-utils/


Thanking you.
-Prashant. 


PS:
Output showing xblock-utils not installed:

vagrant@precise64:~$ sudo su edxapp -s /bin/bash
edxapp@precise64:/home/vagrant$ pip uninstall xblock-utils
Cannot uninstall requirement xblock-utils, not installed
Storing debug log for failure in /edx/app/edxapp/.pip/pip.
log

edxapp@precise64:~$ pip uninstall xblock-utils
Cannot uninstall requirement xblock-utils, not installed
Storing debug log for failure in /edx/app/edxapp/.pip/pip.
log

edxapp@precise64:~/edx-platform$ pip uninstall xblock-utils
Cannot uninstall requirement xblock-utils, not installed
Storing debug log for failure in /edx/app/edxapp/.pip/pip.
log

Output of pip.log

------------------------------------------------------------
/usr/local/bin/pip run on Thu Dec 31 08:34:35 2015
Cannot uninstall requirement xblock-utils, not installed
Exception information:

Traceback (most recent call last):

 
File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status
= self.run(options, args)
 
File "/usr/local/lib/python2.7/dist-packages/pip/commands/uninstall.py", line 59, in run
    requirement_set
.uninstall(auto_confirm=options.yes)
 
File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 1035, in uninstall
    req
.uninstall(auto_confirm=auto_confirm)
 
File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 505, in uninstall
   
raise UninstallationError("Cannot uninstall requirement %s, not installed" % (self.name,))
UninstallationError: Cannot uninstall requirement xblock-utils, not installed


...

Prashant Singh

unread,
Jan 6, 2016, 6:45:57 AM1/6/16
to Open edX operations
Hi Xavier, 

So, finally succeeded in uninstaling and installing xblock-utils in fullstack. 

problem-builder xblock is now showing up in Advanced tab. Long answer type question is also working.

Kudos to you for all the help and patience. :-)

Now another problem is there: in LMS, Long-answer question is showing 'You need to complete previous step' and Submit button is not clickable. (screenshot attached)

What is this previous step and how to disable this? 

Also is this possible to add custom feedback when learner clicks on Submit button? 
and how to hide that opencraft copyright message getting displayed? Will it always get displayed?

Thanks & Regards,
Prashant Singh


PS:

Here is the code I executed, may be helpful to someone else:

vagrant@precise64:~$ sudo su edxapp -s /bin/bash
edxapp@precise64:/home/vagrant$ cd ~
edxapp@precise64:~$ source edxapp_env
edxapp@precise64:~$ pip uninstall xblock-utils
You are using pip version 6.0.8, however version 7.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Uninstalling xblock-utils-0.1a0:
  /edx/app/edxapp/venvs/edxapp/lib/python2.7/site-packages/xblock-utils.egg-link
Proceed (y/n)? y
  Successfully uninstalled xblock-utils-0.1a0
edxapp@precise64:~$ 



vagrant@precise64:~$ 
vagrant@precise64:~$ cd /edx/app/edxapp
vagrant@precise64:/edx/app/edxapp$ sudo -u edxapp git clone https://github.com/edx/xblock-utils.git
vagrant@precise64:/edx/app/edxapp$ sudo -u edxapp /edx/bin/pip.edxapp install xblock-utils/
.
.
.
.
>xblock-utils==1.0.0)
Installing collected packages: xblock-utils
  Running setup.py install for xblock-utils
    /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/setuptools/dist.py:285: UserWarning: Normalizing 'v1.0.0' to '1.0.0'
      normalized_version,
Successfully installed xblock-utils-1.0.0
...
Problem-builder - Long Answer.png

Xavier Antoviaque

unread,
Jan 6, 2016, 8:12:54 AM1/6/16
to opene...@googlegroups.com
Hi Prashant,
 
You seem to have some kind of CSS issue, which might explain why this message appears - the formatting of the whole block seem wrong. Maybe check in your console if you have some CSS files not loading properly.
 
To be able to submit, you will need to enter text in the field.
 
And yes, you can add feedback upon submission - have a look at the "message" field in the text answer settings, if I remember correctly the field name.
 
--
Xavier.
 
For more options, visit https://groups.google.com/d/optout.

Email had 1 attachment:

  • Problem-builder - Long Answer.png
      88k (image/png)
 

Prashant Singh

unread,
Jan 7, 2016, 3:41:38 AM1/7/16
to Open edX operations
Hi Xavier, 

I've attached screenshot of console. (removed Stanford theme)

Even after entering text, Submit button is not clickable. 

problem-builder still showing 'You need to complete previous step before attempting this step'.

 
 -Prashant

...
problem-builder screenshot - 2.png

Xavier Antoviaque

unread,
Jan 8, 2016, 7:59:17 AM1/8/16
to opene...@googlegroups.com
Yes, as mentioned in my last email, it seem to be related to a CSS that doesn't load - thanks for the screenshot of the console, but you need to open it before loading the page, and look for requests related to the XBlock's CSS.
 
--
Xavier
--
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.
For more options, visit https://groups.google.com/d/optout.

Email had 1 attachment:

  • problem-builder screenshot - 2.png
      126k (image/png)
 

Prashant Singh

unread,
Jan 11, 2016, 1:37:05 AM1/11/16
to Open edX operations
Hi Xavier,

Yes, you are right. There is some problem-builder.css connection/path related error. I've attached screencast of it here. 

Also, submit button is not clickable even after entering text.


-Prashant.
...
problem-builder css error- screencast.mp4

Xavier Antoviaque

unread,
Jan 11, 2016, 5:50:53 AM1/11/16
to opene...@googlegroups.com
Ah, that explains it then yes - the instance's SITE_NAME seem to be misconfigured.What is the instance's URL? SITE_NAME currently points to localhost, which doesn't seem to be the valid hostname, and thus the static assets are not found on it and fail to load. Which gives you the presentation & submit issues that you're seeing.
 
--
Xavier.
 
--
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.
For more options, visit https://groups.google.com/d/optout.

Email had 1 attachment:

  • problem-builder css error- screencast.mp4
      2.8M (video/mp4)
 

Prashant Singh

unread,
Jan 11, 2016, 6:10:56 AM1/11/16
to Open edX operations
Thank you for the explanation. Instance's URL is default: 192.168.33.10
Should I change SITE_NAME? If yes, then in which file?

Thanks.
-Prashant.
...

Xavier Antoviaque

unread,
Jan 11, 2016, 6:31:07 AM1/11/16
to opene...@googlegroups.com
Yes, you should change it to use that IP instead - for the place where to change it, it depends how you deploy it, but in ansible it's there: https://github.com/edx/configuration/blob/76fd8a1fa31b7b710da8f3f34f0ed191bc098519/playbooks/roles/edxapp/defaults/main.yml#L205 (or in lms.env.json if you don't use ansible).
 
--
Xavier
--
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.

Prashant Singh

unread,
Jan 11, 2016, 6:53:49 AM1/11/16
to Open edX operations
Thanks a lot Xavier!!

That worked like a charm. I changed SITE_NAME in lms.env.json from "localhost" -> "192.168.33.10". Now see screenshot :-)

There are few more questions related to problem-builder. I will ask them tomorrow. Till then, adieu!!!

Thanks once again..

-Prashant. 
...
Working!!.png

Prashant Singh

unread,
Jan 24, 2016, 11:30:47 PM1/24/16
to Open edX operations
Hi Xavier,

Thank you for your help so far. 

After using various features of problem-builder, we have few questions/queries related to this:

1.) As open edX too provides by default some components like MCQ, MRQ, HTML, is there something special about those provided by problem-builder which we are unable to recognize as of now.

2.) Is there some tutorial/demo on how to use problem-builder effectively or explaining core idea behind problem-builder?

3.) We are unable to locate "Dashboard" Self-Assessment Summary Block and how to use Progression tracking.

4.) As per our course content, we don't want to show green tick when user clicks Submit button. Any tips to hide it.  

5.) At times, we know long form answer will not be that long. In that case we want to reduce the size of textarea which at present is not allowed through GUI.


Thanking you in anticipation. 

-Prashant. 
...

Prashant Singh

unread,
May 19, 2016, 5:32:34 AM5/19/16
to Open edX operations
Hello,

Recently we installed dogwood.3 fullstack and also installed xblock-problem-builder==2.5.0. 

We updated our open edx to master branch day before yesterday. This did some changes to port in nginx's config file and LMS url was changed from default to mysite.com:18000/

We updated our SITE_NAME in {lms/cms}.env.json files to reflect the changes related to port.

Still problem-builder.css is showing connection/path related error. Also, submit button is not clickable even after entering text. (screenshot attached)

Kindly help what other settings we need to change so that problem-builder can show up properly.

Thanking you.
Prashant.
problem builder error 1.png
problem builder error 2.png

Xavier Antoviaque

unread,
May 20, 2016, 2:40:36 AM5/20/16
to opene...@googlegroups.com
Hi Prashant,
 
It's hard to tell what is wrong from your message - it might the non-standard change in the nginx configuration which is causing issues?
--
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.
For more options, visit https://groups.google.com/d/optout.
 

Email had 2 attachments:

  • problem builder error 1.png
      116k (image/png)
  • problem builder error 2.png
      101k (image/png)

Prashant Singh

unread,
May 20, 2016, 3:02:54 AM5/20/16
to Open edX operations
Hello Xavier,

Thank you for your reply. 

Should you need more information I'm glad to provide it.

I'm too searching vigorously for the solution to this problem from last 2-3 days in all forums. 

Do you think other than SITE_NAME, STATIC_URL_BASE & LMS_BASE also needs to be configured this time. 

Last time when css problem occured, problem-builder was using path something like:
//localhost/xblock/resource/pb-answer/public/css/answer.css


But this time, it is something like this:
 /static/xblock/resources/problem_builder.answer/public/css/answer.css

There is some static this time in the path and no mention to SITE_NAME. Is it is usual?

Should I post my lms.env.json file?

Thanks. 
Prashant. 

Toby Lawrence

unread,
May 25, 2016, 3:09:39 PM5/25/16
to Open edX operations
I chatted with Preshant on the Open edX Slack channel today.  I'm pretty sure this is related to the recent change to include XBlock/XModule public assets in the asset pipeline yet.  Preshant didn't believe he had yet run a collectstatic command yet, which would explain this behavior.  I don't know if that fixed his problem, but figured I'd post here in case anyone else runs into the same issue.

Note, this is something that should be covered without issue during normal named release upgrades, but would definitely affect you if you simply updated straight to master without regenerating static assets, like Prashant did.

Aforementioned change: https://github.com/edx/edx-platform/pull/10176

Prashant Singh

unread,
Jun 1, 2016, 7:12:30 AM6/1/16
to Open edX operations
Hello,

Today we run following commands to regenerate static assets for cms along with lms:
python manage.py lms --settings=aws collectstatic --noinput
python manage
.py cms --settings=aws collectstatic --noinput

After that problem-builder started displaying properly but 'Image-map' problem still had same issue. Inside studio, it is not showing "green-dot" whereas inside lms it is throwing error. (screenshot 1 & 2)

However, problem-builder submit is also not working inside lms and throwing error in console. (screencast 3)

Also one thing that we noticed is 'missing logo error' is using localhost as url, whereas problem-builder is using default url i.e 192.168.33.10:18000
What can be the cause of this discrepancy?

Inside {lms/cms}.env.json, we have set SITE_NAME as:
"SITE_NAME": "localhost:18000",

"SITE_NAME": "localhost:18010",



Inside /edx/var/log/lms/edx.log we are getting a lot of Access denied error. 

OperationalError: (1044, "Access denied for user 'edxapp001'@'localhost' to database 'edxapp_csmh'")

Thanking you in advance.

--Prashant

Requirement<span style="color:rgb
Screenshot 1.png
Screenshot 2.png
Screencast 3.mp4
Reply all
Reply to author
Forward
0 new messages