RATED-D

the following content has been approved for

developer audiences

Manually resync Open edX database after an update

If, like me, right after Open edX platform update you incour in some error, the cause could be the mysql database not synced with the new models.

The command to launch is the following (from a sudo privileged user):

cd /edx/app/edxapp/edx-platform
sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings aws syncdb --migrate

The last command will trigger south database sync process. The –migrate, in my case, was mandatory.

Custom edx-platform git repository on your Open edX deploy (devstack)

If, despite the configuration of the /edx/app/edx_ansible/server-vars.yml file, the update script continues to fetch data from the edX repository (rather than the one you configured), then you can manually push the new origin into the repo:

cd /edx/app/edxapp/edx-platform
git remote set-url origin you_repo
sudo /edx/bin/update edx-platform master

 

Deploy a Symfony project with Capifony on localhost

As soon as you’ll put your hands on Capifony, you’ll notice that this tool is born with an high role separation in mind. Due to the adoption of SSH as a deployment tool, your environment should count on, at least, a deployment/CI server and a test/production one.

What if, like in my case, you only have one test server, and you need to deploy everything olny on it? Use SSH on the loopbacl interface!

Symfony ContainerAwareCommand executed from a custom Application

It is clear that, if you want to use with profit all the services configured/developed on you Symfony application, you have to use a ContainerAwareCommand.

Since the web is plenty of examples, I wont spend time here in writing how to do this and that. What is, instead, quite difficult to find is a way to integrate your brand new command into a Symfony Console application.

If you ended up with something like the following error:

Open edX, vagrant dirty shutdown and MongoDB

You always have to keep in mind that command vagrant up turns on a virtual machine.
When you turn off your workstation, remember to turn it off gracefully (with command vagrant halt or via SSH console).
It might happen to not remember the above suggestion. In that case you could encounter serious issues due to lock files still present on the filesystem (to testify a non-clean shutdown).
OPEN edX LMS module will refuse to start, due to missing Mongo DB connection. An error stating connection refuse will show up.

How to configure a Sql Server Reporting Services instance to use Basic authentication

  • Open RSReportServer.config in a text editor. The file is located at :\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer.
  • Find <Authentication>.

  • Copy one of the following XML structures that best fits your needs. The first XML structure provides placeholders for specifying all of the elements, which are described in the next section: