-
Notifications
You must be signed in to change notification settings - Fork 9
edX Ubuntu 12.04 64 bit Installation
1)sudo apt-get update -y
2)sudo apt-get upgrade -y
3)reboot
4)sudo apt-get install -y build-essential software-properties-common python-software-properties curl git-core libxml2-dev libxslt1-dev python-pip python-apt python-dev
5)wget https://bitbucket.org/pypa/setuptools/raw/0.8/ez_setup.py O | sudo python
6)sudo pip install --upgrade pip
7)sudo pip install --upgrade virtualenv
8)cd /var/tmp
9)git clone b release https://github.com/edx/configuration
10)cd /var/tmp/configuration 11)sudo pip install -r requirements.txt
12)cd /var/tmp/configuration/playbooks
- sudo ansible-playbook -c local ./edx_sandbox.yml -i "localhost,"
or instead of localhost you can use serverip as below
sudo ansible-playbook -c local ./edx_sandbox.yml -i “x.x.x.x,"
Issues in edX Ubuntu 12.04 Installation
- Error in creating database for edxapp:
TASK: [edxlocal | create a database for edxapp] *******************************
Sol
create file .my.cnf similar to following:
[client]
user=root
password=xxxxx
2)Error in installing mongodb:
TASK: [mongo | install mongo server and recommends] ***************************
msg: 'apt-get install 'mongodb10gen=2.4.7' ' failed: E: There are problems and -y was used
without –force-yes
Sol
a)sudo apt-get remove mongodb-clients
b)sudo apt-get install mongodb-10gen=2.4.7
3)Error in installing npm:
msg: 'apt-get install 'npm' 'npm' 'gettext' ' failed:
The following packages have unmet dependencies:
npm : Depends: nodejs (>= 0.6.19~dfsg13) but it is not going to be installed
Depends: node-jsdev
Depends: node-node-uuid but it is not going to be installed
Depends: node-request but it is not going to be installed
Depends: node-mkdirp but it is not going to be installed
Depends: node-minimatch but it is not going to be installed
Depends: node-semver but it is not going to be installed
Depends: node-ini but it is not going to be installed
Depends: node-gracefulfs but it is not going to be installed
Depends: node-abbrev but it is not going to be installed
Depends: node-nopt but it is not going to be installed
Depends: node-fstream but it is not going to be installed
Depends: node-rimraf but it is not going to be installed
Depends: node-tar but it is not going to be installed
Depends: node-which but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Sol
a)sudo apt-get remove nodejs nodejs-dev
b)Download nodejs_0.6.12~dfsg11ubuntu1_i386.deb (663.7 KiB) from
https://launchpad.net/ubuntu/precise/i386/nodejs/0.6.12~dfsg11ubuntu1
click the package and install through Ubuntu Software Center by clicking install button
c)Download nodejs-dev from http://packages.ubuntu.com/precise/i386/nodejsdev/download
(ubuntu.cs.utah.edu/ubuntu or any other )
click the package and install through Ubuntu Software Center by clicking install button
d)sudo apt-get install npm
4)Error in installing nltk
Sol
sudo /edx/app/ora/venvs/ora/bin/python -m nltk.downloader -d /edx/var/ora/nltk_data all
5)Error in installing pika
msg:Command /usr/bin/git clone -q git://github.com/pika/pika.git /edx/app/xqueue/venvs/xqueue/src/pika/
failed with error code 128 in None
Storing complete log in /root/.pip/pip.log
:stderr: fatal: unable to connect to github.com:
Sol
a)sudo gedit /edx/app/xqueue/xqueue/requirements.txt
replace
-e git://github.com/pika/pika.git@a731347fc0#egg=pika
with
pika
b)sudo gedit /var/tmp/configuration/playbooks/roles/xqueue/tasks/deploy.yml
and comments the following
# name: xqueue | git checkout xqueue repo into {{app_base_dir}}
6)Error in installing discern
IOError: Could not build the egg.
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /edx/app/discern/ve
nvs/discern/build/MySQL-python
Storing debug log for failure in /edx/app/discern/.pip/pip.log
Sol
a)cd /edx/app/discern
b)git clone https://github.com/defance/discern.git
Or
a)sudo gedit /var/tmp/configuration/playbooks/roles/discern/defaults/main.yml
b)changed the value of variable 'discern_source_repo' to 'https://github.com/defance/discern.git'
- Internal Server Error in CMS running
Sol
a) cd /edx/app/edxapp/edxplatform
• list all manage.py commands
sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings aws help
• create a new user
sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings aws create_user -e [email protected]
• set or change password
sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings aws changepassword user
• set user to staff
sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings aws set_staff [email protected]
• launch the django shell
sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings aws shell
• create superuser
sudo u www-data /edx/bin/python.edxapp ./manage.py lms --settings aws create_user -e
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.save()
• run migrations
sudo -u www-data /edx/bin/python.edxapp ./manage.py lms syncdb --migrate --settings aws
- Error in discern and ease requirement installation
Sol
a)sudo gedit /edx/app/discern/discern/requirements.txt
replace
-e git+https://github.com/edx/ease.git@965a61b0701bb93bebdcd7173c3538008a1ea009#egg=ease
with
ease
c)sudo gedit /var/tmp/configuration/playbooks/roles/discern/tasks/deploy.yml
d) just comments following
# name: git checkout discern repo into discern_code_dir
- Error in edxapp sync and migrate
msg:ImportError: No module named dateutil.relativedelta
Sol sudo pip install python-dateutil
and then follow
a)Download python-dateutil-2.2.tar.gz (md5) from https://pypi.python.org/pypi/pythondateutil
b) extract and run command
cd /path of folder pythondateutil2.2/ and
sudo python setup.py install
c) Copy the dateutils folder into /edx/app/ora/venvs/ora/local/lib/python2.7/sitepackages/
d)copy folder python_dateutil2.2py2.7.egginfo and paste into
/edx/app/ora/venvs/ora/local/lib/python2.7/sitepackages/celery/dateutil
10)TASK: [forum | test that the required service are listening] ******************
failed: [localhost] => (item={'host': u'localhost', 'port': u'9200', 'service': 'elasticsearch'}) =>
{"elapsed": 30, "failed": true, "item": {"host": "localhost", "port": "9200", "service":
"elasticsearch"}}
msg: Timeout when waiting for localhost:9200
soln
sudo add-apt-repository ppa:webupd8team/java sudo apt-get install oracle-java7-installer