【问题标题】:cap rubber:create_staging failed near end橡胶帽:create_staging 接近尾声失败
【发布时间】:2014-06-04 04:49:17
【问题描述】:

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

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

失败:“/bin/bash -l -c 'sudo -p '\''sudo 密码:'\'' bash -l -c '\''export DEBIAN_FRONTEND=noninteractive; apt-get -q -o dpkg::Options::=--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 解压 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

【问题讨论】:

    标签: ruby-on-rails amazon-ec2 rubber


    【解决方案1】:

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

    显然a pull request to fix this 尚未被接受,但您可以通过进行相同的编辑来修复它:在橡胶 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-http 替换为uwsgi-core,这样该行将是:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-01-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-04-08
      • 1970-01-01
      • 2015-01-24
      • 2019-08-28
      相关资源
      最近更新 更多