Here, I am sharing my experience, ways of solving some problems faced in open edx.
I am using Open edx Eucalyptus.2 on Ubuntu 12.04, but my things that I describe below may be usefull for other versions/configurations.
Also usefull links:
- First steps to do after installation Open edx
- Configuring sending mails
- Control course creation rights
- Backuping
- Open edx Insights
- Deleting user account
- Configuring external grader
- Change name of platform
- Change organization logo
- Change urls like
localhost:8000
tomy-open-edx.com
Also don't forget to change sender mails.
I have already described solution here.
cd /edx/app/edxapp/edx-platform
sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings aws create_user -s -p edx -e [email protected]
sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings aws changepassword user
sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings aws shell
from django.contrib.auth.models import User
me = User.objects.get(username="user")
me.is_superuser = True
me.is_staff = True
me.save()
Idea is the same as in BluePlanetLife/openedx-server-prep.
On first machine, where server is running now:
mkdir backup
# backing up mysql db
mysqldump edxapp -u root --single-transaction > backup/backup.sql
cd backup
# backing up mongo db
mongodump --db edxapp
mongodump --db cs_comments_service_development
cd ..
# Packing it to single file for easy copying to second sever
tar -zcvf backup.tar.gz backup/
Now, copy backup.tar.gz to second server. For example using scp
:
scp backup.tar.gz root@second-server-ip:~/backup.tar.gz
And then restore backup on second machine:
# unpacking
tar -zxvf backup.tar.gz
cd backup
# restoring mysql
mysql -u root edxapp < backup.sql
# cleaning up mongo db and restoring
mongo edxapp --eval "db.dropDatabase()"
mongorestore dump/
That's all!
They stores in /edx/app/edxapp/
directory.
# CMS:
/edx/bin/edxapp-update-assets-cms
# LMS:
/edx/bin/edxapp-update-assets-lms
# CMS:
sudo /edx/bin/supervisorctl restart edxapp:
# LMS:
sudo /edx/bin/supervisorctl restart edxapp_worker:
Look here.
If you have problem with deleting users through Django admin, try solution below or see topic in google groups.
cd /edx/app/edxapp/edx-platform
sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings aws shell
>>> from django.contrib.auth.models import User
>>> u=User.objects.get(email="[email protected]"); [obj.delete() for obj in u.preferences.all()]; u.delete()
[None]