Open edx Fullstack安装及安装错误整理

手动安装步骤

1.更新源

sudo apt-get update -y
sudo apt-get upgrade -y
sudo reboot

2.安装pip及虚拟化
sudo apt-get install -y build-essential software-properties-common python-software-properties curl git-core libxml2-dev libxslt1-dev libfreetype6-dev python-pip python-apt python-dev libxmlsec1-dev swig
sudo pip install --upgrade pip
sudo pip install --upgrade virtualenv

3.克隆

cd /var/tmp
git clone https://github.com/edx/configuration

4.安装依赖
cd /var/tmp/configuration
sudo pip install -r requirements.txt

5.一键安装

cd /var/tmp/configuration/playbooks && sudo ansible-playbook -c local ./edx_sandbox.yml -i "localhost,"

6.
断点续装命令
cd /var/tmp/configuration/playbooks && sudo ansible-playbook -c local ./edx_sandbox.yml -i "localhost," --start-at-task="edxapp | install python base-requirements"

常见错误整理

错误一

sh: mysql_config: not found

Traceback (most recent call last):

  File"setup.py", line 15, in <module>

   metadata, options = get_config()

  File"/home/zhxia/apps/source/MySQL-python-1.2.3/setup_posix.py", line 43,in get_config

    libs= mysql_config("libs_r")

  File"/home/zhxia/apps/source/MySQL-python-1.2.3/setup_posix.py", line 24,in mysql_config

   raise EnvironmentError("%s not found" % (mysql_config.path,))

EnvironmentError: mysql_config not found

只要原因是没有安装:libmysqlclient-dev

sudo apt-get install libmysqlclient-dev

找到mysql_config文件的路径

sudo updatedb

locate mysql_config

错误二:

ERROR: /var/tmp/configuration/playbooks/roles/common/defaults/main.ymlmust be stored as dictionary/hash: <type 'str'>

cd /var/tmp/configuration/playbooks

vim main.yml

删除COMMON_SSH_PASSWORD_AUTH:”yes”

 

错误三:

TASK: [aws | update the ssh motd on Ubuntu] ***************************

changed: [localhost] =>(item=/etc/update-motd.d/10-help-text)

changed: [localhost] =>(item=/usr/share/landscape/landscape-sysinfo.wrapper)

failed: [localhost] =>(item=/etc/update-motd.d/51-cloudguest) => {“failed”: true, “item”:“/etc/update-motd.d/51-cloudguest”, “path”: “/etc/update-motd.d/51-cloudguest”,“state”: “absent”}

msg: file (/etc/update-motd.d/51-cloudguest)is absent, cannot continue

changed: [localhost] =>(item=/etc/update-motd.d/91-release-upgrade

sudo touch /etc/update-motd.d/51-cloudguest

通常会产生错误三

错误三:

TASK:[aws | update the ssh motd onUbuntu] I've got error fatal: [localhost] => error whileevaluating conditional: vagrant_home_dir.stat.exists == false

找到这个文件/var/tmp/configuration/playbooks/roles/aws/tasks/main.yml

可以注释掉:

- name: update the ssh motd on Ubuntu

  file: >

    mode=0644

    path={{ item }}

  when: vagrant_home_dir.stat.exists == false

  with_items:

  - "/etc/update-motd.d/10-help-text"

  - "/usr/share/landscape/landscape-sysinfo.wrapper"

  - "/etc/update-motd.d/51-cloudguest"

  - "/etc/update-motd.d/91-release-upgrade"

 

发布了199 篇原创文章 · 获赞 47 · 访问量 64万+
展开阅读全文

ansible ubuntu14 native 安装open edx 报错,求助,请各位大神指点小弟

10-14

TASK: [edxlocal | install mysql 56 and dependencies] ************************** failed: [localhost] => (item=software-properties-common,mysql-server) => {"failed": true, "item": "software-properties-common,mysql-server"} stderr: start: Job failed to start invoke-rc.d: initscript mysql, action "start" failed. dpkg: error processing package mysql-server-5.6 (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of mysql-server: mysql-server depends on mysql-server-5.6; however: Package mysql-server-5.6 is not configured yet. dpkg: error processing package mysql-server (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: mysql-server-5.6 mysql-server No apport report written because the error message indicates its a followup error from a previous failure. E: Sub-process /usr/bin/dpkg returned an error code (1) stdout: Reading package lists... Building dependency tree... Reading state information... mysql-server is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up mysql-server-5.6 (5.6.33-0ubuntu0.14.04.1) ... msg: '/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold" --force-yes install 'mysql-server'' failed: start: Job failed to start invoke-rc.d: initscript mysql, action "start" failed. dpkg: error processing package mysql-server-5.6 (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of mysql-server: mysql-server depends on mysql-server-5.6; however: Package mysql-server-5.6 is not configured yet. dpkg: error processing package mysql-server (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: mysql-server-5.6 mysql-server No apport report written because the error message indicates its a followup error from a previous failure. E: Sub-process /usr/bin/dpkg returned an error code (1) FATAL: all hosts have already failed -- aborting 问答

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 大白 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览