Skip to content

Instantly share code, notes, and snippets.

@natea
Created October 27, 2014 14:59
Show Gist options
  • Select an option

  • Save natea/beb067b61445fe01dfcd to your computer and use it in GitHub Desktop.

Select an option

Save natea/beb067b61445fe01dfcd to your computer and use it in GitHub Desktop.
(launcher)➜ deploy git:(develop) ✗ vagrant destroy
default: Are you sure you want to destroy the 'default' VM? [y/N] y
==> default: Forcing shutdown of VM...
==> default: Destroying VM and associated drives...
==> default: Removing hosts
==> default: Running cleanup tasks for 'ansible' provisioner...
(launcher)➜ deploy git:(develop) ✗ vagrant -v up
Vagrant 1.6.5
(launcher)➜ deploy git:(develop) ✗ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'precise64'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: deploy_default_1414421282117_81281
==> default: Clearing any previously set network interfaces...
==> default: Available bridged network interfaces:
1) en0: Wi-Fi (AirPort)
2) en1: Thunderbolt 1
3) en2: Thunderbolt 2
4) p2p0
5) awdl0
6) bridge0
default: What interface should the network bridge to? 1
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
default: Adapter 3: bridged
==> default: Forwarding ports...
default: 80 => 8080 (adapter 1)
default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
==> default: Machine booted and ready!
GuestAdditions versions on your host (4.3.18) and guest (4.2.0) do not match.
stdin: is not a tty
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
fakeroot linux-headers-3.2.0-23 make patch
Suggested packages:
make-doc diffutils-doc
The following NEW packages will be installed:
dkms fakeroot linux-headers-3.2.0-23 linux-headers-3.2.0-23-generic make
patch
0 upgraded, 6 newly installed, 0 to remove and 66 not upgraded.
Need to get 12.7 MB of archives.
After this operation, 68.5 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/main make amd64 3.81-8.1ubuntu1 [118 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/main patch amd64 2.6.1-3 [80.2 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ precise/main dkms all 2.2.0.3-1ubuntu3 [73.1 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ precise/main fakeroot amd64 1.18.2-1 [87.2 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ precise/main linux-headers-3.2.0-23 all 3.2.0-23.36 [11.4 MB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ precise/main linux-headers-3.2.0-23-generic amd64 3.2.0-23.36 [947 kB]
dpkg-preconfigure: unable to re-open stdin: No such file or directory
Fetched 12.7 MB in 2s (4,809 kB/s)
Selecting previously unselected package make.
(Reading database ... 51095 files and directories currently installed.)
Unpacking make (from .../make_3.81-8.1ubuntu1_amd64.deb) ...
Selecting previously unselected package patch.
Unpacking patch (from .../patch_2.6.1-3_amd64.deb) ...
Selecting previously unselected package dkms.
Unpacking dkms (from .../dkms_2.2.0.3-1ubuntu3_all.deb) ...
Selecting previously unselected package fakeroot.
Unpacking fakeroot (from .../fakeroot_1.18.2-1_amd64.deb) ...
Selecting previously unselected package linux-headers-3.2.0-23.
Unpacking linux-headers-3.2.0-23 (from .../linux-headers-3.2.0-23_3.2.0-23.36_all.deb) ...
Selecting previously unselected package linux-headers-3.2.0-23-generic.
Unpacking linux-headers-3.2.0-23-generic (from .../linux-headers-3.2.0-23-generic_3.2.0-23.36_amd64.deb) ...
Processing triggers for man-db ...
Setting up make (3.81-8.1ubuntu1) ...
Setting up patch (2.6.1-3) ...
Setting up dkms (2.2.0.3-1ubuntu3) ...
Setting up fakeroot (1.18.2-1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode.
Setting up linux-headers-3.2.0-23 (3.2.0-23.36) ...
Setting up linux-headers-3.2.0-23-generic (3.2.0-23.36) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.2.0-23-generic /boot/vmlinuz-3.2.0-23-generic
Copy iso file /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
stdin: is not a tty
mount: warning: /mnt seems to be mounted read-only.
Installing Virtualbox Guest Additions 4.3.18 - guest version is 4.2.0
stdin: is not a tty
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.3.18 Guest Additions for Linux............
VirtualBox Guest Additions installer
Removing installed version 4.2.0 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules ...done.
Doing non-kernel setup of the Guest Additions ...done.
You should restart your guest to make sure the new modules are actually used
Installing the Window System drivers
Could not find the X.Org or XFree86 Window System, skipping.
An error occurred during installation of VirtualBox Guest Additions 4.3.18. Some functionality may not work as intended.
In most cases it is OK that the "Window System drivers" installation failed.
stdin: is not a tty
==> default: Checking for guest additions in VM...
==> default: Checking for host entries
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
default: /vagrant => /Users/nateaune/Dropbox/code/launcher/deploy
==> default: Running provisioner: ansible...
PLAY [server] *****************************************************************
TASK: [common | Update APT] ***************************************************
ok: [192.168.33.10]
TASK: [common | Install common packages] **************************************
changed: [192.168.33.10] => (item=vim,git-core,gcc,libxml2,libxml2-dev,libxslt1-dev,htop,iotop,python-software-properties,python,g++,make)
TASK: [common | Generate locales] *********************************************
changed: [192.168.33.10]
TASK: [pythondev | Ensure Python development tools are available] *************
changed: [192.168.33.10] => (item=python-dev,python-setuptools,python-pycurl)
TASK: [pythondev | Install pip] ***********************************************
changed: [192.168.33.10]
TASK: [pythondev | Update python-setuptools] **********************************
changed: [192.168.33.10]
TASK: [pythondev | Install virtualenv.] ***************************************
changed: [192.168.33.10]
TASK: [pythondev | Add node.js repo] ******************************************
changed: [192.168.33.10]
TASK: [pythondev | Install node.js] *******************************************
changed: [192.168.33.10]
TASK: [pythondev | Install required npm packages] *****************************
changed: [192.168.33.10] => (item=bower)
changed: [192.168.33.10] => (item=yuglify)
changed: [192.168.33.10] => (item=uglify-js)
changed: [192.168.33.10] => (item=less)
TASK: [pythondev | Create celery user] ****************************************
changed: [192.168.33.10]
TASK: [pythondev | Create celery folder] **************************************
changed: [192.168.33.10]
TASK: [postgresql | Add PostgreSQL APT repository key] ************************
changed: [192.168.33.10]
TASK: [postgresql | Add PostgreSQL APT repository key] ************************
changed: [192.168.33.10]
TASK: [postgresql | Install PostgreSQL] ***************************************
changed: [192.168.33.10] => (item=postgresql-9.3,libpq-dev)
TASK: [postgresql | Install Psycopg2 package] *********************************
changed: [192.168.33.10]
TASK: [postgresql | Ensure Postgres is running] *******************************
ok: [192.168.33.10]
TASK: [postgresql | Create Postgres user] *************************************
changed: [192.168.33.10]
TASK: [postgresql | Create DB] ************************************************
changed: [192.168.33.10]
TASK: [memcached | Install memcached] *****************************************
changed: [192.168.33.10] => (item=memcached,libmemcached-dev)
TASK: [memcached | Start memcached] *******************************************
ok: [192.168.33.10]
TASK: [memcached | Copy memcached.conf to server] *****************************
changed: [192.168.33.10]
TASK: [nginx | Add nginx repo key] ********************************************
changed: [192.168.33.10]
TASK: [nginx | Add nginx repo] ************************************************
changed: [192.168.33.10] => (item=deb http://nginx.org/packages/ubuntu/ precise nginx)
changed: [192.168.33.10] => (item=deb-src http://nginx.org/packages/ubuntu/ precise nginx)
TASK: [nginx | Install nginx] *************************************************
changed: [192.168.33.10]
TASK: [nginx | Ensure main Nginx configuration file is up to date] ************
changed: [192.168.33.10]
TASK: [nginx | Remove default virtual hosts] **********************************
changed: [192.168.33.10] => (item=default)
changed: [192.168.33.10] => (item=example_ssl)
TASK: [nginx | Create virtual hosts folders] **********************************
changed: [192.168.33.10] => (item=sites-available)
changed: [192.168.33.10] => (item=sites-enabled)
TASK: [nginx | Copy the virtual host config file] *****************************
changed: [192.168.33.10]
TASK: [nginx | Enable the virtual host] ***************************************
changed: [192.168.33.10]
TASK: [nginx | Increase the TCP buffer] ***************************************
changed: [192.168.33.10]
TASK: [uwsgi | Ensure uwsgi is at the desired version] ************************
changed: [192.168.33.10]
TASK: [uwsgi | Ensure runs with the latest uwsgi configuration file] **********
changed: [192.168.33.10]
TASK: [redis | Add redis repo] ************************************************
changed: [192.168.33.10]
TASK: [redis | Install redis] *************************************************
changed: [192.168.33.10]
TASK: [redis | Copy redis upstart script] *************************************
changed: [192.168.33.10]
TASK: [redis | Copy redis config] *********************************************
changed: [192.168.33.10]
TASK: [app_deployment | Clone app repo] ***************************************
changed: [192.168.33.10]
TASK: [app_deployment | Clear pip build dir] **********************************
ok: [192.168.33.10]
TASK: [app_deployment | Create a virtual env and install app requirements] ****
changed: [192.168.33.10]
TASK: [app_deployment | Install bower components] *****************************
failed: [192.168.33.10] => {"cmd": "python manage.py bower_install -- --allow-root -f --settings=launcher.settings.production --pythonpath=/opt/launcher/launcher", "failed": true}
msg: stdout: Unknown command: 'bower_install'
Type 'manage.py help' for usage.
:stderr: Unknown django command: bower_install -- --allow-root -f
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/Users/nateaune/site.retry
192.168.33.10 : ok=40 changed=36 unreachable=0 failed=1
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment