2

我正在尝试将 Quick Start wiki https://github.com/rubber/rubber/wiki/Quick-Start中的示例橡胶测试部署到 AWS

我通过了提示输入本地计算机密码以写入主机文件的部分(它创建角色、实例和许多其他东西;我什至遇到了另一个未连接的错误 - 我重命名了私有没有 .pem 扩展名并修复了该问题的密钥),它会运行一段时间,并在此处给出错误:

失败:“/bin/bash -l -c 'sudo -p '\''sudo 密码:'\'' bash -l -c '\''export DEBIAN_FRONTEND=noninteractive; apt-get -q -o Dpkg::选项::=--force-confold -y --force-yes install postfix build-essential git-core libxslt-dev ntp mysql-client libmysqlclient15-dev subversion curl autoconf bison ruby​​ zlib1g-dev libssl-dev libreadline6-dev libxml2- dev libyaml-dev apache2 libapache2-mod-proxy-html libcurl4-openssl-dev libapache2-mod-xsendfile apache2-mpm-prefork apache2-prefork-dev collectd libperl-dev monit mysql-server percona-toolkit openjdk-7-jdk unzip python -django python-django-tagging python-cairo python-memcache memcached uwsgi uwsgi-plugin-python uwsgi-plugin-http sqlite3 bzr zip mongodb-10gen haproxy ec2-ami-tools'\'''" on production.foo.com

4

1 回答 1

2

我遇到了同样的失败,在命令输出的那一行上方,我看到uwsgi-plugin-http包需要被uwsgi-core包替换。

显然有一个尚未被接受的修复此问题的拉取请求,但您可以通过进行相同的编辑来修复它:在橡胶 2.8.1 上,打开config/rubber/rubber-graphite.yml,转到第 22 行,然后应该是这样的:

    packages: [python-django, python-django-tagging, python-cairo, python-memcache, memcached, uwsgi, uwsgi-plugin-python, uwsgi-plugin-http, sqlite3, bzr, zip]

替换uwsgi-plugin-httpuwsgi-core所以该行将是:

    packages: [python-django, python-django-tagging, python-cairo, python-memcache, memcached, uwsgi, uwsgi-plugin-python, uwsgi-core, sqlite3, bzr, zip]

然后,运行cap rubber:bootstrap,它应该完成设置您的实例。

于 2014-05-26T19:17:17.017 回答