Rubber cap: create_staging not working

I am trying to deploy to AWS the Rubber test sample on the Quick Start wiki https://github.com/rubber/rubber/wiki/Quick-Start

I am passing the part where it asks for my local machine password to write to the hosts file (it creates roles, instance and more, I even got another error when it was not connecting - I renamed the private key without the .pem extension and fixed that) and it works for a while and gives an error here:

failed: "/ bin / bash -l -c 'sudo -p' \ '' sudo password: '\' 'bash -l -c' \ '' export DEBIAN_FRONTEND = non-interactive; 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 builds libperl-dev monit mysql-server percona -toolkit openjdk unip-7-jd 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

+2


source to share


1 answer


I got the same refusal and, looking just above this line at the output of the command, saw that the package uwsgi-plugin-http

should be replaced by the package uwsgi-core

.

Apparently there is a delete request to fix this that hasn't been accepted yet, but you can fix it by doing the same edit: on rubber 2.8.1, open config / rubber / rubber-graphite.yml , go to line 22 and it should look like this:

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

      



Replace uwsgi-plugin-http

with uwsgi-core

so that the line is:

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

      

Then run cap rubber:bootstrap

and it should finish configuring your instance.

+2


source







All Articles