Coder Social home page Coder Social logo

vagrant's Introduction


This repository holds an archive of the Pelias Vagrant image, which was once used to help set up Pelias, but is now out of date.

For the new, fancy way to set up Pelias please see our Docker setup!

README

Build Status

Circle CI

Requirements

  • a system with ~4GB of RAM and ~20GB of free disk space to load a modest test environment
  • ruby 2.x
  • ChefDK
  • VirtualBox ~> 1.5
  • Vagrant ~> 1.7

Goals

  • to provide, via the included Chef code, a reference for installing your own Pelias system:
    • learn what dependencies you'll need, what the workflow looks like and how you can mold that to your own environment and needs
  • to provide a sandbox environment for people to do quick development against a local Pelias instance

Access points

  • API: curl http://localhost:3100/v1
  • Leaflet Demo: references the API on search.mapzen.com, change url to localhost:3100 so you can see a visual representation of the data you're loading
  • vagrant ssh && sudo su - and you've got free reign in a sandboxed environment
  • You can also share both access to your vagrant environment via ssh, or just share the API endpoint:
    • vagrant share --ssh will accomplish both
    • vagrant share will allow only the latter

Environment

  • you can set the following environment variables to specify the number of cores and amount of RAM in MB to allocate to the VM. If left unset, we will infer sensible defaults (see Vagrantfile).
export PELIAS_VAGRANT_CPUS=3
export PELIAS_VAGRANT_MB=6144
  • you can alter the default settings in pelias_settings.example.rb by using a local config, which can in fact be used to override any value set in the chef run:
export PELIAS_VAGRANT_CFG=${PWD}/pelias_settings.rb

Getting started

  • install VirtualBox, Vagrant and ChefDK
  • vagrant plugin install vagrant-berkshelf
  • vagrant plugin install vagrant-omnibus
  • if you use rbenv or otherwise manipulate your path, make sure you set /opt/chefdk/bin ahead of any other locally installed gems that might conflict with berkshelf, foodcritic, etc, e.g.:
eval "$(rbenv init -)"
export PATH=/opt/chefdk/bin:$PATH
  • copy the included pelias_settings.example.rb to a location of your choice, then export the environment variable PELIAS_VAGRANT_CFG to reference it: export PELIAS_VAGRANT_CFG=/path/to/the/file
    • you can leave the defaults in place until you get familiar with things, or if you're feeling up to it, edit away
    • you can override anything found in attributes/default.rb, but typically what you'll want access to is referenced in the example config: pelias_settings.example.rb
  • from the repository root run vagrant up, which will:
    • download the vagrant box (this is a one time operation)
    • boot a linux instance that you can connect to via vagrant ssh
    • install all the dependencies required to load data into and run Pelias:
      • elasticsearch
      • nodejs
      • required Pelias repositories
      • other system dependencies
    • create the Elasticsearch 'pelias' index
    • run the Pelias API server, which you can interact with locally via your browser, curl, etc thanks to the magic of port forwarding: example query
      • as soon as the geonames data load starts, you'll be able to start querying the index via the API
      • more details on the API can be found here: Pelias API
      • in addition, you can access our Demo which will let you visualize the data you're loading, run searches, etc.
      • the demo by default uses the endpoint API search.mapzen.com, clone the project and change URL to localhost:3100 to query your local instance
    • load Geonames data for England into Elasticsearch
    • load an OSM extract for London into Elasticsearch
  • vagrant suspend or vagrant halt will stop the virtual machine without any data loss
  • vagrant up will bring it back online for use
  • to start entirely from scratch: vagrant destroy; vagrant up, or to just reload all the data: curl -XDELETE http://localhost:9200/pelias followed by vagrant provision

How long will this take?

  • presently, to load the defaults (all of Great Britain from Geonames, and London from OSM): ~30 minutes, not including initial build time of the VM, which is a one time event
  • larger countries with more data, e.g. the US and most countries in Western Europe, will take longer

Tweaking things

  • the pelias_settings.example.rb file shows some ways you can define/override values in the provisioning process
  • you can copy this file to a location of your choice and reference it via an environment variable: PELIAS_VAGRANT_CFG
    • if the environment variable is set, vagrant will attempt to load the contents of the file it references
    • if the environment variable is not set, vagrant will load pelias_settings.example.rb provided in the repository
  • let's suppose you want to load osm data for locations in Germany and Italy:
    • from the repo root: cp pelias_settings.example.rb ~/.pelias_settings.rb
    • in your profile, export PELIAS_VAGRANT_CFG=${HOME}/.pelias_settings.rb
      • this file is now your means of manipulating the vagrant chef run going forward

openaddresses

  • import data from openaddresses with an array of data files from the default data directory in default.rb (remove data_files hash for the entire global collection):
  'openaddresses' => {
    'index_data' => true,
    'data_files' => [
      'us-ny-nyc'
    ]
  },

geonames

  • multiple geoname countries can be loaded by editing the geonames alpha2 array of country codes (or you can specify 'all'):
  'geonames' => {
    'index_data' => true,
    'alpha2_country_codes' => [
      'IT',
      'DE'
    ]
  },

osm

  • osm extracts you may want to load can be found on the Mapzen Metro Extracts page.
  • multiple extracts can be loaded by updating the extracts hash:
  'osm' => {
    'index_data' => true,
    'extracts' => {
      'florence' => 'https://s3.amazonaws.com/metro-extracts.mapzen.com/florence_italy.osm.pbf',
      'munich' => 'https://s3.amazonaws.com/metro-extracts.mapzen.com/munich_germany.osm.pbf'
    }
  }
  • now that you've edited PELIAS_VAGRANT_CFG, run vagrant up to start loading data, or vagrant provision if you'd previously started the instance

Bugs/Issues

  • there is presently a bug resulting in the OSM process not exiting on completion of data load for certain extracts
  • there is a bug in vagrant that prevents re-provisioning if the the system is halted
    • as a workaround, rm .vagrant/machines/default/virtualbox/synced_folders and vagrant reload --provision

Contributing

  • yes please!
  • fork, create a feature branch, make your changes, add/update specs, submit a pull request

vagrant's People

Contributors

dianashk avatar easherma avatar heffergm avatar hydrapolic avatar johnlonganecker avatar missinglink avatar orangejulius avatar pmezard avatar rijvirajib avatar rmglennon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vagrant's Issues

openaddress import example mislabled

In the default settings example for openaddresses:

'openaddresses' => {
'index_data' => true,
'data_files' => [
'us-ny-nyc'
]
},

The example doesn't seem to follow the naming conventions of the files on openaddress.

'us-ny-nyc' should read 'us/ny/city_of_new_york'

Examples:
http://results.openaddresses.io/

I confirmed this with Ian. I tried correcting the path and it appears that the URL may also not be parsed accurately.

The complete zip seems to be working, though its in progress for me at the moment.

vagrant up throws error

I followed the article for setting up pelias, I installed virtualbox and vagrant via apt-get and chef-dk from the website. when I run vagrant up I get the following error:

Failed to load the "vagrant-berkshelf" plugin. View logs for more details.

Bringing machine 'default' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:

Vagrant:

  • Unknown configuration section 'berkshelf'.

here is some version info if it helps

lsb_release
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty

vagrant --version
Vagrant 1.4.3

vagrant plugin list
vagrant-berkshelf (4.1.0)
vagrant-omnibus (1.4.1)

berks --version
4.3.2

do I need to use a particular vagrant version?
I've read online that berkshelf is no longer a plugin, any help would be appreciated

Vagrant-pelias - error loading data when admin lookup option is enabled

Hi,

when admin lookup option is enabled in pelias configuration file then errors occur when osm data is loaded.

Error logs from /opt/pelias/logs:

Error: ENOENT, open '/mnt/pelias/whosonfirst/meta/wof-localadmin-latest.csv'
    at Error (native)
events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: ENOENT, open '/mnt/pelias/whosonfirst/meta/wof-macrocounty-latest.csv'
    at Error (native)
events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: ENOENT, open '/mnt/pelias/whosonfirst/meta/wof-disputed-latest.csv'
    at Error (native)
events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: ENOENT, open '/mnt/pelias/whosonfirst/meta/wof-county-latest.csv'
    at Error (native)
events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: ENOENT, open '/mnt/pelias/whosonfirst/meta/wof-locality-latest.csv'
    at Error (native)
events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: ENOENT, open '/mnt/pelias/whosonfirst/meta/wof-dependency-latest.csv'
    at Error (native)
events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: ENOENT, open '/mnt/pelias/whosonfirst/meta/wof-borough-latest.csv'
    at Error (native)
events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: ENOENT, open '/mnt/pelias/whosonfirst/meta/wof-macroregion-latest.csv'
    at Error (native)
events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: ENOENT, open '/mnt/pelias/whosonfirst/meta/wof-neighbourhood-latest.csv'
    at Error (native)
events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: ENOENT, open '/mnt/pelias/whosonfirst/meta/wof-country-latest.csv'
    at Error (native)
events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: ENOENT, open '/mnt/pelias/whosonfirst/meta/wof-region-latest.csv'
    at Error (native)
curl -s 'http://localhost:9200/_cluster/health?pretty=true'
{
  "cluster_name" : "elasticsearch",
  "status" : "green",
  "timed_out" : false,
  "number_of_nodes" : 1,
  "number_of_data_nodes" : 1,
  "active_primary_shards" : 1,
  "active_shards" : 1,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 0,
  "delayed_unassigned_shards" : 0,
  "number_of_pending_tasks" : 0,
  "number_of_in_flight_fetch" : 0
}

curl -s 'http://localhost:9200'
{
  "status" : 200,
  "name" : "pelias",
  "cluster_name" : "elasticsearch",
  "version" : {
    "number" : "1.7.3",
    "build_hash" : "05d4530971ef0ea46d0f4fa6ee64dbc8df659682",
    "build_timestamp" : "2015-10-15T09:14:17Z",
    "build_snapshot" : false,
    "lucene_version" : "4.10.4"
  },
  "tagline" : "You Know, for Search"
}

Vagrant configuration file:

Vagrant.configure('2') do |config|
  config.vm.provision :chef_solo do |chef|
    chef.cookbooks_path = 'cookbooks'

    chef.json = {
      'pelias' => {
        'schema' => {
          'create_index' => true
        },
        'openaddresses' => {
          'index_data' => false,
          'data_dir' => '/opt/pelias/data/openaddresses',
          'data_files' => [
            'dolnoslaskie.csv'
          ]
        },
        'geonames' => {
          'index_data' => false,
          'alpha2_country_codes' => [
            'GB'
          ]
        },
        'osm' => {
          'index_data' => true,
          'admin_lookup' => true,
          'extracts' => { http://download.geofabrik.de/europe/poland/dolnoslaskie-latest.osm.pbf'
          }
        }
      }
    }

    chef.run_list = [
      'recipe[pelias::default]'
    ]
  end
end

Thanks for help!

The Berkshelf version at "/opt/chefdk/bin/berks" is invalid

Hello,

i am on Mac OS X 10.11.6 and after following the installation instructions and running vagrant up i get the following error:

The Berkshelf version at "/opt/chefdk/bin/berks" is invalid.
Vagrant Berkshelf requires ~> 4.0, but the current version is 5.1.0.

Please download and install the latest version of the ChefDK from:

https://downloads.chef.io/chef-dk

and follow the installation instructions. Do not forget to add the ChefDK to
your PATH.

The ChefDK binaries are added to my path
echo $PATH: /opt/chefdk/bin:/Users/hmk/.chefdk/gem/ruby/2.3.0/bin:/opt/chefdk/embedded/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/chefdk/gitbin

vagrant -v: Vagrant 1.8.5
which berks: /opt/chefdk/bin/berks
chef -v:
Chef Development Kit Version: 0.18.26
chef-client version: 12.14.89
delivery version: master (d86679335580be3de22996ef294b20d525889d8d)
berks version: 5.1.0
kitchen version: 1.13.0

I found a similar Issue Description here. I also tried completely reinstalling chefdk, vagrant but nothing helps.

All Quattroshapes

I'm attempting to set up an entire-world reverse geocoder. To do this, I am using geonames with alpha2_country_codes => [ 'all' ] (do I have to manually add geonames zip file anywhere?), openaddresses also has no specification (according to docs, that means it'll include it all?). I am working with the quatroshapes now and starting to fill out the alpha3_country_codes with an array of all the country codes from http://www.geonames.org/countries/ . Is there a method to do all or is it even necessary to do that?

Would it make sense to make an 'all' option that has all the country codes listed or does it make sense to fill up the alpha3_country_codes array with all the countries? Example:

 'quattroshapes' => {
  'index_data' => true,
  'alpha3_country_codes' => [
    'AND', 'ARE', 'AFG',
    'ATG', 'AIA', 'ALB',
    'ARM', 'ANT', 'AGO',
    'ATA', 'ARG', 'ASM',
    'AUT', 'AUS', 'ABW',
    'ALA', 'AZE', 'BIH',
    'BRB', 'BGD', 'BEL',
    'BFA', 'BGR', 'BHR',
    'BDI', 'BEN', 'BLM',
    'BMU', 'BRN', 'BOL',
    'BES', 'BRA', 'BHS',
    ...
  ]
},

For the osm extracts array, I am doing a combination of mapzen and my own pbfs (is there a way to link to a local pbf ?).

Unable to import OpenAddresses data

I have the API working from localhost:3100, but when I post the query to http://localhost:3100/v1/search?sources=oa&text=216+W+QUINCY+CHICAGO,+IL I get the following empty response

{"geocoding":{"version":"0.1","attribution":"http://pelias.mapzen.com/v1/attribution","query":{"text":"216 W QUINCY CHICAGO, IL","parsed_text":{"name":"216 W QUINCY CHICAGO","state":"IL","regions":["216 W QUINCY CHICAGO"],"admin_parts":"IL"},"types":{"from_sources":["openaddresses"]},"size":10,"private":false,"type":["openaddresses"],"querySize":20},"engine":{"name":"Pelias","author":"Mapzen","version":"1.0"},"timestamp":1456524586352},"type":"FeatureCollection","features":[]}

The OpenAddresses dataset I'm using is for the city of Chicago, http://s3.amazonaws.com/data.openaddresses.io/runs/63513/us/il/city_of_chicago.zip

Additionally, when I try to manually run the OpenAddresses import from pelias/openaddresses I get minimal output:

vagrant@pelias:~/openaddresses$ node import.js ../my_dataset
2016-02-26T22:11:00.466Z - info: [openaddresses] Importing 1 files.
2016-02-26T22:11:02.200Z - info: [openaddresses] Creating read stream for: ../my_dataset/city_of_chicago.csv
2016-02-26T22:16:33.473Z - info: [openaddresses] Total time taken: 333.012s

Help w/ local install on Mac with GeoNames

Running on Mac 10.10.5 - Not sure what to do next - not sure what state I'm in.

screen shot 2016-01-19 at 2 37 59 pm

I have geonames allCountries.zip in data/. When I run ./node_modules/.bin/geonames -i all I get:

/Users/barton/projects/stargazers/temp/vagrant/importer/node_modules/pelias-geonames/node_modules/pelias-dbclient/node_modules/elasticsearch/src/lib/log.js:65
Log.prototype.listenerCount = function (event) {
                                       ^

RangeError: Maximum call stack size exceeded
    at Log.listenerCount (/Users/barton/projects/stargazers/temp/vagrant/importer/node_modules/pelias-geonames/node_modules/pelias-dbclient/node_modules/elasticsearch/src/lib/log.js:65:40)
    at Function.EventEmitter.listenerCount (events.js:399:20)
    at Log.listenerCount (/Users/barton/projects/stargazers/temp/vagrant/importer/node_modules/pelias-geonames/node_modules/pelias-dbclient/node_modules/elasticsearch/src/lib/log.js:68:25)
    at Function.EventEmitter.listenerCount (events.js:399:20)
    at Log.listenerCount (/Users/barton/projects/stargazers/temp/vagrant/importer/node_modules/pelias-geonames/node_modules/pelias-dbclient/node_modules/elasticsearch/src/lib/log.js:68:25)
    at Function.EventEmitter.listenerCount (events.js:399:20)
    at Log.listenerCount (/Users/barton/projects/stargazers/temp/vagrant/importer/node_modules/pelias-geonames/node_modules/pelias-dbclient/node_modules/elasticsearch/src/lib/log.js:68:25)
    at Function.EventEmitter.listenerCount (events.js:399:20)
    at Log.listenerCount (/Users/barton/projects/stargazers/temp/vagrant/importer/node_modules/pelias-geonames/node_modules/pelias-dbclient/node_modules/elasticsearch/src/lib/log.js:68:25)
    at Function.EventEmitter.listenerCount (events.js:399:20)

I tried curl localhost:3100
and got

{"error":"Invalid path, no legacy proxy specified"}

This is my pelias_settings.rb

Vagrant.configure('2') do |config|
  config.vm.provision :chef_solo do |chef|
    chef.cookbooks_path = 'cookbooks'

    chef.json = {
      'pelias' => {
        'schema' => {
          'create_index' => true
        },

        'geonames' => {
          'index_data' => true,
          'alpha2_country_codes' => [
            'all'
          ]
        }
      }
    }

    chef.run_list = [
      'recipe[pelias::default]'
    ]
  end
end

This is the log

~/projects/stargazers/temp/vagrant (master)$ PELIAS_VAGRANT_CFG="$(pwd)/pelias_settings.rb" vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'ubuntu-14.04-opscode' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'ubuntu-14.04-opscode' (v0) for provider: virtualbox
    default: Downloading: http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-14.04_chef-provisionerless.box
==> default: Successfully added box 'ubuntu-14.04-opscode' (v0) for 'virtualbox'!
    default: The Berkshelf shelf is at "/Users/barton/.berkshelf/vagrant-berkshelf/shelves/berkshelf20160119-29037-1wzwvyv-default"
==> default: Sharing cookbooks with VM
==> default: Importing base box 'ubuntu-14.04-opscode'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: vagrant_default_1453225460461_19885
==> default: Updating Vagrant's Berkshelf...
==> default: Resolving cookbook dependencies...
==> default: Fetching 'pelias' from source at cookbooks/pelias
==> default: Fetching cookbook index from https://api.berkshelf.com...
==> default: Installing build-essential (2.2.3) from https://api.berkshelf.com ([opscode] https://supermarket.chef.io:443/api/v1)
==> default: Installing ark (0.9.0) from https://api.berkshelf.com ([opscode] https://supermarket.chef.io:443/api/v1)
==> default: Installing 7-zip (1.0.2) from https://api.berkshelf.com ([opscode] https://supermarket.chef.io:443/api/v1)
==> default: Installing apt (2.7.0) from https://api.berkshelf.com ([opscode] https://supermarket.chef.io:443/api/v1)
==> default: Installing chef-sugar (3.1.0) from https://api.berkshelf.com ([opscode] https://supermarket.chef.io:443/api/v1)
==> default: Installing chef_handler (1.1.6) from https://api.berkshelf.com ([opscode] https://supermarket.chef.io:443/api/v1)
==> default: Installing elasticsearch (0.3.13) from https://api.berkshelf.com ([opscode] https://supermarket.chef.io:443/api/v1)
==> default: Installing homebrew (1.12.0) from https://api.berkshelf.com ([opscode] https://supermarket.chef.io:443/api/v1)
==> default: Installing java (1.31.0) from https://api.berkshelf.com ([opscode] https://supermarket.chef.io:443/api/v1)
==> default: Installing monit (0.7.5) from https://api.berkshelf.com ([opscode] https://supermarket.chef.io:443/api/v1)
==> default: Installing nodejs (2.4.0) from https://api.berkshelf.com ([opscode] https://supermarket.chef.io:443/api/v1)
==> default: Using pelias (0.6.0) from source at cookbooks/pelias
==> default: Installing runit (1.5.18) from https://api.berkshelf.com ([opscode] https://supermarket.chef.io:443/api/v1)
==> default: Installing user (0.4.2) from https://api.berkshelf.com ([opscode] https://supermarket.chef.io:443/api/v1)
==> default: Installing windows (1.36.6) from https://api.berkshelf.com ([opscode] https://supermarket.chef.io:443/api/v1)
==> default: Installing xml (1.2.13) from https://api.berkshelf.com ([opscode] https://supermarket.chef.io:443/api/v1)
==> default: Installing yum (3.5.4) from https://api.berkshelf.com ([opscode] https://supermarket.chef.io:443/api/v1)
==> default: Installing yum-epel (0.6.0) from https://api.berkshelf.com ([opscode] https://supermarket.chef.io:443/api/v1)
==> default: Vendoring 7-zip (1.0.2) to /Users/barton/.berkshelf/vagrant-berkshelf/shelves/berkshelf20160119-29037-1wzwvyv-default/7-zip
==> default: Vendoring apt (2.7.0) to /Users/barton/.berkshelf/vagrant-berkshelf/shelves/berkshelf20160119-29037-1wzwvyv-default/apt
==> default: Vendoring ark (0.9.0) to /Users/barton/.berkshelf/vagrant-berkshelf/shelves/berkshelf20160119-29037-1wzwvyv-default/ark
==> default: Vendoring build-essential (2.2.3) to /Users/barton/.berkshelf/vagrant-berkshelf/shelves/berkshelf20160119-29037-1wzwvyv-default/build-essential
==> default: Vendoring chef-sugar (3.1.0) to /Users/barton/.berkshelf/vagrant-berkshelf/shelves/berkshelf20160119-29037-1wzwvyv-default/chef-sugar
==> default: Vendoring chef_handler (1.1.6) to /Users/barton/.berkshelf/vagrant-berkshelf/shelves/berkshelf20160119-29037-1wzwvyv-default/chef_handler
==> default: Vendoring elasticsearch (0.3.13) to /Users/barton/.berkshelf/vagrant-berkshelf/shelves/berkshelf20160119-29037-1wzwvyv-default/elasticsearch
==> default: Vendoring homebrew (1.12.0) to /Users/barton/.berkshelf/vagrant-berkshelf/shelves/berkshelf20160119-29037-1wzwvyv-default/homebrew
==> default: Vendoring java (1.31.0) to /Users/barton/.berkshelf/vagrant-berkshelf/shelves/berkshelf20160119-29037-1wzwvyv-default/java
==> default: Vendoring monit (0.7.5) to /Users/barton/.berkshelf/vagrant-berkshelf/shelves/berkshelf20160119-29037-1wzwvyv-default/monit
==> default: Vendoring nodejs (2.4.0) to /Users/barton/.berkshelf/vagrant-berkshelf/shelves/berkshelf20160119-29037-1wzwvyv-default/nodejs
==> default: Vendoring pelias (0.6.0) to /Users/barton/.berkshelf/vagrant-berkshelf/shelves/berkshelf20160119-29037-1wzwvyv-default/pelias
==> default: Vendoring runit (1.5.18) to /Users/barton/.berkshelf/vagrant-berkshelf/shelves/berkshelf20160119-29037-1wzwvyv-default/runit
==> default: Vendoring user (0.4.2) to /Users/barton/.berkshelf/vagrant-berkshelf/shelves/berkshelf20160119-29037-1wzwvyv-default/user
==> default: Vendoring windows (1.36.6) to /Users/barton/.berkshelf/vagrant-berkshelf/shelves/berkshelf20160119-29037-1wzwvyv-default/windows
==> default: Vendoring xml (1.2.13) to /Users/barton/.berkshelf/vagrant-berkshelf/shelves/berkshelf20160119-29037-1wzwvyv-default/xml
==> default: Vendoring yum (3.5.4) to /Users/barton/.berkshelf/vagrant-berkshelf/shelves/berkshelf20160119-29037-1wzwvyv-default/yum
==> default: Vendoring yum-epel (0.6.0) to /Users/barton/.berkshelf/vagrant-berkshelf/shelves/berkshelf20160119-29037-1wzwvyv-default/yum-epel
==> default: Auto-generating node name for Chef...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 3100 (guest) => 3100 (host) (adapter 1)
    default: 9200 (guest) => 9200 (host) (adapter 1)
    default: 22 (guest) => 2222 (host) (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: 
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default: 
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /vagrant => /Users/barton/projects/stargazers/temp/vagrant
    default: /tmp/vagrant-chef/7bf76f97f8a903bd092b727cda78e577/cookbooks => /Users/barton/.berkshelf/vagrant-berkshelf/shelves/berkshelf20160119-29037-1wzwvyv-default
==> default: Installing Chef 11.12.8 Omnibus package...
==> default: Getting information for chef stable 11.12.8 for ubuntu...
==> default: downloading https://omnitruck-direct.chef.io/stable/chef/metadata?v=11.12.8&p=ubuntu&pv=14.04&m=x86_64
==> default:   to file /tmp/install.sh.1671/metadata.txt
==> default: trying wget...
==> default: url    https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/13.04/x86_64/chef_11.12.8-2_amd64.deb
==> default: md5    708874f3a14484376ec3ab19ae9703f6
==> default: sha256 0e6a2f89d4231782d72a5cd5fbf9609a1e5a3ee38c7fccbebe6707dd86ac271e
==> default: version    11.12.8
==> default: downloaded metadata file looks valid...
==> default: downloading https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/13.04/x86_64/chef_11.12.8-2_amd64.deb
==> default:   to file /tmp/install.sh.1671/chef_11.12.8-2_amd64.deb
==> default: trying wget...
==> default: Comparing checksum with sha256sum...
==> default: Installing chef 11.12.8
==> default: installing with dpkg...
==> default: Selecting previously unselected package chef.
==> default: (Reading database ... 33142 files and directories currently installed.)
==> default: Preparing to unpack .../chef_11.12.8-2_amd64.deb ...
==> default: Unpacking chef (11.12.8-2) ...
==> default: Setting up chef (11.12.8-2) ...
==> default: Thank you for installing Chef!
==> default: Running provisioner: chef_solo...
==> default: Detected Chef (latest) is already installed
==> default: Generating chef JSON and uploading...
==> default: Running chef-solo...
==> default: stdin: is not a tty
==> default: [2016-01-19T17:47:54+00:00] INFO: Forking chef instance to converge...
==> default: [2016-01-19T17:47:54+00:00] WARN: 
==> default: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
==> default: SSL validation of HTTPS requests is disabled. HTTPS connections are still
==> default: encrypted, but chef is not able to detect forged replies or man in the middle
==> default: attacks.
==> default: 
==> default: To fix this issue add an entry like this to your configuration file:
==> default: 
==> default: ```
==> default:   # Verify all HTTPS connections (recommended)
==> default:   ssl_verify_mode :verify_peer
==> default: 
==> default:   # OR, Verify only connections to chef-server
==> default:   verify_api_cert true
==> default: ```
==> default: 
==> default: To check your SSL configuration, or troubleshoot errors, you can use the
==> default: `knife ssl check` command like so:
==> default: 
==> default: ```
==> default:   knife ssl check -c /tmp/vagrant-chef/solo.rb
==> default: ```
==> default: 
==> default: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
==> default: Starting Chef Client, version 11.12.8
==> default: [2016-01-19T17:47:54+00:00] INFO: *** Chef 11.12.8 ***
==> default: [2016-01-19T17:47:54+00:00] INFO: Chef-client pid: 1850
==> default: [2016-01-19T17:47:56+00:00] INFO: Setting the run_list to ["recipe[pelias::default]"] from CLI options
==> default: [2016-01-19T17:47:56+00:00] INFO: Run List is [recipe[pelias::default]]
==> default: [2016-01-19T17:47:56+00:00] INFO: Run List expands to [pelias::default]
==> default: [2016-01-19T17:47:56+00:00] INFO: Starting Chef Run for vagrant-980050e3
==> default: [2016-01-19T17:47:56+00:00] INFO: Running start handlers
==> default: [2016-01-19T17:47:56+00:00] INFO: Start handlers complete.
==> default: Compiling Cookbooks...
==> default: /tmp/vagrant-chef/7bf76f97f8a903bd092b727cda78e577/cookbooks/homebrew/libraries/homebrew_package.rb:26: warning: toplevel constant Homebrew referenced by Chef::Provider::Package::Homebrew
==> default: [2016-01-19T17:47:57+00:00] WARN: Cloning resource attributes for package[unzip] from prior resource (CHEF-3694)
==> default: [2016-01-19T17:47:57+00:00] WARN: Previous package[unzip]: /tmp/vagrant-chef/7bf76f97f8a903bd092b727cda78e577/cookbooks/ark/recipes/default.rb:22:in `block in from_file'
==> default: [2016-01-19T17:47:57+00:00] WARN: Current  package[unzip]: /tmp/vagrant-chef/7bf76f97f8a903bd092b727cda78e577/cookbooks/pelias/recipes/address_deduper.rb:13:in `from_file'
==> default: Converging 100 resources
==> default: Recipe: apt::default
==> default:   * file[/var/lib/apt/periodic/update-success-stamp] action nothing
==> default:  (skipped due to action :nothing)
==> default:   * directory[/etc/apt/apt.conf.d] action create
==> default:  (up to date)
==> default:   * cookbook_file[/etc/apt/apt.conf.d/15update-stamp] action create
==> default: [2016-01-19T17:47:57+00:00] INFO: cookbook_file[/etc/apt/apt.conf.d/15update-stamp] created file /etc/apt/apt.conf.d/15update-stamp
==> default: 
==> default:     - create new file /etc/apt/apt.conf.d/15update-stamp
==> default: [2016-01-19T17:47:57+00:00] INFO: cookbook_file[/etc/apt/apt.conf.d/15update-stamp] updated file contents /etc/apt/apt.conf.d/15update-stamp
==> default: 
==> default:     - update content in file /etc/apt/apt.conf.d/15update-stamp from none to 174cdb
==> default: 
==> default:         --- /etc/apt/apt.conf.d/15update-stamp 2016-01-19 17:47:57.483085002 +0000
==> default: 
==> default:         +++ /tmp/.15update-stamp20160119-1850-1sum6g5  2016-01-19 17:47:57.535085002 +0000
==> default: 
==> default:         @@ -1 +1,2 @@
==> default: 
==> default:         +APT::Update::Post-Invoke-Success {"touch /var/lib/apt/periodic/update-success-stamp 2>/dev/null || true";};
==> default: 
==> default: 
==> default:   * execute[apt-get-update] action run
==> default: [2016-01-19T17:48:24+00:00] INFO: execute[apt-get-update] ran successfully
==> default: 
==> default:     - execute apt-get update
==> default: 
==> default: [2016-01-19T17:48:24+00:00] INFO: execute[apt-get-update] sending touch action to file[/var/lib/apt/periodic/update-success-stamp] (immediate)
==> default:   * file[/var/lib/apt/periodic/update-success-stamp] action touch[2016-01-19T17:48:24+00:00] INFO: file[/var/lib/apt/periodic/update-success-stamp] updated atime and mtime to 2016-01-19 17:48:24 +0000
==> default: 
==> default:     - update utime on file /var/lib/apt/periodic/update-success-stamp
==> default: 
==> default:   * execute[apt-get update] action nothing (skipped due to action :nothing)
==> default:   * execute[apt-get autoremove] action nothing (skipped due to action :nothing)
==> default:   * execute[apt-get autoclean] action nothing (skipped due to action :nothing)
==> default:   * execute[apt-get-update-periodic] action run (skipped due to only_if)
==> default:   * directory[/var/cache/local] action create[2016-01-19T17:48:24+00:00] INFO: directory[/var/cache/local] created directory /var/cache/local
==> default: 
==> default:     - create new directory /var/cache/local[2016-01-19T17:48:24+00:00] INFO: directory[/var/cache/local] owner changed to 0
==> default: [2016-01-19T17:48:24+00:00] INFO: directory[/var/cache/local] group changed to 0
==> default: [2016-01-19T17:48:24+00:00] INFO: directory[/var/cache/local] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default:     - change owner from '' to 'root'
==> default: 
==> default:     - change group from '' to 'root'
==> default: 
==> default: 
==> default:   * directory[/var/cache/local/preseeding] action create
==> default: [2016-01-19T17:48:24+00:00] INFO: directory[/var/cache/local/preseeding] created directory /var/cache/local/preseeding
==> default: 
==> default:     - create new directory /var/cache/local/preseeding
==> default: [2016-01-19T17:48:24+00:00] INFO: directory[/var/cache/local/preseeding] owner changed to 0
==> default: [2016-01-19T17:48:24+00:00] INFO: directory[/var/cache/local/preseeding] group changed to 0
==> default: [2016-01-19T17:48:24+00:00] INFO: directory[/var/cache/local/preseeding] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default:     - change owner from '' to 'root'
==> default: 
==> default:     - change group from '' to 'root'
==> default: 
==> default: 
==> default: Recipe: java::set_java_home
==> default:   * ruby_block[set-env-java-home] action run
==> default: [2016-01-19T17:48:24+00:00] INFO: ruby_block[set-env-java-home] called
==> default: 
==> default:     - execute the ruby block set-env-java-home
==> default: 
==> default: 
==> default:   * directory[/etc/profile.d] action create
==> default:  (up to date)
==> default:   * file[/etc/profile.d/jdk.sh] action create
==> default: [2016-01-19T17:48:24+00:00] INFO: file[/etc/profile.d/jdk.sh] created file /etc/profile.d/jdk.sh
==> default: 
==> default:     - create new file /etc/profile.d/jdk.sh
==> default: [2016-01-19T17:48:24+00:00] INFO: file[/etc/profile.d/jdk.sh] updated file contents /etc/profile.d/jdk.sh
==> default: 
==> default:     - update content in file /etc/profile.d/jdk.sh from none to 582633
==> default: 
==> default:         --- /etc/profile.d/jdk.sh  2016-01-19 17:48:24.363085002 +0000
==> default: 
==> default:         +++ /tmp/.jdk.sh20160119-1850-pcsdvr   2016-01-19 17:48:24.363085002 +0000
==> default: 
==> default:         @@ -1 +1,2 @@
==> default: 
==> default:         +export JAVA_HOME=/usr/lib/jvm/java-8-oracle-amd64
==> default: [2016-01-19T17:48:24+00:00] INFO: file[/etc/profile.d/jdk.sh] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default: 
==> default: Recipe: java::oracle
==> default:   * java_ark[jdk] action install
==> default: [2016-01-19T17:48:24+00:00] INFO: Adding jdk to /usr/lib/jvm/jre1.8.0_45
==> default: 
==> default:     - create dir /usr/lib/jvm and change owner to root:root
==> default: [2016-01-19T17:48:24+00:00] WARN: Cloning resource attributes for package[curl] from prior resource (CHEF-3694)
==> default: [2016-01-19T17:48:24+00:00] WARN: Previous package[curl]: /tmp/vagrant-chef/7bf76f97f8a903bd092b727cda78e577/cookbooks/elasticsearch/recipes/curl.rb:1:in `from_file'
==> default: [2016-01-19T17:48:24+00:00] WARN: Current  package[curl]: /tmp/vagrant-chef/7bf76f97f8a903bd092b727cda78e577/cookbooks/java/providers/ark.rb:72:in `download_direct_from_oracle'
==> default: Recipe: <Dynamically Defined Resource>
==> default:   * package[curl] action install
==> default: 
==> default:     - install version 7.35.0-1ubuntu2.5 of package curl
==> default: 
==> default: 
==> default: 
==> default:     - download oracle tarball straight from the server
==> default: 
==> default:     - extract compressed data into Chef file cache path and
==> default:                     move extracted data to /usr/lib/jvm/jre1.8.0_45
==> default: 
==> default:     - Add /usr/lib/jvm/.java-8-oracle-amd64.jinfo for debian
==> default: 
==> default:     - Symlink /usr/lib/jvm/jre1.8.0_45 to /usr/lib/jvm/java-8-oracle-amd64
==> default: 
==> default: 
==> default:   * package[curl] action nothing
==> default:  (skipped due to action :nothing)
==> default:   * template[/usr/lib/jvm/.java-8-oracle-amd64.jinfo] action create
==> default: [2016-01-19T17:57:11+00:00] INFO: template[/usr/lib/jvm/.java-8-oracle-amd64.jinfo] created file /usr/lib/jvm/.java-8-oracle-amd64.jinfo
==> default: 
==> default:     - create new file /usr/lib/jvm/.java-8-oracle-amd64.jinfo
==> default: [2016-01-19T17:57:11+00:00] INFO: template[/usr/lib/jvm/.java-8-oracle-amd64.jinfo] updated file contents /usr/lib/jvm/.java-8-oracle-amd64.jinfo
==> default: 
==> default:     - update content in file /usr/lib/jvm/.java-8-oracle-amd64.jinfo from none to ea344c
==> default: 
==> default:         --- /usr/lib/jvm/.java-8-oracle-amd64.jinfo    2016-01-19 17:57:11.883085002 +0000
==> default: 
==> default:         +++ /tmp/chef-rendered-template20160119-1850-198f473   2016-01-19 17:57:11.883085002 +0000
==> default: 
==> default:         @@ -1 +1,52 @@
==> default: 
==> default:         +name=java-8-oracle-amd64
==> default: 
==> default:         +priority=1062
==> default: 
==> default:         +section=main
==> default: 
==> default:         +
==> default: 
==> default:         +jdk appletviewer /usr/lib/jvm/java-8-oracle-amd64/bin/appletviewer
==> default: 
==> default:         +jdk apt /usr/lib/jvm/java-8-oracle-amd64/bin/apt
==> default: 
==> default:         +jdk ControlPanel /usr/lib/jvm/java-8-oracle-amd64/bin/ControlPanel
==> default: 
==> default:         +jdk extcheck /usr/lib/jvm/java-8-oracle-amd64/bin/extcheck
==> default: 
==> default:         +jdk idlj /usr/lib/jvm/java-8-oracle-amd64/bin/idlj
==> default: 
==> default:         +jdk jar /usr/lib/jvm/java-8-oracle-amd64/bin/jar
==> default: 
==> default:         +jdk jarsigner /usr/lib/jvm/java-8-oracle-amd64/bin/jarsigner
==> default: 
==> default:         +jdk java /usr/lib/jvm/java-8-oracle-amd64/bin/java
==> default: 
==> default:         +jdk javac /usr/lib/jvm/java-8-oracle-amd64/bin/javac
==> default: 
==> default:         +jdk javadoc /usr/lib/jvm/java-8-oracle-amd64/bin/javadoc
==> default: 
==> default:         +jdk javafxpackager /usr/lib/jvm/java-8-oracle-amd64/bin/javafxpackager
==> default: 
==> default:         +jdk javah /usr/lib/jvm/java-8-oracle-amd64/bin/javah
==> default: 
==> default:         +jdk javap /usr/lib/jvm/java-8-oracle-amd64/bin/javap
==> default: 
==> default:         +jdk javaws /usr/lib/jvm/java-8-oracle-amd64/bin/javaws
==> default: 
==> default:         +jdk jcmd /usr/lib/jvm/java-8-oracle-amd64/bin/jcmd
==> default: 
==> default:         +jdk jconsole /usr/lib/jvm/java-8-oracle-amd64/bin/jconsole
==> default: 
==> default:         +jdk jcontrol /usr/lib/jvm/java-8-oracle-amd64/bin/jcontrol
==> default: 
==> default:         +jdk jdb /usr/lib/jvm/java-8-oracle-amd64/bin/jdb
==> default: 
==> default:         +jdk jdeps /usr/lib/jvm/java-8-oracle-amd64/bin/jdeps
==> default: 
==> default:         +jdk jhat /usr/lib/jvm/java-8-oracle-amd64/bin/jhat
==> default: 
==> default:         +jdk jinfo /usr/lib/jvm/java-8-oracle-amd64/bin/jinfo
==> default: 
==> default:         +jdk jjs /usr/lib/jvm/java-8-oracle-amd64/bin/jjs
==> default: 
==> default:         +jdk jmap /usr/lib/jvm/java-8-oracle-amd64/bin/jmap
==> default: 
==> default:         +jdk jmc /usr/lib/jvm/java-8-oracle-amd64/bin/jmc
==> default: 
==> default:         +jdk jps /usr/lib/jvm/java-8-oracle-amd64/bin/jps
==> default: 
==> default:         +jdk jrunscript /usr/lib/jvm/java-8-oracle-amd64/bin/jrunscript
==> default: 
==> default:         +jdk jsadebugd /usr/lib/jvm/java-8-oracle-amd64/bin/jsadebugd
==> default: 
==> default:         +jdk jstack /usr/lib/jvm/java-8-oracle-amd64/bin/jstack
==> default: 
==> default:         +jdk jstat /usr/lib/jvm/java-8-oracle-amd64/bin/jstat
==> default: 
==> default:         +jdk jstatd /usr/lib/jvm/java-8-oracle-amd64/bin/jstatd
==> default: 
==> default:         +jdk jvisualvm /usr/lib/jvm/java-8-oracle-amd64/bin/jvisualvm
==> default: 
==> default:         +jdk keytool /usr/lib/jvm/java-8-oracle-amd64/bin/keytool
==> default: 
==> default:         +jdk native2ascii /usr/lib/jvm/java-8-oracle-amd64/bin/native2ascii
==> default: 
==> default:         +jdk orbd /usr/lib/jvm/java-8-oracle-amd64/bin/orbd
==> default: 
==> default:         +jdk pack200 /usr/lib/jvm/java-8-oracle-amd64/bin/pack200
==> default: 
==> default:         +jdk policytool /usr/lib/jvm/java-8-oracle-amd64/bin/policytool
==> default: 
==> default:         +jdk rmic /usr/lib/jvm/java-8-oracle-amd64/bin/rmic
==> default: 
==> default:         +jdk rmid /usr/lib/jvm/java-8-oracle-amd64/bin/rmid
==> default: 
==> default:         +jdk rmiregistry /usr/lib/jvm/java-8-oracle-amd64/bin/rmiregistry
==> default: 
==> default:         +jdk schemagen /usr/lib/jvm/java-8-oracle-amd64/bin/schemagen
==> default: 
==> default:         +jdk serialver /usr/lib/jvm/java-8-oracle-amd64/bin/serialver
==> default: 
==> default:         +jdk servertool /usr/lib/jvm/java-8-oracle-amd64/bin/servertool
==> default: 
==> default:         +jdk tnameserv /usr/lib/jvm/java-8-oracle-amd64/bin/tnameserv
==> default: 
==> default:         +jdk unpack200 /usr/lib/jvm/java-8-oracle-amd64/bin/unpack200
==> default: 
==> default:         +jdk wsgen /usr/lib/jvm/java-8-oracle-amd64/bin/wsgen
==> default: 
==> default:         +jdk wsimport /usr/lib/jvm/java-8-oracle-amd64/bin/wsimport
==> default: 
==> default:         +jdk xjc /usr/lib/jvm/java-8-oracle-amd64/bin/xjc
==> default: [2016-01-19T17:57:11+00:00] INFO: template[/usr/lib/jvm/.java-8-oracle-amd64.jinfo] owner changed to 0
==> default: [2016-01-19T17:57:11+00:00] INFO: template[/usr/lib/jvm/.java-8-oracle-amd64.jinfo] group changed to 0
==> default: 
==> default:     - change owner from '' to 'root'
==> default: 
==> default:     - change group from '' to 'root'
==> default: 
==> default: 
==> default:   * java_alternatives[set-java-alternatives] action set
==> default: 
==> default:     - Add alternative for ControlPanel
==> default: 
==> default:     - Add alternative for java
==> default: 
==> default:     - Add alternative for javaws
==> default: 
==> default:     - Add alternative for jcontrol
==> default: 
==> default:     - Add alternative for jjs
==> default: 
==> default:     - Add alternative for keytool
==> default: 
==> default:     - Add alternative for orbd
==> default: 
==> default:     - Add alternative for pack200
==> default: 
==> default:     - Add alternative for policytool
==> default: 
==> default:     - Add alternative for rmid
==> default: 
==> default:     - Add alternative for rmiregistry
==> default: 
==> default:     - Add alternative for servertool
==> default: 
==> default:     - Add alternative for tnameserv
==> default: 
==> default:     - Add alternative for unpack200
==> default: 
==> default: 
==> default: Recipe: java::default_java_symlink
==> default:   * link[/usr/lib/jvm/default-java] action create
==> default: [2016-01-19T17:57:15+00:00] INFO: link[/usr/lib/jvm/default-java] created
==> default: 
==> default:     - create symlink at /usr/lib/jvm/default-java to /usr/lib/jvm/java-8-oracle-amd64
==> default: 
==> default: 
==> default: Recipe: nodejs::nodejs_from_binary
==> default:   * ark[nodejs-binary] action install
==> default: Recipe: <Dynamically Defined Resource>
==> default:   * directory[/usr/local/nodejs-binary-0.12.2] action create
==> default: [2016-01-19T17:57:15+00:00] INFO: directory[/usr/local/nodejs-binary-0.12.2] created directory /usr/local/nodejs-binary-0.12.2
==> default: 
==> default:     - create new directory /usr/local/nodejs-binary-0.12.2
==> default: 
==> default: 
==> default:   * remote_file[/var/chef/cache/nodejs-binary-0.12.2.tar.gz] action create
==> default: [2016-01-19T17:57:15+00:00] INFO: remote_file[/var/chef/cache/nodejs-binary-0.12.2.tar.gz] created file /var/chef/cache/nodejs-binary-0.12.2.tar.gz
==> default: 
==> default:     - create new file /var/chef/cache/nodejs-binary-0.12.2.tar.gz
==> default: [2016-01-19T17:57:51+00:00] INFO: remote_file[/var/chef/cache/nodejs-binary-0.12.2.tar.gz] updated file contents /var/chef/cache/nodejs-binary-0.12.2.tar.gz
==> default: 
==> default:     - update content in file /var/chef/cache/nodejs-binary-0.12.2.tar.gz from none to 4e1578
==> default: 
==> default:         (new content is binary, diff output suppressed)
==> default: 
==> default: 
==> default: [2016-01-19T17:57:51+00:00] INFO: remote_file[/var/chef/cache/nodejs-binary-0.12.2.tar.gz] not queuing delayed action run on execute[unpack /var/chef/cache/nodejs-binary-0.12.2.tar.gz] (delayed), as it's already been queued
==> default:   * execute[unpack /var/chef/cache/nodejs-binary-0.12.2.tar.gz] action nothing
==> default:  (skipped due to action :nothing)
==> default:   * execute[set owner on /usr/local/nodejs-binary-0.12.2] action nothing
==> default:  (skipped due to action :nothing)
==> default:   * link[/usr/local/bin/node] action create
==> default: [2016-01-19T17:57:51+00:00] INFO: link[/usr/local/bin/node] created
==> default: 
==> default:     - create symlink at /usr/local/bin/node to /usr/local/nodejs-binary-0.12.2/bin/node
==> default: 
==> default: 
==> default:   * link[/usr/local/bin/npm] action create
==> default: [2016-01-19T17:57:51+00:00] INFO: link[/usr/local/bin/npm] created
==> default: 
==> default:     - create symlink at /usr/local/bin/npm to /usr/local/nodejs-binary-0.12.2/bin/npm
==> default: 
==> default: 
==> default:   * link[/usr/local/nodejs-binary] action create
==> default: [2016-01-19T17:57:51+00:00] INFO: link[/usr/local/nodejs-binary] created
==> default: 
==> default:     - create symlink at /usr/local/nodejs-binary to /usr/local/nodejs-binary-0.12.2
==> default: 
==> default: 
==> default:   * template[/etc/profile.d/nodejs-binary.sh] action create
==> default:  (skipped due to only_if)
==> default:   * ruby_block[adding '/usr/local/nodejs-binary-0.12.2/bin' to chef-client ENV['PATH']] action run
==> default:  (skipped due to only_if)
==> default: [2016-01-19T17:57:51+00:00] INFO: directory[/usr/local/nodejs-binary-0.12.2] sending run action to execute[unpack /var/chef/cache/nodejs-binary-0.12.2.tar.gz] (delayed)
==> default:   * execute[unpack /var/chef/cache/nodejs-binary-0.12.2.tar.gz] action run
==> default: [2016-01-19T17:57:52+00:00] INFO: execute[unpack /var/chef/cache/nodejs-binary-0.12.2.tar.gz] ran successfully
==> default: 
==> default:     - execute /bin/tar xzf /var/chef/cache/nodejs-binary-0.12.2.tar.gz --strip-components=1
==> default: 
==> default: 
==> default: [2016-01-19T17:57:52+00:00] INFO: execute[unpack /var/chef/cache/nodejs-binary-0.12.2.tar.gz] sending run action to execute[set owner on /usr/local/nodejs-binary-0.12.2] (delayed)
==> default:   * execute[set owner on /usr/local/nodejs-binary-0.12.2] action run
==> default: [2016-01-19T17:57:52+00:00] INFO: execute[set owner on /usr/local/nodejs-binary-0.12.2] ran successfully
==> default: 
==> default:     - execute chown -R root:0 /usr/local/nodejs-binary-0.12.2
==> default: 
==> default: 
==> default: 
==> default: 
==> default: Recipe: elasticsearch::curl
==> default:   * package[curl] action install
==> default:  (up to date)
==> default: Recipe: ark::default
==> default:   * package[libtool] action install
==> default: 
==> default:     - install version 2.4.2-1.7ubuntu1 of package libtool
==> default: 
==> default:   * package[autoconf] action install
==> default: 
==> default:     - install version 2.69-6 of package autoconf
==> default: 
==> default:   * package[unzip] action install
==> default: 
==> default:     - install version 6.0-9ubuntu1.5 of package unzip
==> default: 
==> default:   * package[rsync] action install
==> default:  (up to date)
==> default:   * package[make] action install
==> default:  (up to date)
==> default:   * package[gcc] action install
==> default:  (up to date)
==> default:   * package[autogen] action install
==> default: 
==> default:     - install version 1:5.18-2ubuntu2 of package autogen
==> default: 
==> default: Recipe: elasticsearch::default
==> default:   * group[elasticsearch] action create
==> default: [2016-01-19T17:58:22+00:00] INFO: group[elasticsearch] created
==> default: 
==> default:     - create group[elasticsearch]
==> default: 
==> default: 
==> default:   * user[elasticsearch] action create
==> default: [2016-01-19T17:58:22+00:00] INFO: user[elasticsearch] created
==> default: 
==> default:     - create user user[elasticsearch]
==> default: 
==> default: 
==> default:   * bash[remove the elasticsearch user home] action run
==> default:  (skipped due to only_if)
==> default:   * directory[/usr/local/etc/elasticsearch] action create
==> default: [2016-01-19T17:58:22+00:00] INFO: directory[/usr/local/etc/elasticsearch] created directory /usr/local/etc/elasticsearch
==> default: 
==> default:     - create new directory /usr/local/etc/elasticsearch
==> default: [2016-01-19T17:58:22+00:00] INFO: directory[/usr/local/etc/elasticsearch] owner changed to 998
==> default: [2016-01-19T17:58:22+00:00] INFO: directory[/usr/local/etc/elasticsearch] group changed to 998
==> default: [2016-01-19T17:58:22+00:00] INFO: directory[/usr/local/etc/elasticsearch] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default:     - change owner from '' to 'elasticsearch'
==> default: 
==> default:     - change group from '' to 'elasticsearch'
==> default: 
==> default: 
==> default:   * directory[/usr/local/var/log/elasticsearch] action create
==> default: [2016-01-19T17:58:22+00:00] INFO: directory[/usr/local/var/log/elasticsearch] created directory /usr/local/var/log/elasticsearch
==> default: 
==> default:     - create new directory /usr/local/var/log/elasticsearch
==> default: [2016-01-19T17:58:22+00:00] INFO: directory[/usr/local/var/log/elasticsearch] owner changed to 998
==> default: [2016-01-19T17:58:22+00:00] INFO: directory[/usr/local/var/log/elasticsearch] group changed to 998
==> default: [2016-01-19T17:58:22+00:00] INFO: directory[/usr/local/var/log/elasticsearch] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default:     - change owner from '' to 'elasticsearch'
==> default: 
==> default:     - change group from '' to 'elasticsearch'
==> default: 
==> default: 
==> default:   * directory[/usr/local/var/run] action create
==> default: [2016-01-19T17:58:22+00:00] INFO: directory[/usr/local/var/run] created directory /usr/local/var/run
==> default: 
==> default:     - create new directory /usr/local/var/run
==> default: [2016-01-19T17:58:22+00:00] INFO: directory[/usr/local/var/run] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default: 
==> default:   * directory[/usr/local/var/data/elasticsearch] action create
==> default: [2016-01-19T17:58:22+00:00] INFO: directory[/usr/local/var/data/elasticsearch] created directory /usr/local/var/data/elasticsearch
==> default: 
==> default:     - create new directory /usr/local/var/data/elasticsearch
==> default: [2016-01-19T17:58:22+00:00] INFO: directory[/usr/local/var/data/elasticsearch] owner changed to 998
==> default: [2016-01-19T17:58:22+00:00] INFO: directory[/usr/local/var/data/elasticsearch] group changed to 998
==> default: [2016-01-19T17:58:22+00:00] INFO: directory[/usr/local/var/data/elasticsearch] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default:     - change owner from '' to 'elasticsearch'
==> default: 
==> default:     - change group from '' to 'elasticsearch'
==> default: 
==> default: 
==> default:   * template[/etc/init.d/elasticsearch] action create
==> default: [2016-01-19T17:58:22+00:00] INFO: template[/etc/init.d/elasticsearch] created file /etc/init.d/elasticsearch
==> default: 
==> default:     - create new file /etc/init.d/elasticsearch
==> default: [2016-01-19T17:58:22+00:00] INFO: template[/etc/init.d/elasticsearch] updated file contents /etc/init.d/elasticsearch
==> default: 
==> default:     - update content in file /etc/init.d/elasticsearch from none to 307e8f
==> default: 
==> default:         --- /etc/init.d/elasticsearch  2016-01-19 17:58:22.815085002 +0000
==> default: 
==> default:         +++ /tmp/chef-rendered-template20160119-1850-1tfx6gd   2016-01-19 17:58:22.815085002 +0000
==> default: 
==> default:         @@ -1 +1,183 @@
==> default: 
==> default:         +#!/usr/bin/env bash
==> default: 
==> default:         +#
==> default: 
==> default:         +# elasticsearch
==> default: 
==> default:         +#
==> default: 
==> default:         +### BEGIN INIT INFO
==> default: 
==> default:         +# Provides:          elasticsearch
==> default: 
==> default:         +# Required-Start:    $network $remote_fs $named
==> default: 
==> default:         +# Required-Stop:     $network $remote_fs $named
==> default: 
==> default:         +# Default-Start:     2 3 4 5
==> default: 
==> default:         +# Default-Stop:      0 1 6
==> default: 
==> default:         +# Short-Description: Starts elasticsearch
==> default: 
==> default:         +# Description:       Starts elasticsearch using start-stop-daemon
==> default: 
==> default:         +### END INIT INFO
==> default: 
==> default:         +
==> default: 
==> default:         +# Source networking configuration
==> default: 
==> default:         +#
==> default: 
==> default:         +if [ -f /etc/sysconfig/network ]; then source /etc/sysconfig/network; fi
==> default: 
==> default:         +
==> default: 
==> default:         +# Set limits for environments ignoring `/etc/security/limits.d`
==> default: 
==> default:         +#
==> default: 
==> default:         +ulimit -n 64000
==> default: 
==> default:         +ulimit -l unlimited
==> default: 
==> default:         +
==> default: 
==> default:         +# Exit if networking is not up
==> default: 
==> default:         +#
==> default: 
==> default:         +[ "$NETWORKING" = "no" ] && exit
==> default: 
==> default:         +
==> default: 
==> default:         +PIDFILE='/usr/local/var/run/vagrant_980050e3.pid'
==> default: 
==> default:         +ES_INCLUDE='/usr/local/etc/elasticsearch/elasticsearch-env.sh'
==> default: 
==> default:         +CHECK_PID_RUNNING=$(ps ax | grep 'java' | grep -e "es.pidfile=$PIDFILE" | sed 's/^\s*\([0-9]*\)\s.*/\1/')
==> default: 
==> default:         +
==> default: 
==> default:         +start() {
==> default: 
==> default:         +    if [ -f $PIDFILE ]; then
==> default: 
==> default:         +      # PIDFILE EXISTS -- ES RUNNING?
==> default: 
==> default:         +      echo -e "PID file found in $PIDFILE"
==> default: 
==> default:         +      es_pid="$(cat $PIDFILE)"
==> default: 
==> default:         +      pid_running="$( ps ax | grep 'java' | grep $es_pid )"
==> default: 
==> default:         +
==> default: 
==> default:         +      if [ ! -z "$pid_running" ] ; then
==> default: 
==> default:         +        # EXIT IF ES IS ALREADY RUNNING
==> default: 
==> default:         +        echo -e "\033[31;1mPID $es_pid still alive, Elasticsearch already running...\033[0m"
==> default: 
==> default:         +        return 1
==> default: 
==> default:         +      fi
==> default: 
==> default:         +    fi
==> default: 
==> default:         +
==> default: 
==> default:         +    echo -en "\033[1mStarting Elasticsearch...\033[0m"
==> default: 
==> default:         +    touch $PIDFILE && chown elasticsearch $PIDFILE
==> default: 
==> default:         +      ES_INCLUDE=$ES_INCLUDE start-stop-daemon --background --start --quiet --pidfile $PIDFILE --chuid elasticsearch --exec /usr/local/bin/elasticsearch -- -p $PIDFILE
==> default: 
==> default:         +
==> default: 
==> default:         +    if [ $? ]; then
==> default: 
==> default:         +      echo -e " \e[32m[OK]\e[0m"
==> default: 
==> default:         +    else
==> default: 
==> default:         +      echo -e " \e[31m[FAILURE]\e[0m"
==> default: 
==> default:         +    fi
==> default: 
==> default:         +
==> default: 
==> default:         +    return $?
==> default: 
==> default:         +}
==> default: 
==> default:         +
==> default: 
==> default:         +stop() {
==> default: 
==> default:         +    if [[ -f $PIDFILE ]]; then
==> default: 
==> default:         +      echo -n -e "\033[1mStopping elasticsearch...\033[0m"
==> default: 
==> default:         +
==> default: 
==> default:         +      # REMOVE PIDFILE AND EXIT IF PROCESS NOT RUNNING
==> default: 
==> default:         +      if [ ! $CHECK_PID_RUNNING ]; then
==> default: 
==> default:         +        echo -e "\033[1mPID file found, but no matching process running?\033[0m"
==> default: 
==> default:         +        echo    "Removing PID file..."
==> default: 
==> default:         +        rm $PIDFILE
==> default: 
==> default:         +        exit 0
==> default: 
==> default:         +      fi
==> default: 
==> default:         +
==> default: 
==> default:         +      # KILL PROCESS
==> default: 
==> default:         +      pid=$(cat $PIDFILE)
==> default: 
==> default:         +      su elasticsearch -m -c "kill $(cat $PIDFILE)"
==> default: 
==> default:         +      r=$?
==> default: 
==> default:         +
==> default: 
==> default:         +      # Check for process
==> default: 
==> default:         +      timeout=0
==> default: 
==> default:         +      while [ $(ps -p $pid | wc -l ) -gt '1' ]; do
==> default: 
==> default:         +        echo -n '.'
==> default: 
==> default:         +        (( timeout ++))
==> default: 
==> default:         +        if [ $timeout -gt '30' ]; then return; fi
==> default: 
==> default:         +        sleep 1
==> default: 
==> default:         +      done
==> default: 
==> default:         +
==> default: 
==> default:         +      # Check for pidfile
==> default: 
==> default:         +      timeout=0
==> default: 
==> default:         +      while [ -f $PIDFILE  ]; do
==> default: 
==> default:         +        echo -n '.'
==> default: 
==> default:         +        (( timeout++ ))
==> default: 
==> default:         +        if [ $timeout -gt '15' ]; then return; fi
==> default: 
==> default:         +        sleep 1
==> default: 
==> default:         +      done
==> default: 
==> default:         +
==> default: 
==> default:         +      echo;
==> default: 
==> default:         +
==> default: 
==> default:         +      return $r
==> default: 
==> default:         +    else
==> default: 
==> default:         +      echo -e "\033[1mNo PID file found -- elasticsearch not running?\033[0m"
==> default: 
==> default:         +    fi
==> default: 
==> default:         +}
==> default: 
==> default:         +
==> default: 
==> default:         +restart() {
==> default: 
==> default:         +    stop
==> default: 
==> default:         +    timeout=30
==> default: 
==> default:         +    while ps aux | grep 'java' | grep -e "es.pidfile"; do
==> default: 
==> default:         +      echo -n '.'
==> default: 
==> default:         +      (( timeout-- ))
==> default: 
==> default:         +      if [ $timeout -lt '1' ]; then return; fi
==> default: 
==> default:         +      sleep 1
==> default: 
==> default:         +    done;
==> default: 
==> default:         +    start
==> default: 
==> default:         +}
==> default: 
==> default:         +
==> default: 
==> default:         +status() {
==> default: 
==> default:         +  # GOT PIDFILE?
==> default: 
==> default:         +  [ -f $PIDFILE ] && pid=$(cat $PIDFILE)
==> default: 
==> default:         +
==> default: 
==> default:         +  # RUNNING
==> default: 
==> default:         +  if [[ $pid && -d "/proc/$pid" ]]; then
==> default: 
==> default:         +    version=$(curl -s 'http://localhost:9200' | ruby -rubygems -e 'require "json"; print JSON.parse(STDIN.read)["version"]["number"]')
==> default: 
==> default:         +    echo -e "\033[1;37;46melasticsearch $version running with PID $pid\033[0m"
==> default: 
==> default:         +    # VERBOSE
==> default: 
==> default:         +    if [[ $pid && $1 == '-v' || $1 == '--verbose' ]]; then
==> default: 
==> default:         +      curl -s 'http://localhost:9200/_cluster/nodes/vagrant-980050e3?os&process&jvm&network&transport&settings&pretty' | \
==> default: 
==> default:         +      ruby -rubygems -e '
==> default: 
==> default:         +        begin
==> default: 
==> default:         +          require "json"; h = JSON.parse(STDIN.read); id, node = h["nodes"].first;
==> default: 
==> default:         +          def e(name, value); puts %Q|\e[1;36m#{(name.to_s+":").ljust(20)}\e[0m #{value || "N/A" rescue "N/A"}|; end
==> default: 
==> default:         +          e "HTTP Address",  node["http_address"]
==> default: 
==> default:         +          e "Node Name",     node["name"]
==> default: 
==> default:         +          e "Cluster Name",  h["cluster_name"]
==> default: 
==> default:         +          e "Started",       Time.at(node["jvm"]["start_time"].to_i/1000)
==> default: 
==> default:         +          e "JVM",           "#{node["jvm"]["vm_name"]} (#{node["jvm"]["version"]})"
==> default: 
==> default:         +          e "Memory Total",  node["os"]["mem"]["total"]
==> default: 
==> default:         +          e "Open Files",    node["process"]["max_file_descriptors"]
==> default: 
==> default:         +          e "Configuration", node["settings"]["config"]
==> default: 
==> default:         +        rescue
==> default: 
==> default:         +          puts "Metadata cannot be retrieved."
==> default: 
==> default:         +        end
==> default: 
==> default:         +      '
==> default: 
==> default:         +    fi
==> default: 
==> default:         +    # INCORRECT PID?
==> default: 
==> default:         +    if [ $pid != $CHECK_PID_RUNNING ]; then
==> default: 
==> default:         +      echo -e "\033[1;31;40m[!] Incorrect PID found in $PIDFILE: $pid\033[0m"
==> default: 
==> default:         +      return 1
==> default: 
==> default:         +    fi
==> default: 
==> default:         +    return 0
==> default: 
==> default:         +  fi
==> default: 
==> default:         +
==> default: 
==> default:         +  # NOT RUNNING
==> default: 
==> default:         +  if [[ ! $pid || ! -d "/proc/$pid" ]]; then
==> default: 
==> default:         +    echo -e "\033[1;33;40melasticsearch not running\033[0m"
==> default: 
==> default:         +    return 3
==> default: 
==> default:         +  fi
==> default: 
==> default:         +
==> default: 
==> default:         +  # STALE PID FOUND
==> default: 
==> default:         +  if [[ ! -d "/proc/$pid" && -f $PIDFILE ]]; then
==> default: 
==> default:         +    echo -e "\033[1;31;40m[!] Stale PID found in $PIDFILE\033[0m"
==> default: 
==> default:         +    return 1
==> default: 
==> default:         +  fi
==> default: 
==> default:         +}
==> default: 
==> default:         +
==> default: 
==> default:         +
==> default: 
==> default:         +case "$1" in
==> default: 
==> default:         +  start)
==> default: 
==> default:         +        start
==> default: 
==> default:         +        ;;
==> default: 
==> default:         +  stop)
==> default: 
==> default:         +        stop
==> default: 
==> default:         +        ;;
==> default: 
==> default:         +  restart)
==> default: 
==> default:         +        restart
==> default: 
==> default:         +        ;;
==> default: 
==> default:         +  status)
==> default: 
==> default:         +        status $2
==> default: 
==> default:         +        ;;
==> default: 
==> default:         +  *)
==> default: 
==> default:         +        echo $"Usage: $0 {start|stop|restart|status [-v]|}"
==> default: 
==> default:         +        exit 1
==> default: 
==> default:         +esac
==> default: 
==> default:         +
==> default: 
==> default:         +exit $?
==> default: [2016-01-19T17:58:22+00:00] INFO: template[/etc/init.d/elasticsearch] owner changed to 0
==> default: [2016-01-19T17:58:22+00:00] INFO: template[/etc/init.d/elasticsearch] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default:     - change owner from '' to 'root'
==> default: 
==> default: 
==> default:   * service[elasticsearch] action enable
==> default: [2016-01-19T17:58:22+00:00] INFO: service[elasticsearch] enabled
==> default: 
==> default:     - enable service service[elasticsearch]
==> default: 
==> default: 
==> default:   * ark[elasticsearch] action install
==> default: Recipe: <Dynamically Defined Resource>
==> default:   * directory[/usr/local/elasticsearch-1.7.3] action create
==> default: [2016-01-19T17:58:22+00:00] INFO: directory[/usr/local/elasticsearch-1.7.3] created directory /usr/local/elasticsearch-1.7.3
==> default: 
==> default:     - create new directory /usr/local/elasticsearch-1.7.3
==> default: 
==> default: 
==> default:   * remote_file[/var/chef/cache/elasticsearch-1.7.3.tar.gz] action create
==> default: [2016-01-19T17:58:22+00:00] INFO: remote_file[/var/chef/cache/elasticsearch-1.7.3.tar.gz] created file /var/chef/cache/elasticsearch-1.7.3.tar.gz
==> default: 
==> default:     - create new file /var/chef/cache/elasticsearch-1.7.3.tar.gz
==> default: [2016-01-19T18:00:14+00:00] INFO: remote_file[/var/chef/cache/elasticsearch-1.7.3.tar.gz] updated file contents /var/chef/cache/elasticsearch-1.7.3.tar.gz
==> default: 
==> default:     - update content in file /var/chef/cache/elasticsearch-1.7.3.tar.gz from none to af5176
==> default:         (file sizes exceed 10000000 bytes, diff output suppressed)
==> default: 
==> default: 
==> default: [2016-01-19T18:00:15+00:00] INFO: remote_file[/var/chef/cache/elasticsearch-1.7.3.tar.gz] not queuing delayed action run on execute[unpack /var/chef/cache/elasticsearch-1.7.3.tar.gz] (delayed), as it's already been queued
==> default:   * execute[unpack /var/chef/cache/elasticsearch-1.7.3.tar.gz] action nothing
==> default:  (skipped due to action :nothing)
==> default:   * execute[set owner on /usr/local/elasticsearch-1.7.3] action nothing
==> default:  (skipped due to action :nothing)
==> default:   * link[/usr/local/bin/elasticsearch] action create
==> default: [2016-01-19T18:00:15+00:00] INFO: link[/usr/local/bin/elasticsearch] created
==> default: 
==> default:     - create symlink at /usr/local/bin/elasticsearch to /usr/local/elasticsearch-1.7.3/bin/elasticsearch
==> default: 
==> default: 
==> default:   * link[/usr/local/bin/plugin] action create
==> default: [2016-01-19T18:00:15+00:00] INFO: link[/usr/local/bin/plugin] created
==> default: 
==> default:     - create symlink at /usr/local/bin/plugin to /usr/local/elasticsearch-1.7.3/bin/plugin
==> default: 
==> default: 
==> default:   * link[/usr/local/elasticsearch] action create
==> default: [2016-01-19T18:00:15+00:00] INFO: link[/usr/local/elasticsearch] created
==> default: 
==> default:     - create symlink at /usr/local/elasticsearch to /usr/local/elasticsearch-1.7.3
==> default: 
==> default: 
==> default:   * template[/etc/profile.d/elasticsearch.sh] action create
==> default:  (skipped due to only_if)
==> default:   * ruby_block[adding '/usr/local/elasticsearch-1.7.3/bin' to chef-client ENV['PATH']] action run
==> default:  (skipped due to only_if)
==> default: [2016-01-19T18:00:15+00:00] INFO: directory[/usr/local/elasticsearch-1.7.3] sending run action to execute[unpack /var/chef/cache/elasticsearch-1.7.3.tar.gz] (delayed)
==> default:   * execute[unpack /var/chef/cache/elasticsearch-1.7.3.tar.gz] action run
==> default: [2016-01-19T18:00:15+00:00] INFO: execute[unpack /var/chef/cache/elasticsearch-1.7.3.tar.gz] ran successfully
==> default: 
==> default:     - execute /bin/tar xzf /var/chef/cache/elasticsearch-1.7.3.tar.gz --strip-components=1
==> default: 
==> default: 
==> default: [2016-01-19T18:00:15+00:00] INFO: execute[unpack /var/chef/cache/elasticsearch-1.7.3.tar.gz] sending run action to execute[set owner on /usr/local/elasticsearch-1.7.3] (delayed)
==> default:   * execute[set owner on /usr/local/elasticsearch-1.7.3] action run
==> default: [2016-01-19T18:00:15+00:00] INFO: execute[set owner on /usr/local/elasticsearch-1.7.3] ran successfully
==> default: 
==> default:     - execute chown -R elasticsearch:elasticsearch /usr/local/elasticsearch-1.7.3
==> default: 
==> default: 
==> default: 
==> default: 
==> default: Recipe: elasticsearch::default
==> default:   * bash[enable user limits] action run
==> default: [2016-01-19T18:00:15+00:00] INFO: bash[enable user limits] ran successfully
==> default: 
==> default:     - execute "bash"  "/tmp/chef-script20160119-1850-tnkb06"
==> default: 
==> default: 
==> default:   * log[increase limits for the elasticsearch user] action write
==> default: [2016-01-19T18:00:15+00:00] INFO: increase limits for the elasticsearch user
==> default: 
==> default: 
==> default:   * file[/etc/security/limits.d/10-elasticsearch.conf] action create
==> default: [2016-01-19T18:00:15+00:00] INFO: file[/etc/security/limits.d/10-elasticsearch.conf] created file /etc/security/limits.d/10-elasticsearch.conf
==> default: 
==> default:     - create new file /etc/security/limits.d/10-elasticsearch.conf
==> default: [2016-01-19T18:00:15+00:00] INFO: file[/etc/security/limits.d/10-elasticsearch.conf] updated file contents /etc/security/limits.d/10-elasticsearch.conf
==> default: 
==> default:     - update content in file /etc/security/limits.d/10-elasticsearch.conf from none to 0a6b42
==> default: 
==> default:         --- /etc/security/limits.d/10-elasticsearch.conf   2016-01-19 18:00:15.559085002 +0000
==> default: 
==> default:         +++ /tmp/.10-elasticsearch.conf20160119-1850-6kzpfm    2016-01-19 18:00:15.559085002 +0000
==> default: 
==> default:         @@ -1 +1,3 @@
==> default: 
==> default:         +elasticsearch     -    nofile    64000
==> default: 
==> default:         +elasticsearch     -    memlock   unlimited
==> default: 
==> default: 
==> default:   * template[elasticsearch-env.sh] action create
==> default: [2016-01-19T18:00:15+00:00] INFO: template[elasticsearch-env.sh] created file /usr/local/etc/elasticsearch/elasticsearch-env.sh
==> default: 
==> default:     - create new file /usr/local/etc/elasticsearch/elasticsearch-env.sh
==> default: [2016-01-19T18:00:15+00:00] INFO: template[elasticsearch-env.sh] updated file contents /usr/local/etc/elasticsearch/elasticsearch-env.sh
==> default: 
==> default:     - update content in file /usr/local/etc/elasticsearch/elasticsearch-env.sh from none to 11abbf
==> default: 
==> default:         --- /usr/local/etc/elasticsearch/elasticsearch-env.sh  2016-01-19 18:00:15.563085002 +0000
==> default: 
==> default:         +++ /tmp/chef-rendered-template20160119-1850-xp3quw    2016-01-19 18:00:15.567085002 +0000
==> default: 
==> default:         @@ -1 +1,25 @@
==> default: 
==> default:         +# JVM Configuration for ElasticSearch
==> default: 
==> default:         +# ===================================
==> default: 
==> default:         +# See <https://github.com/elasticsearch/elasticsearch/blob/master/bin/elasticsearch.in.sh>
==> default: 
==> default:         +#
==> default: 
==> default:         +
==> default: 
==> default:         +ES_HOME='/usr/local/elasticsearch'
==> default: 
==> default:         +ES_CLASSPATH=$ES_CLASSPATH:$ES_HOME/lib/*:$ES_HOME/lib/sigar/*
==> default: 
==> default:         +ES_HEAP_SIZE=4790m
==> default: 
==> default:         +
==> default: 
==> default:         +ES_JAVA_OPTS="
==> default: 
==> default:         +  -server
==> default: 
==> default:         +  -Djava.net.preferIPv4Stack=true
==> default: 
==> default:         +  -Des.config=/usr/local/etc/elasticsearch/elasticsearch.yml
==> default: 
==> default:         +  -Xms4790m
==> default: 
==> default:         +  -Xmx4790m
==> default: 
==> default:         +  -Xss256k
==> default: 
==> default:         +    -XX:+UseParNewGC
==> default: 
==> default:         +  -XX:+UseConcMarkSweepGC
==> default: 
==> default:         +  -XX:CMSInitiatingOccupancyFraction=75
==> default: 
==> default:         +  -XX:+UseCMSInitiatingOccupancyOnly
==> default: 
==> default:         +  -XX:+HeapDumpOnOutOfMemoryError
==> default: 
==> default:         +
==> default: 
==> default:         +  
==> default: 
==> default:         +"
==> default: [2016-01-19T18:00:15+00:00] INFO: template[elasticsearch-env.sh] owner changed to 998
==> default: [2016-01-19T18:00:15+00:00] INFO: template[elasticsearch-env.sh] group changed to 998
==> default: [2016-01-19T18:00:15+00:00] INFO: template[elasticsearch-env.sh] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default:     - change owner from '' to 'elasticsearch'
==> default: 
==> default:     - change group from '' to 'elasticsearch'
==> default: 
==> default: 
==> default:   * template[elasticsearch.yml] action create
==> default: [2016-01-19T18:00:15+00:00] INFO: template[elasticsearch.yml] created file /usr/local/etc/elasticsearch/elasticsearch.yml
==> default: 
==> default:     - create new file /usr/local/etc/elasticsearch/elasticsearch.yml
==> default: [2016-01-19T18:00:15+00:00] INFO: template[elasticsearch.yml] updated file contents /usr/local/etc/elasticsearch/elasticsearch.yml
==> default: 
==> default:     - update content in file /usr/local/etc/elasticsearch/elasticsearch.yml from none to 35629f
==> default: 
==> default:         --- /usr/local/etc/elasticsearch/elasticsearch.yml 2016-01-19 18:00:15.571085002 +0000
==> default: 
==> default:         +++ /tmp/chef-rendered-template20160119-1850-t756o 2016-01-19 18:00:15.575085002 +0000
==> default: 
==> default:         @@ -1 +1,81 @@
==> default: 
==> default:         +######################### ElasticSearch Configuration  ########################
==> default: 
==> default:         +
==> default: 
==> default:         +# This file is managed by Chef, do not edit manually, your changes *will* be overwritten!
==> default: 
==> default:         +#
==> default: 
==> default:         +# Please see the source file for context and more information:
==> default: 
==> default:         +#
==> default: 
==> default:         +# https://github.com/elasticsearch/elasticsearch/blob/master/config/elasticsearch.yml
==> default: 
==> default:         +#
==> default: 
==> default:         +# To set configurations not exposed by this template, set the
==> default: 
==> default:         +# `node.elasticsearch[:custom_config]` attribute in your node configuration,
==> default: 
==> default:         +# `elasticsearch/settings` data bag, role/environment definition, etc:
==> default: 
==> default:         +#
==> default: 
==> default:         +#     // ...
==> default:         +#     'threadpool.index.type' => 'fixed',
==> default:         +#     'threadpool.index.size' => '2'
==> default:         +#     // ...
==> default:         +
==> default:         +################################### Cluster ###################################
==> default:         +
==> default:         +cluster.name: elasticsearch
==> default:         +
==> default:         +#################################### Node #####################################
==> default:         +
==> default:         +node.name: vagrant-980050e3
==> default:         +node.max_local_storage_nodes: 1
==> default:         +
==> default:         +#################################### Index ####################################
==> default:         +
==> default:         +index.mapper.dynamic: true
==> default:         +action.auto_create_index: true
==> default:         +action.disable_delete_all_indices: true
==> default:         +
==> default:         +#################################### Paths ####################################
==> default:         +
==> default:         +path.conf: /usr/local/etc/elasticsearch
==> default:         +path.data: /usr/local/var/data/elasticsearch
==> default:         +path.logs: /usr/local/var/log/elasticsearch
==> default:         +
==> default:         +#################################### Plugin ###################################
==> default:         +
==> default:         +
==> default:         +################################### Memory ####################################
==> default:         +
==> default:         +bootstrap.mlockall: false
==> default:         +
==> default:         +############################## Network And HTTP ###############################
==> default:         +
==> default:         +http.port: 9200
==> default:         +
==> default:         +################################### Gateway ###################################
==> default:         +
==> default:         +gateway.expected_nodes: 1
==> default:         +
==> default:         +############################# Recovery Throttling #############################
==> default:         +
==> default:         +
==> default:         +################################## Discovery ##################################
==> default:         +
==> default:         +
==> default:         +discovery.zen.minimum_master_nodes: 1
==> default:         +discovery.zen.ping.multicast.enabled: true
==> default:         +
==> default:         +cloud.node.auto_attributes: true
==> default:         +
==> default:         +################################## Slow Log ###################################
==> default:         +
==> default:         +
==> default:         +################################## GC Logging #################################
==> default:         +
==> default:         +
==> default:         +################################## JMX ########################################
==> default:         +
==> default:         +
==> default:         +################################## Custom #####################################
==> default:         +
==> default:         +index.refresh_interval: 30s
==> default:         +threadpool.bulk.queue: 1000
==> default:         +threadpool.bulk.size: 4
==> default:         +threadpool.bulk.type: fixed
==> default:         +threadpool.bulk.wait_time: 10s[2016-01-19T18:00:15+00:00] INFO: template[elasticsearch.yml] owner changed to 998
==> default: [2016-01-19T18:00:15+00:00] INFO: template[elasticsearch.yml] group changed to 998
==> default: [2016-01-19T18:00:15+00:00] INFO: template[elasticsearch.yml] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default:     - change owner from '' to 'elasticsearch'
==> default:     - change group from '' to 'elasticsearch'
==> default: 
==> default:   * template[logging.yml] action create
==> default: [2016-01-19T18:00:15+00:00] INFO: template[logging.yml] created file /usr/local/etc/elasticsearch/logging.yml
==> default: 
==> default:     - create new file /usr/local/etc/elasticsearch/logging.yml
==> default: [2016-01-19T18:00:15+00:00] INFO: template[logging.yml] updated file contents /usr/local/etc/elasticsearch/logging.yml
==> default: 
==> default:     - update content in file /usr/local/etc/elasticsearch/logging.yml from none to c798a9
==> default: 
==> default:         --- /usr/local/etc/elasticsearch/logging.yml   2016-01-19 18:00:15.579085002 +0000
==> default: 
==> default:         +++ /tmp/chef-rendered-template20160119-1850-gr2ujt    2016-01-19 18:00:15.583085002 +0000
==> default: 
==> default:         @@ -1 +1,72 @@
==> default: 
==> default:         +# This file is managed by Chef, do not edit manually, your changes *will* be overwritten!
==> default: 
==> default:         +#
==> default: 
==> default:         +# Please see the source file for context and more information:
==> default: 
==> default:         +#
==> default: 
==> default:         +# https://github.com/elasticsearch/elasticsearch/blob/master/config/logging.yml
==> default: 
==> default:         +#
==> default: 
==> default:         +# Any settings configured under the `node.elasticsearch.logging`
==> default: 
==> default:         +# node attribute will be automatically used.
==> default: 
==> default:         +#
==> default: 
==> default:         +# So, for example when you set these attributes in your node configuration,
==> default: 
==> default:         +# `elasticsearch/settings` data bag, role/environment definition, etc:
==> default: 
==> default:         +#
==> default: 
==> default:         +#     // ...
==> default: 
==> default:         +#     :logging => {
==> default: 
==> default:         +#          :discovery => 'TRACE',
==> default: 
==> default:         +#          'index.indexing.slowlog' => 'INFO, index_indexing_slow_log_file'
==> default: 
==> default:         +#        }
==> default: 
==> default:         +#    // ...
==> default: 
==> default:         +#
==> default: 
==> default:         +# the relevant configuration will be printed into the `logging.yml` file:
==> default: 
==> default:         +#
==> default: 
==> default:         +#     // ...
==> default: 
==> default:         +#     logger.discovery: TRACE
==> default: 
==> default:         +#     logger.index.indexing.slowlog: INFO, index_indexing_slow_log_file
==> default: 
==> default:         +#     // ...
==> default: 
==> default:         +#
==> default: 
==> default:         +
==> default: 
==> default:         +es.logger.level: INFO
==> default: 
==> default:         +rootLogger: INFO, console, file
==> default: 
==> default:         +
==> default: 
==> default:         +# ----- Configuration set by Chef ---------------------------------------------
==> default: 
==> default:         +logger.action: DEBUG
==> default: 
==> default:         +logger.com.amazonaws: WARN
==> default: 
==> default:         +logger.index.indexing.slowlog: TRACE, index_indexing_slow_log_file
==> default: 
==> default:         +logger.index.search.slowlog: TRACE, index_search_slow_log_file
==> default: 
==> default:         +# -----------------------------------------------------------------------------
==> default: 
==> default:         +
==> default: 
==> default:         +additivity:
==> default: 
==> default:         +  index.search.slowlog: false
==> default: 
==> default:         +  index.indexing.slowlog: false
==> default: 
==> default:         +
==> default: 
==> default:         +appender:
==> default: 
==> default:         +  console:
==> default: 
==> default:         +    type: console
==> default: 
==> default:         +    layout:
==> default: 
==> default:         +      type: consolePattern
==> default: 
==> default:         +      conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
==> default: 
==> default:         +
==> default: 
==> default:         +  file:
==> default: 
==> default:         +    type: dailyRollingFile
==> default: 
==> default:         +    file: ${path.logs}/${cluster.name}.log
==> default: 
==> default:         +    datePattern: "'.'yyyy-MM-dd"
==> default: 
==> default:         +    layout:
==> default: 
==> default:         +      type: pattern
==> default: 
==> default:         +      conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
==> default: 
==> default:         +
==> default: 
==> default:         +  index_search_slow_log_file:
==> default: 
==> default:         +    type: dailyRollingFile
==> default: 
==> default:         +    file: ${path.logs}/${cluster.name}_index_search_slowlog.log
==> default: 
==> default:         +    datePattern: "'.'yyyy-MM-dd"
==> default: 
==> default:         +    layout:
==> default: 
==> default:         +      type: pattern
==> default: 
==> default:         +      conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
==> default: 
==> default:         +
==> default: 
==> default:         +  index_indexing_slow_log_file:
==> default: 
==> default:         +    type: dailyRollingFile
==> default: 
==> default:         +    file: ${path.logs}/${cluster.name}_index_indexing_slowlog.log
==> default: 
==> default:         +    datePattern: "'.'yyyy-MM-dd"
==> default: 
==> default:         +    layout:
==> default: 
==> default:         +      type: pattern
==> default: 
==> default:         +      conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
==> default: [2016-01-19T18:00:15+00:00] INFO: template[logging.yml] owner changed to 998
==> default: [2016-01-19T18:00:15+00:00] INFO: template[logging.yml] group changed to 998
==> default: [2016-01-19T18:00:15+00:00] INFO: template[logging.yml] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default:     - change owner from '' to 'elasticsearch'
==> default: 
==> default:     - change group from '' to 'elasticsearch'
==> default: 
==> default: 
==> default: Recipe: elasticsearch::plugins
==> default:   * directory[/usr/local/elasticsearch-1.7.3/plugins/] action create
==> default: [2016-01-19T18:00:15+00:00] INFO: directory[/usr/local/elasticsearch-1.7.3/plugins/] created directory /usr/local/elasticsearch-1.7.3/plugins/
==> default: 
==> default:     - create new directory /usr/local/elasticsearch-1.7.3/plugins/
==> default: [2016-01-19T18:00:15+00:00] INFO: directory[/usr/local/elasticsearch-1.7.3/plugins/] owner changed to 998
==> default: [2016-01-19T18:00:15+00:00] INFO: directory[/usr/local/elasticsearch-1.7.3/plugins/] group changed to 998
==> default: [2016-01-19T18:00:15+00:00] INFO: directory[/usr/local/elasticsearch-1.7.3/plugins/] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default:     - change owner from '' to 'elasticsearch'
==> default: 
==> default:     - change group from '' to 'elasticsearch'
==> default: 
==> default: 
==> default: Recipe: pelias::setup
==> default:   * package[git] action install
==> default: 
==> default:     - install version 1:1.9.1-1ubuntu0.2 of package git
==> default: 
==> default: 
==> default:   * package[build-essential] action install
==> default: 
==> default:     - install version 11.6ubuntu6 of package build-essential
==> default: 
==> default:   * execute[service elasticsearch start] action run
==> default: [2016-01-19T18:01:47+00:00] INFO: execute[service elasticsearch start] ran successfully
==> default: 
==> default:     - execute service elasticsearch start
==> default: 
==> default: 
==> default: Recipe: pelias::user
==> default:   * user_account[pelias] action create
==> default: Recipe: <Dynamically Defined Resource>
==> default:   * directory[/home/pelias parent directory] action create
==> default:  (up to date)
==> default:   * user[pelias] action create
==> default: [2016-01-19T18:01:47+00:00] INFO: user[pelias] created
==> default: 
==> default:     - create user user[pelias]
==> default: 
==> default:   * directory[/home/pelias] action create[2016-01-19T18:01:47+00:00] INFO: directory[/home/pelias] mode changed to 2755
==> default: 
==> default:     - change mode from '0755' to '02755'
==> default: 
==> default:   * directory[/home/pelias/.ssh] action create[2016-01-19T18:01:47+00:00] INFO: directory[/home/pelias/.ssh] created directory /home/pelias/.ssh
==> default: 
==> default:     - create new directory /home/pelias/.ssh[2016-01-19T18:01:47+00:00] INFO: directory[/home/pelias/.ssh] owner changed to 1000
==> default: [2016-01-19T18:01:47+00:00] INFO: directory[/home/pelias/.ssh] group changed to 1000
==> default: [2016-01-19T18:01:47+00:00] INFO: directory[/home/pelias/.ssh] mode changed to 700
==> default: 
==> default:     - change mode from '' to '0700'
==> default:     - change owner from '' to 'pelias'
==> default:     - change group from '' to '1000'
==> default: 
==> default:   * directory[/home/pelias parent directory] action nothing (skipped due to action :nothing)
==> default:   * user[pelias] action nothing (skipped due to action :nothing)
==> default:   * directory[/home/pelias] action nothing (skipped due to action :nothing)
==> default:   * execute[create ssh keypair for pelias] action nothing (skipped due to action :nothing)
==> default:   * directory[/home/pelias/.ssh] action nothing (skipped due to action :nothing)
==> default: 
==> default: 
==> default: Recipe: pelias::setup
==> default:   * directory[/opt/pelias] action create[2016-01-19T18:01:47+00:00] INFO: directory[/opt/pelias] created directory /opt/pelias
==> default: 
==> default:     - create new directory /opt/pelias[2016-01-19T18:01:47+00:00] INFO: directory[/opt/pelias] owner changed to 1000
==> default: [2016-01-19T18:01:47+00:00] INFO: directory[/opt/pelias] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default:     - change owner from '' to 'pelias'
==> default: 
==> default:   * directory[/opt/pelias/logs] action create[2016-01-19T18:01:47+00:00] INFO: directory[/opt/pelias/logs] created directory /opt/pelias/logs
==> default: 
==> default:     - create new directory /opt/pelias/logs[2016-01-19T18:01:47+00:00] INFO: directory[/opt/pelias/logs] owner changed to 1000
==> default: [2016-01-19T18:01:47+00:00] INFO: directory[/opt/pelias/logs] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default:     - change owner from '' to 'pelias'
==> default: 
==> default:   * directory[/opt/pelias/data/geonames] action create[2016-01-19T18:01:47+00:00] INFO: directory[/opt/pelias/data/geonames] created directory /opt/pelias/data/geonames
==> default: 
==> default:     - create new directory /opt/pelias/data/geonames[2016-01-19T18:01:47+00:00] INFO: directory[/opt/pelias/data/geonames] owner changed to 1000
==> default: [2016-01-19T18:01:47+00:00] INFO: directory[/opt/pelias/data/geonames] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default:     - change owner from '' to 'pelias'
==> default: 
==> default: 
==> default:   * directory[/opt/pelias/data/quattroshapes] action create
==> default: [2016-01-19T18:01:47+00:00] INFO: directory[/opt/pelias/data/quattroshapes] created directory /opt/pelias/data/quattroshapes
==> default: 
==> default:     - create new directory /opt/pelias/data/quattroshapes
==> default: [2016-01-19T18:01:47+00:00] INFO: directory[/opt/pelias/data/quattroshapes] owner changed to 1000
==> default: [2016-01-19T18:01:47+00:00] INFO: directory[/opt/pelias/data/quattroshapes] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default:     - change owner from '' to 'pelias'
==> default: 
==> default: 
==> default:   * directory[/opt/pelias/data/osm] action create
==> default: [2016-01-19T18:01:47+00:00] INFO: directory[/opt/pelias/data/osm] created directory /opt/pelias/data/osm
==> default: 
==> default:     - create new directory /opt/pelias/data/osm
==> default: [2016-01-19T18:01:47+00:00] INFO: directory[/opt/pelias/data/osm] owner changed to 1000
==> default: [2016-01-19T18:01:47+00:00] INFO: directory[/opt/pelias/data/osm] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default:     - change owner from '' to 'pelias'
==> default: 
==> default: 
==> default:   * directory[/opt/pelias/leveldb/osm] action create
==> default: [2016-01-19T18:01:47+00:00] INFO: directory[/opt/pelias/leveldb/osm] created directory /opt/pelias/leveldb/osm
==> default: 
==> default:     - create new directory /opt/pelias/leveldb/osm
==> default: [2016-01-19T18:01:47+00:00] INFO: directory[/opt/pelias/leveldb/osm] owner changed to 1000
==> default: [2016-01-19T18:01:47+00:00] INFO: directory[/opt/pelias/leveldb/osm] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default:     - change owner from '' to 'pelias'
==> default: 
==> default: 
==> default:   * directory[/opt/pelias/leveldb/address_dedup/db] action create
==> default: [2016-01-19T18:01:47+00:00] INFO: directory[/opt/pelias/leveldb/address_dedup/db] created directory /opt/pelias/leveldb/address_dedup/db
==> default: 
==> default:     - create new directory /opt/pelias/leveldb/address_dedup/db
==> default: [2016-01-19T18:01:47+00:00] INFO: directory[/opt/pelias/leveldb/address_dedup/db] owner changed to 1000
==> default: [2016-01-19T18:01:47+00:00] INFO: directory[/opt/pelias/leveldb/address_dedup/db] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default:     - change owner from '' to 'pelias'
==> default: 
==> default: 
==> default: Recipe: pelias::config
==> default:   * directory[/etc/pelias] action create
==> default: [2016-01-19T18:01:47+00:00] INFO: directory[/etc/pelias] created directory /etc/pelias
==> default: 
==> default:     - create new directory /etc/pelias
==> default: [2016-01-19T18:01:47+00:00] INFO: directory[/etc/pelias] owner changed to 1000
==> default: [2016-01-19T18:01:47+00:00] INFO: directory[/etc/pelias] group changed to 1000
==> default: [2016-01-19T18:01:47+00:00] INFO: directory[/etc/pelias] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default:     - change owner from '' to 'pelias'
==> default: 
==> default:     - change group from '' to 'pelias'
==> default: 
==> default: 
==> default:   * directory[/var/log/esclient] action create
==> default: [2016-01-19T18:01:47+00:00] INFO: directory[/var/log/esclient] created directory /var/log/esclient
==> default: 
==> default:     - create new directory /var/log/esclient
==> default: [2016-01-19T18:01:47+00:00] INFO: directory[/var/log/esclient] owner changed to 1000
==> default: [2016-01-19T18:01:47+00:00] INFO: directory[/var/log/esclient] group changed to 1000
==> default: [2016-01-19T18:01:47+00:00] INFO: directory[/var/log/esclient] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default:     - change owner from '' to 'pelias'
==> default: 
==> default:     - change group from '' to 'pelias'
==> default: 
==> default: 
==> default:   * template[/etc/pelias/pelias.json] action create
==> default: [2016-01-19T18:01:48+00:00] INFO: template[/etc/pelias/pelias.json] created file /etc/pelias/pelias.json
==> default: 
==> default:     - create new file /etc/pelias/pelias.json
==> default: [2016-01-19T18:01:48+00:00] INFO: template[/etc/pelias/pelias.json] updated file contents /etc/pelias/pelias.json
==> default: 
==> default:     - update content in file /etc/pelias/pelias.json from none to e93281
==> default: 
==> default:         --- /etc/pelias/pelias.json    2016-01-19 18:01:48.031085002 +0000
==> default: 
==> default:         +++ /tmp/chef-rendered-template20160119-1850-gfdhc3    2016-01-19 18:01:48.035085002 +0000
==> default: 
==> default:         @@ -1 +1,62 @@
==> default: 
==> default:         +{
==> default: 
==> default:         +  "esclient": {
==> default: 
==> default:         +    "apiVersion": "1.3",
==> default: 
==> default:         +    "keepAlive": true,
==> default: 
==> default:         +    "requestTimeout": "120000",
==> default: 
==> default:         +    "maxRetries": "3",
==> default: 
==> default:         +    "deadTimeout": "3000",
==> default: 
==> default:         +    "maxSockets": "20",
==> default: 
==> default:         +    "hosts": [
==> default: 
==> default:         +      {
==> default: 
==> default:         +        "env": "dev",
==> default: 
==> default:         +        "protocol": "http",
==> default: 
==> default:         +        "host": "localhost",
==> default: 
==> default:         +        "port": 9200
==> default: 
==> default:         +      }
==> default: 
==> default:         +    ],
==> default: 
==> default:         +    "log": [{
==> default: 
==> default:         +      "type": "stdio",
==> default: 
==> default:         +      "level": [ "error", "warning" ]
==> default: 
==> default:         +    },{
==> default: 
==> default:         +      "type": "file",
==> default: 
==> default:         +      "level": [ "error", "warning" ],
==> default: 
==> default:         +      "path": "/var/log/esclient/esclient.log"
==> default: 
==> default:         +    }]
==> default: 
==> default:         +  },
==> default: 
==> default:         +  "logger": {
==> default: 
==> default:         +    "level": "verbose"
==> default: 
==> default:         +  },
==> default: 
==> default:         +  "imports": {
==> default: 
==> default:         +    "openaddresses": {
==> default: 
==> default:         +      "datapath": "/opt/pelias/data/openaddresses",
==> default: 
==> default:         +      "adminLookup": "true"
==> default: 
==> default:         +    },
==> default: 
==> default:         +    "geonames": {
==> default: 
==> default:         +      "datapath": "/opt/pelias/data/geonames",
==> default: 
==> default:         +      "adminLookup": false
==> default: 
==> default:         +    },
==> default: 
==> default:         +    "quattroshapes": {
==> default: 
==> default:         +      "datapath": "/opt/pelias/data/quattroshapes",
==> default: 
==> default:         +      "adminLookup": false
==> default: 
==> default:         +    },
==> default: 
==> default:         +    "openstreetmap": {
==> default: 
==> default:         +      "datapath": "/opt/pelias/data/osm",
==> default: 
==> default:         +      "adminLookup": false,
==> default: 
==> default:         +      "leveldbpath": "/opt/pelias/leveldb/osm",
==> default: 
==> default:         +      "import": [{
==> default: 
==> default:         +        "type": { "node": "osmnode", "way": "osmway" },
==> default: 
==> default:         +        "filename": ""
==> default: 
==> default:         +      }]
==> default: 
==> default:         +    }
==> default: 
==> default:         +  },
==> default: 
==> default:         +  "elasticsearch": {
==> default: 
==> default:         +    "settings": {
==> default: 
==> default:         +      "index": {
==> default: 
==> default:         +        "number_of_replicas": "0",
==> default: 
==> default:         +        "number_of_shards": "1",
==> default: 
==> default:         +        "index.index_concurrency": "24"
==> default: 
==> default:         +      }
==> default: 
==> default:         +    }
==> default: 
==> default:         +  }
==> default: 
==> default:         +}
==> default: [2016-01-19T18:01:48+00:00] INFO: template[/etc/pelias/pelias.json] mode changed to 644
==> default: 
==> default:     - change mode from '' to '0644'
==> default: 
==> default: 
==> default: Recipe: pelias::api
==> default:   * git[/opt/pelias/pelias-api] action sync
==> default: [2016-01-19T18:01:49+00:00] INFO: git[/opt/pelias/pelias-api] cloning repo https://github.com/pelias/api.git to /opt/pelias/pelias-api
==> default: 
==> default:     - clone from https://github.com/pelias/api.git into /opt/pelias/pelias-api
==> default: [2016-01-19T18:01:52+00:00] INFO: git[/opt/pelias/pelias-api] checked out branch: master onto: deploy reference: 6000ee0bf427c80fe728ab64a4675305bc893646
==> default: 
==> default:     - checkout ref 6000ee0bf427c80fe728ab64a4675305bc893646 branch master
==> default: 
==> default: 
==> default: [2016-01-19T18:01:52+00:00] INFO: git[/opt/pelias/pelias-api] sending run action to execute[npm install pelias-api] (immediate)
==> default:   * execute[npm install pelias-api] action run
==> default: [2016-01-19T18:06:27+00:00] INFO: execute[npm install pelias-api] ran successfully
==> default: 
==> default:     - execute npm install
==> default: 
==> default:   * execute[npm install pelias-api] action nothing (skipped due to action :nothing)
==> default: Recipe: runit::default
==> default:   * service[runit] action nothing (skipped due to action :nothing)
==> default:   * execute[start-runsvdir] action nothing (skipped due to action :nothing)
==> default:   * execute[runit-hup-init] action nothing (skipped due to action :nothing)
==> default:   * package[runit] action install
==> default: Recipe: <Dynamically Defined Resource>
==> default:   * cookbook_file[/var/chef/cache/preseed/runit/runit-2.1.1-6.2ubuntu3.seed] action create
==> default: [2016-01-19T18:06:27+00:00] INFO: cookbook_file[/var/chef/cache/preseed/runit/runit-2.1.1-6.2ubuntu3.seed] created file /var/chef/cache/preseed/runit/runit-2.1.1-6.2ubuntu3.seed
==> default: 
==> default:     - create new file /var/chef/cache/preseed/runit/runit-2.1.1-6.2ubuntu3.seed
==> default: [2016-01-19T18:06:27+00:00] INFO: cookbook_file[/var/chef/cache/preseed/runit/runit-2.1.1-6.2ubuntu3.seed] updated file contents /var/chef/cache/preseed/runit/runit-2.1.1-6.2ubuntu3.seed
==> default: 
==> default:     - update content in file /var/chef/cache/preseed/runit/runit-2.1.1-6.2ubuntu3.seed from none to 9c6758
==> default: 
==> default:         --- /var/chef/cache/preseed/runit/runit-2.1.1-6.2ubuntu3.seed  2016-01-19 18:06:27.399085002 +0000
==> default: 
==> default:         +++ /tmp/.runit-2.1.1-6.2ubuntu3.seed20160119-1850-n9evys  2016-01-19 18:06:27.403085002 +0000
==> default: 
==> default:         @@ -1 +1,2 @@
==> default: 
==> default:         +runit   runit/signalinit        boolean true
==> default: 
==> default: 
==> default: [2016-01-19T18:06:27+00:00] INFO: package[runit] pre-seeding package installation instructions
==> default: 
==> default:     - preseed package runit
==> default: 
==> default:     - install version 2.1.1-6.2ubuntu3 of package runit
==> default: 
==> default: 
==> default: [2016-01-19T18:06:30+00:00] INFO: package[runit] sending nothing action to execute[start-runsvdir] (immediate)
==> default: Recipe: runit::default
==> default:   * execute[start-runsvdir] action nothing
==> default:  (skipped due to action :nothing)
==> default: [2016-01-19T18:06:30+00:00] INFO: package[runit] sending nothing action to execute[runit-hup-init] (immediate)
==> default:   * execute[runit-hup-init] action nothing
==> default:  (skipped due to action :nothing)
==> default: Recipe: <Dynamically Defined Resource>
==> default:   * service[pelias-api] action nothing
==> default:  (skipped due to action :nothing)
==> default: Recipe: pelias::api
==> default:   * runit_service[pelias-api] action enable
==> default: Recipe: <Dynamically Defined Resource>
==> default:   * directory[/etc/sv/pelias-api] action create
==> default: [2016-01-19T18:06:30+00:00] INFO: directory[/etc/sv/pelias-api] created directory /etc/sv/pelias-api
==> default: 
==> default:     - create new directory /etc/sv/pelias-api
==> default: [2016-01-19T18:06:30+00:00] INFO: directory[/etc/sv/pelias-api] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default: 
==> default:   * template[/etc/sv/pelias-api/run] action create
==> default: [2016-01-19T18:06:30+00:00] INFO: template[/etc/sv/pelias-api/run] created file /etc/sv/pelias-api/run
==> default: 
==> default:     - create new file /etc/sv/pelias-api/run
==> default: [2016-01-19T18:06:30+00:00] INFO: template[/etc/sv/pelias-api/run] updated file contents /etc/sv/pelias-api/run
==> default: 
==> default:     - update content in file /etc/sv/pelias-api/run from none to 609bb5
==> default: 
==> default:         --- /etc/sv/pelias-api/run 2016-01-19 18:06:30.179085002 +0000
==> default: 
==> default:         +++ /tmp/chef-rendered-template20160119-1850-mlkugt    2016-01-19 18:06:30.183085002 +0000
==> default: 
==> default:         @@ -1 +1,6 @@
==> default: 
==> default:         +#!/bin/bash
==> default: 
==> default:         +
==> default: 
==> default:         +cd /opt/pelias/pelias-api
==> default: 
==> default:         +exec 2>&1
==> default: 
==> default:         +exec chpst -u pelias -e /etc/sv/pelias-api/env node index.js
==> default: [2016-01-19T18:06:30+00:00] INFO: template[/etc/sv/pelias-api/run] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default: 
==> default:   * directory[/etc/sv/pelias-api/log] action create
==> default: [2016-01-19T18:06:30+00:00] INFO: directory[/etc/sv/pelias-api/log] created directory /etc/sv/pelias-api/log
==> default: 
==> default:     - create new directory /etc/sv/pelias-api/log
==> default: [2016-01-19T18:06:30+00:00] INFO: directory[/etc/sv/pelias-api/log] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default: 
==> default:   * directory[/etc/sv/pelias-api/log/main] action create
==> default: [2016-01-19T18:06:30+00:00] INFO: directory[/etc/sv/pelias-api/log/main] created directory /etc/sv/pelias-api/log/main
==> default: 
==> default:     - create new directory /etc/sv/pelias-api/log/main
==> default: [2016-01-19T18:06:30+00:00] INFO: directory[/etc/sv/pelias-api/log/main] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default: 
==> default:   * directory[/var/log/pelias-api] action create
==> default: [2016-01-19T18:06:30+00:00] INFO: directory[/var/log/pelias-api] created directory /var/log/pelias-api
==> default: 
==> default:     - create new directory /var/log/pelias-api
==> default: [2016-01-19T18:06:30+00:00] INFO: directory[/var/log/pelias-api] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default: 
==> default:   * file[/etc/sv/pelias-api/log/run] action create
==> default: [2016-01-19T18:06:30+00:00] INFO: file[/etc/sv/pelias-api/log/run] created file /etc/sv/pelias-api/log/run
==> default: 
==> default:     - create new file /etc/sv/pelias-api/log/run
==> default: [2016-01-19T18:06:30+00:00] INFO: file[/etc/sv/pelias-api/log/run] updated file contents /etc/sv/pelias-api/log/run
==> default: 
==> default:     - update content in file /etc/sv/pelias-api/log/run from none to 44c715
==> default: 
==> default:         --- /etc/sv/pelias-api/log/run 2016-01-19 18:06:30.187085002 +0000
==> default: 
==> default:         +++ /tmp/.run20160119-1850-1iafmkp 2016-01-19 18:06:30.191085002 +0000
==> default: 
==> default:         @@ -1 +1,3 @@
==> default: 
==> default:         +#!/bin/sh
==> default: 
==> default:         +exec svlogd -tt /var/log/pelias-api
==> default: [2016-01-19T18:06:30+00:00] INFO: file[/etc/sv/pelias-api/log/run] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default: 
==> default:   * template[/etc/sv/pelias-api/log/config] action create
==> default: [2016-01-19T18:06:30+00:00] INFO: template[/etc/sv/pelias-api/log/config] created file /etc/sv/pelias-api/log/config
==> default: 
==> default:     - create new file /etc/sv/pelias-api/log/config
==> default: [2016-01-19T18:06:30+00:00] INFO: template[/etc/sv/pelias-api/log/config] updated file contents /etc/sv/pelias-api/log/config
==> default: 
==> default:     - update content in file /etc/sv/pelias-api/log/config from none to e3b0c4
==> default: 
==> default:         (no diff)
==> default: [2016-01-19T18:06:30+00:00] INFO: template[/etc/sv/pelias-api/log/config] mode changed to 644
==> default: 
==> default:     - change mode from '' to '0644'
==> default: 
==> default: 
==> default:   * directory[/etc/sv/pelias-api/env] action create
==> default: [2016-01-19T18:06:30+00:00] INFO: directory[/etc/sv/pelias-api/env] created directory /etc/sv/pelias-api/env
==> default: 
==> default:     - create new directory /etc/sv/pelias-api/env
==> default: [2016-01-19T18:06:30+00:00] INFO: directory[/etc/sv/pelias-api/env] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default: 
==> default:   * file[/etc/sv/pelias-api/env/PELIAS_CONFIG] action create
==> default: [2016-01-19T18:06:30+00:00] INFO: file[/etc/sv/pelias-api/env/PELIAS_CONFIG] created file /etc/sv/pelias-api/env/PELIAS_CONFIG
==> default: 
==> default:     - create new file /etc/sv/pelias-api/env/PELIAS_CONFIG
==> default: [2016-01-19T18:06:30+00:00] INFO: file[/etc/sv/pelias-api/env/PELIAS_CONFIG] updated file contents /etc/sv/pelias-api/env/PELIAS_CONFIG
==> default: 
==> default:     - update content in file /etc/sv/pelias-api/env/PELIAS_CONFIG from none to 4d3a29
==> default: 
==> default:         --- /etc/sv/pelias-api/env/PELIAS_CONFIG   2016-01-19 18:06:30.199085002 +0000
==> default: 
==> default:         +++ /tmp/.PELIAS_CONFIG20160119-1850-1p0ol53   2016-01-19 18:06:30.199085002 +0000
==> default: 
==> default:         @@ -1 +1,2 @@
==> default: 
==> default:         +/etc/pelias/pelias.json
==> default: 
==> default: 
==> default:   * file[/etc/sv/pelias-api/env/NODE_ENV] action create
==> default: [2016-01-19T18:06:30+00:00] INFO: file[/etc/sv/pelias-api/env/NODE_ENV] created file /etc/sv/pelias-api/env/NODE_ENV
==> default: 
==> default:     - create new file /etc/sv/pelias-api/env/NODE_ENV
==> default: [2016-01-19T18:06:30+00:00] INFO: file[/etc/sv/pelias-api/env/NODE_ENV] updated file contents /etc/sv/pelias-api/env/NODE_ENV
==> default: 
==> default:     - update content in file /etc/sv/pelias-api/env/NODE_ENV from none to ef260e
==> default: 
==> default:         --- /etc/sv/pelias-api/env/NODE_ENV    2016-01-19 18:06:30.203085002 +0000
==> default: 
==> default:         +++ /tmp/.NODE_ENV20160119-1850-minvmh 2016-01-19 18:06:30.203085002 +0000
==> default: 
==> default:         @@ -1 +1,2 @@
==> default: 
==> default:         +dev
==> default: 
==> default: 
==> default:   * file[/etc/sv/pelias-api/env/PORT] action create
==> default: [2016-01-19T18:06:30+00:00] INFO: file[/etc/sv/pelias-api/env/PORT] created file /etc/sv/pelias-api/env/PORT
==> default: 
==> default:     - create new file /etc/sv/pelias-api/env/PORT
==> default: [2016-01-19T18:06:30+00:00] INFO: file[/etc/sv/pelias-api/env/PORT] updated file contents /etc/sv/pelias-api/env/PORT
==> default: 
==> default:     - update content in file /etc/sv/pelias-api/env/PORT from none to 47012d
==> default: 
==> default:         --- /etc/sv/pelias-api/env/PORT    2016-01-19 18:06:30.203085002 +0000
==> default: 
==> default:         +++ /tmp/.PORT20160119-1850-1l3nq3e    2016-01-19 18:06:30.207085002 +0000
==> default: 
==> default:         @@ -1 +1,2 @@
==> default: 
==> default:         +3100
==> default: 
==> default: 
==> default:   * link[/etc/init.d/pelias-api] action create
==> default: [2016-01-19T18:06:30+00:00] INFO: link[/etc/init.d/pelias-api] created
==> default: 
==> default:     - create symlink at /etc/init.d/pelias-api to /usr/bin/sv
==> default: 
==> default: 
==> default: [2016-01-19T18:06:30+00:00] INFO: runit_service[pelias-api] configured
==> default: 
==> default:     - configure service runit_service[pelias-api]
==> default:   * link[/etc/service/pelias-api] action create
==> default: [2016-01-19T18:06:30+00:00] INFO: link[/etc/service/pelias-api] created
==> default: 
==> default:     - create symlink at /etc/service/pelias-api to /etc/sv/pelias-api
==> default: 
==> default: 
==> default: [2016-01-19T18:06:35+00:00] INFO: runit_service[pelias-api] enabled
==> default: 
==> default:     - enable service runit_service[pelias-api]
==> default: 
==> default: 
==> default: Recipe: pelias::api
==> default:   * runit_service[pelias-api] action start
==> default:  (up to date)
==> default: Recipe: pelias::schema
==> default:   * deploy[/opt/pelias/pelias-schema] action deploy
==> default: 
==> default:     - create new directory /opt/pelias/pelias-schema
==> default:     - create new directory /opt/pelias/pelias-schema/shared
==> default: [2016-01-19T18:06:38+00:00] INFO: deploy[/opt/pelias/pelias-schema] cloning repo https://github.com/pelias/schema.git to /opt/pelias/pelias-schema/shared/cached-copy
==> default: 
==> default:     - clone from https://github.com/pelias/schema.git into /opt/pelias/pelias-schema/shared/cached-copy
==> default: [2016-01-19T18:06:40+00:00] INFO: deploy[/opt/pelias/pelias-schema] checked out branch: master onto: deploy reference: 6b1055bd034b2a684b047518d8870d6e9eeb6c32
==> default: 
==> default:     - checkout ref 6b1055bd034b2a684b047518d8870d6e9eeb6c32 branch master
==> default: 
==> default: 
==> default: [2016-01-19T18:06:40+00:00] INFO: deploy[/opt/pelias/pelias-schema] set user to pelias
==> default: 
==> default:     - force ownership of /opt/pelias/pelias-schema to :pelias
==> default: [2016-01-19T18:06:40+00:00] INFO: deploy[/opt/pelias/pelias-schema] copied the cached checkout to /opt/pelias/pelias-schema/releases/20160119180637
==> default: 
==> default:     - deploy from repo to /opt/pelias/pelias-schema/releases 
==> default: [2016-01-19T18:06:40+00:00] INFO: deploy[/opt/pelias/pelias-schema] set user to pelias
==> default: 
==> default:     - force ownership of /opt/pelias/pelias-schema to :pelias
==> default: [2016-01-19T18:06:40+00:00] INFO: deploy[/opt/pelias/pelias-schema] queueing checkdeploy hook /opt/pelias/pelias-schema/releases/20160119180637/deploy/before_migrate.rb
==> default: 
==> default:     - evaluate block and run any associated actions
==> default: [2016-01-19T18:06:40+00:00] INFO: deploy[/opt/pelias/pelias-schema] made pre-migration symlinks
==> default: 
==> default:     - make pre-migration symlinks: 
==> default: [2016-01-19T18:06:40+00:00] INFO: deploy[/opt/pelias/pelias-schema] queueing checkdeploy hook /opt/pelias/pelias-schema/releases/20160119180637/deploy/before_symlink.rb
==> default: 
==> default:     - evaluate block and run any associated actions
==> default: [2016-01-19T18:06:40+00:00] INFO: deploy[/opt/pelias/pelias-schema] purged directories in checkout log, tmp/pids, public/system
==> default: 
==> default:     - purge directories in checkout log, tmp/pids, public/system
==> default: 
==> default:     - create new directory /opt/pelias/pelias-schema/releases/20160119180637/tmp
==> default: 
==> default:     - create new directory /opt/pelias/pelias-schema/releases/20160119180637/public
==> default: 
==> default:     - create new directory /opt/pelias/pelias-schema/releases/20160119180637/config
==> default: [2016-01-19T18:06:40+00:00] INFO: deploy[/opt/pelias/pelias-schema] created directories before symlinking: tmp,public,config
==> default: [2016-01-19T18:06:40+00:00] INFO: deploy[/opt/pelias/pelias-schema] linked shared paths into current release: system => public/system, pids => tmp/pids, log => log
==> default: 
==> default:     - link shared paths into current release:  system => public/system, pids => tmp/pids, log => log
==> default: [2016-01-19T18:06:40+00:00] INFO: deploy[/opt/pelias/pelias-schema] made pre-migration symlinks
==> default: 
==> default:     - make pre-migration symlinks: 
==> default: [2016-01-19T18:06:40+00:00] INFO: deploy[/opt/pelias/pelias-schema] set user to pelias
==> default: 
==> default:     - force ownership of /opt/pelias/pelias-schema to :pelias
==> default: [2016-01-19T18:06:40+00:00] INFO: deploy[/opt/pelias/pelias-schema] linked release /opt/pelias/pelias-schema/releases/20160119180637 into production at /opt/pelias/pelias-schema/current
==> default: 
==> default:     - remove existing link at /opt/pelias/pelias-schema/current
==> default: 
==> default:     - link release /opt/pelias/pelias-schema/releases/20160119180637 into production at /opt/pelias/pelias-schema/current
==> default: [2016-01-19T18:06:40+00:00] INFO: deploy[/opt/pelias/pelias-schema] set user to pelias
==> default: 
==> default:     - force ownership of /opt/pelias/pelias-schema to :pelias
==> default: [2016-01-19T18:06:40+00:00] INFO: deploy[/opt/pelias/pelias-schema] updated symlinks
==> default: [2016-01-19T18:06:40+00:00] INFO: deploy[/opt/pelias/pelias-schema] queueing checkdeploy hook /opt/pelias/pelias-schema/releases/20160119180637/deploy/before_restart.rb
==> default: 
==> default:     - evaluate block and run any associated actions
==> default: [2016-01-19T18:06:40+00:00] INFO: deploy[/opt/pelias/pelias-schema] queueing checkdeploy hook /opt/pelias/pelias-schema/releases/20160119180637/deploy/after_restart.rb
==> default: 
==> default:     - evaluate block and run any associated actions
==> default: 
==> default:     - update release history data
==> default: [2016-01-19T18:06:40+00:00] INFO: deploy[/opt/pelias/pelias-schema] deployed to /opt/pelias/pelias-schema
==> default: 
==> default: 
==> default: [2016-01-19T18:06:40+00:00] INFO: deploy[/opt/pelias/pelias-schema] sending run action to execute[npm install pelias-schema] (immediate)
==> default:   * execute[npm install pelias-schema] action run
==> default: [2016-01-19T18:07:06+00:00] INFO: execute[npm install pelias-schema] ran successfully
==> default: 
==> default:     - execute npm install
==> default: 
==> default:   * execute[npm install pelias-schema] action nothing (skipped due to action :nothing)
==> default:   * execute[node scripts/drop_index.js --force-yes] action run (skipped due to only_if)
==> default:   * execute[node scripts/create_index.js] action run
==> default: [2016-01-19T18:07:08+00:00] INFO: execute[node scripts/create_index.js] ran successfully
==> default: 
==> default:     - execute node scripts/create_index.js
==> default: 
==> default: [2016-01-19T18:07:08+00:00] INFO: execute[node scripts/create_index.js] sending run action to execute[wipe data] (immediate)
==> default:   * execute[wipe data] action run
==> default: [2016-01-19T18:07:08+00:00] INFO: execute[wipe data] ran successfully
==> default: 
==> default:     - execute     rm -rf /opt/pelias/data/osm/*       /opt/pelias/data/geonames/*       /opt/pelias/data/quattroshapes/*       /opt/pelias/leveldb/osm/*
==> default: 
==> default: 
==> default:   * execute[wipe data] action nothing (skipped due to action :nothing)
==> default: Recipe: <Dynamically Defined Resource>
==> default:   * service[pelias-address-deduper] action nothing (skipped due to action :nothing)
==> default: Recipe: pelias::_address_deduper_service
==> default:   * runit_service[pelias-address-deduper] action enable
==> default: Recipe: <Dynamically Defined Resource>
==> default:   * directory[/etc/sv/pelias-address-deduper] action create
==> default: [2016-01-19T18:07:08+00:00] INFO: directory[/etc/sv/pelias-address-deduper] created directory /etc/sv/pelias-address-deduper
==> default: 
==> default:     - create new directory /etc/sv/pelias-address-deduper
==> default: [2016-01-19T18:07:08+00:00] INFO: directory[/etc/sv/pelias-address-deduper] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default: 
==> default:   * template[/etc/sv/pelias-address-deduper/run] action create
==> default: [2016-01-19T18:07:08+00:00] INFO: template[/etc/sv/pelias-address-deduper/run] created file /etc/sv/pelias-address-deduper/run
==> default: 
==> default:     - create new file /etc/sv/pelias-address-deduper/run
==> default: [2016-01-19T18:07:08+00:00] INFO: template[/etc/sv/pelias-address-deduper/run] updated file contents /etc/sv/pelias-address-deduper/run
==> default: 
==> default:     - update content in file /etc/sv/pelias-address-deduper/run from none to b30fe0
==> default: 
==> default:         --- /etc/sv/pelias-address-deduper/run 2016-01-19 18:07:08.139085002 +0000
==> default: 
==> default:         +++ /tmp/chef-rendered-template20160119-1850-vt6n3d    2016-01-19 18:07:08.143085002 +0000
==> default: 
==> default:         @@ -1 +1,6 @@
==> default: 
==> default:         +#!/bin/bash
==> default: 
==> default:         +
==> default: 
==> default:         +cd /opt/pelias/address_deduper
==> default: 
==> default:         +exec 2>&1
==> default: 
==> default:         +exec chpst -u pelias -e /etc/sv/pelias-address-deduper/env python app.py serve
==> default: [2016-01-19T18:07:08+00:00] INFO: template[/etc/sv/pelias-address-deduper/run] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default: 
==> default:   * directory[/etc/sv/pelias-address-deduper/log] action create
==> default: [2016-01-19T18:07:08+00:00] INFO: directory[/etc/sv/pelias-address-deduper/log] created directory /etc/sv/pelias-address-deduper/log
==> default: 
==> default:     - create new directory /etc/sv/pelias-address-deduper/log
==> default: [2016-01-19T18:07:08+00:00] INFO: directory[/etc/sv/pelias-address-deduper/log] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default: 
==> default:   * directory[/etc/sv/pelias-address-deduper/log/main] action create
==> default: [2016-01-19T18:07:08+00:00] INFO: directory[/etc/sv/pelias-address-deduper/log/main] created directory /etc/sv/pelias-address-deduper/log/main
==> default: 
==> default:     - create new directory /etc/sv/pelias-address-deduper/log/main
==> default: [2016-01-19T18:07:08+00:00] INFO: directory[/etc/sv/pelias-address-deduper/log/main] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default: 
==> default:   * directory[/var/log/pelias-address-deduper] action create
==> default: [2016-01-19T18:07:08+00:00] INFO: directory[/var/log/pelias-address-deduper] created directory /var/log/pelias-address-deduper
==> default: 
==> default:     - create new directory /var/log/pelias-address-deduper
==> default: [2016-01-19T18:07:08+00:00] INFO: directory[/var/log/pelias-address-deduper] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default: 
==> default:   * file[/etc/sv/pelias-address-deduper/log/run] action create
==> default: [2016-01-19T18:07:08+00:00] INFO: file[/etc/sv/pelias-address-deduper/log/run] created file /etc/sv/pelias-address-deduper/log/run
==> default: 
==> default:     - create new file /etc/sv/pelias-address-deduper/log/run
==> default: [2016-01-19T18:07:08+00:00] INFO: file[/etc/sv/pelias-address-deduper/log/run] updated file contents /etc/sv/pelias-address-deduper/log/run
==> default: 
==> default:     - update content in file /etc/sv/pelias-address-deduper/log/run from none to 3e90ac
==> default: 
==> default:         --- /etc/sv/pelias-address-deduper/log/run 2016-01-19 18:07:08.151085002 +0000
==> default: 
==> default:         +++ /tmp/.run20160119-1850-fdutoy  2016-01-19 18:07:08.151085002 +0000
==> default: 
==> default:         @@ -1 +1,3 @@
==> default: 
==> default:         +#!/bin/sh
==> default: 
==> default:         +exec svlogd -tt /var/log/pelias-address-deduper
==> default: [2016-01-19T18:07:08+00:00] INFO: file[/etc/sv/pelias-address-deduper/log/run] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default: 
==> default:   * template[/etc/sv/pelias-address-deduper/log/config] action create
==> default: [2016-01-19T18:07:08+00:00] INFO: template[/etc/sv/pelias-address-deduper/log/config] created file /etc/sv/pelias-address-deduper/log/config
==> default: 
==> default:     - create new file /etc/sv/pelias-address-deduper/log/config
==> default: [2016-01-19T18:07:08+00:00] INFO: template[/etc/sv/pelias-address-deduper/log/config] updated file contents /etc/sv/pelias-address-deduper/log/config
==> default: 
==> default:     - update content in file /etc/sv/pelias-address-deduper/log/config from none to e3b0c4
==> default: 
==> default:         (no diff)
==> default: [2016-01-19T18:07:08+00:00] INFO: template[/etc/sv/pelias-address-deduper/log/config] mode changed to 644
==> default: 
==> default:     - change mode from '' to '0644'
==> default: 
==> default: 
==> default:   * directory[/etc/sv/pelias-address-deduper/env] action create
==> default: [2016-01-19T18:07:08+00:00] INFO: directory[/etc/sv/pelias-address-deduper/env] created directory /etc/sv/pelias-address-deduper/env
==> default: 
==> default:     - create new directory /etc/sv/pelias-address-deduper/env
==> default: [2016-01-19T18:07:08+00:00] INFO: directory[/etc/sv/pelias-address-deduper/env] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default: 
==> default:   * file[/etc/sv/pelias-address-deduper/env/DEDUPER_STORAGE_LEVELDB_DIR] action create
==> default: [2016-01-19T18:07:08+00:00] INFO: file[/etc/sv/pelias-address-deduper/env/DEDUPER_STORAGE_LEVELDB_DIR] created file /etc/sv/pelias-address-deduper/env/DEDUPER_STORAGE_LEVELDB_DIR
==> default: 
==> default:     - create new file /etc/sv/pelias-address-deduper/env/DEDUPER_STORAGE_LEVELDB_DIR
==> default: [2016-01-19T18:07:08+00:00] INFO: file[/etc/sv/pelias-address-deduper/env/DEDUPER_STORAGE_LEVELDB_DIR] updated file contents /etc/sv/pelias-address-deduper/env/DEDUPER_STORAGE_LEVELDB_DIR
==> default: 
==> default:     - update content in file /etc/sv/pelias-address-deduper/env/DEDUPER_STORAGE_LEVELDB_DIR from none to e3b0c4
==> default: 
==> default:         (no diff)
==> default: 
==> default: 
==> default:   * template[/etc/sv/pelias-address-deduper/finish] action create
==> default: [2016-01-19T18:07:08+00:00] INFO: template[/etc/sv/pelias-address-deduper/finish] created file /etc/sv/pelias-address-deduper/finish
==> default: 
==> default:     - create new file /etc/sv/pelias-address-deduper/finish
==> default: [2016-01-19T18:07:08+00:00] INFO: template[/etc/sv/pelias-address-deduper/finish] updated file contents /etc/sv/pelias-address-deduper/finish
==> default: 
==> default:     - update content in file /etc/sv/pelias-address-deduper/finish from none to da94fd
==> default: 
==> default:         --- /etc/sv/pelias-address-deduper/finish  2016-01-19 18:07:08.167085002 +0000
==> default: 
==> default:         +++ /tmp/chef-rendered-template20160119-1850-5rpnqv    2016-01-19 18:07:08.171085002 +0000
==> default: 
==> default:         @@ -1 +1,4 @@
==> default: 
==> default:         +#!/bin/bash
==> default: 
==> default:         +
==> default: 
==> default:         +/usr/bin/pkill -9 -f "python app.py"
==> default: [2016-01-19T18:07:08+00:00] INFO: template[/etc/sv/pelias-address-deduper/finish] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default: 
==> default:   * link[/etc/init.d/pelias-address-deduper] action create
==> default: [2016-01-19T18:07:08+00:00] INFO: link[/etc/init.d/pelias-address-deduper] created
==> default: 
==> default:     - create symlink at /etc/init.d/pelias-address-deduper to /usr/bin/sv
==> default: 
==> default: 
==> default: [2016-01-19T18:07:08+00:00] INFO: runit_service[pelias-address-deduper] configured
==> default: 
==> default:     - configure service runit_service[pelias-address-deduper]
==> default:   * link[/etc/service/pelias-address-deduper] action create
==> default: [2016-01-19T18:07:08+00:00] INFO: link[/etc/service/pelias-address-deduper] created
==> default: 
==> default:     - create symlink at /etc/service/pelias-address-deduper to /etc/sv/pelias-address-deduper
==> default: 
==> default: 
==> default: [2016-01-19T18:07:11+00:00] INFO: runit_service[pelias-address-deduper] enabled
==> default: 
==> default:     - enable service runit_service[pelias-address-deduper]
==> default: 
==> default: 
==> default: Recipe: pelias::address_deduper
==> default:   * execute[chown leveldb dir] action run
==> default: [2016-01-19T18:07:38+00:00] INFO: execute[chown leveldb dir] ran successfully
==> default: 
==> default:     - execute chown -R pelias:pelias /opt/pelias/leveldb
==> default: 
==> default: 
==> default:   * package[unzip] action install
==> default:  (up to date)
==> default:   * package[python-pip] action install
==> default: 
==> default:     - install version 1.5.4-1ubuntu3 of package python-pip
==> default: 
==> default: 
==> default:   * package[python-dev] action install
==> default: 
==> default:     - install version 2.7.5-5ubuntu3 of package python-dev
==> default: 
==> default:   * git[/opt/pelias/address_deduper] action sync
==> default: [2016-01-19T18:09:28+00:00] INFO: git[/opt/pelias/address_deduper] cloning repo https://github.com/openvenues/address_deduper to /opt/pelias/address_deduper
==> default: 
==> default:     - clone from https://github.com/openvenues/address_deduper into /opt/pelias/address_deduper
==> default: [2016-01-19T18:09:29+00:00] INFO: git[/opt/pelias/address_deduper] checked out branch: master onto: deploy reference: 9b503bc979a6f6c809f3ea812879fba465ef6d76
==> default: 
==> default:     - checkout ref 9b503bc979a6f6c809f3ea812879fba465ef6d76 branch master
==> default: 
==> default: 
==> default: [2016-01-19T18:09:29+00:00] INFO: git[/opt/pelias/address_deduper] sending run action to execute[install address deduper pip requirements] (immediate)
==> default:   * execute[install address deduper pip requirements] action run
==> default: [2016-01-19T18:11:41+00:00] INFO: execute[install address deduper pip requirements] ran successfully
==> default: 
==> default:     - execute pip install -U -r requirements.txt
==> default: 
==> default: [2016-01-19T18:11:41+00:00] INFO: git[/opt/pelias/address_deduper] sending kill action to runit_service[pelias-address-deduper] (immediate)
==> default: Recipe: pelias::_address_deduper_service
==> default:   * runit_service[pelias-address-deduper] action kill
==> default:  (up to date)
==> default: Recipe: pelias::address_deduper
==> default:   * execute[install address deduper pip requirements] action nothing
==> default:  (skipped due to action :nothing)
==> default: Recipe: pelias::openaddresses
==> default:   * directory[/opt/pelias/data/openaddresses] action create
==> default: [2016-01-19T18:11:41+00:00] INFO: directory[/opt/pelias/data/openaddresses] created directory /opt/pelias/data/openaddresses
==> default: 
==> default:     - create new directory /opt/pelias/data/openaddresses
==> default: [2016-01-19T18:11:41+00:00] INFO: directory[/opt/pelias/data/openaddresses] owner changed to 1000
==> default: [2016-01-19T18:11:41+00:00] INFO: directory[/opt/pelias/data/openaddresses] group changed to 1000
==> default: [2016-01-19T18:11:41+00:00] INFO: directory[/opt/pelias/data/openaddresses] mode changed to 755
==> default: 
==> default:     - change mode from '' to '0755'
==> default: 
==> default:     - change owner from '' to 'pelias'
==> default: 
==> default:     - change group from '' to 'pelias'
==> default: 
==> default: 
==> default:   * deploy[/opt/pelias/openaddresses] action deploy
==> default: 
==> default:     - create new directory /opt/pelias/openaddresses
==> default: 
==> default:     - create new directory /opt/pelias/openaddresses/shared
==> default: [2016-01-19T18:11:42+00:00] INFO: deploy[/opt/pelias/openaddresses] cloning repo https://github.com/pelias/openaddresses to /opt/pelias/openaddresses/shared/cached-copy
==> default: 
==> default:     - clone from https://github.com/pelias/openaddresses into /opt/pelias/openaddresses/shared/cached-copy
==> default: [2016-01-19T18:11:43+00:00] INFO: deploy[/opt/pelias/openaddresses] checked out branch: master onto: deploy reference: fbebf5c4873475820bfbf4c902515d678d2d041f
==> default: 
==> default:     - checkout ref fbebf5c4873475820bfbf4c902515d678d2d041f branch master
==> default: 
==> default: 
==> default: [2016-01-19T18:11:43+00:00] INFO: deploy[/opt/pelias/openaddresses] set user to pelias
==> default: 
==> default:     - force ownership of /opt/pelias/openaddresses to :pelias
==> default: [2016-01-19T18:11:43+00:00] INFO: deploy[/opt/pelias/openaddresses] copied the cached checkout to /opt/pelias/openaddresses/releases/20160119181141
==> default: 
==> default:     - deploy from repo to /opt/pelias/openaddresses/releases 
==> default: [2016-01-19T18:11:43+00:00] INFO: deploy[/opt/pelias/openaddresses] set user to pelias
==> default: 
==> default:     - force ownership of /opt/pelias/openaddresses to :pelias
==> default: [2016-01-19T18:11:43+00:00] INFO: deploy[/opt/pelias/openaddresses] queueing checkdeploy hook /opt/pelias/openaddresses/releases/20160119181141/deploy/before_migrate.rb
==> default: 
==> default:     - evaluate block and run any associated actions
==> default: [2016-01-19T18:11:43+00:00] INFO: deploy[/opt/pelias/openaddresses] made pre-migration symlinks
==> default: 
==> default:     - make pre-migration symlinks: 
==> default: [2016-01-19T18:11:43+00:00] INFO: deploy[/opt/pelias/openaddresses] queueing checkdeploy hook /opt/pelias/openaddresses/releases/20160119181141/deploy/before_symlink.rb
==> default: 
==> default:     - evaluate block and run any associated actions
==> default: [2016-01-19T18:11:43+00:00] INFO: deploy[/opt/pelias/openaddresses] purged directories in checkout log, tmp/pids, public/system
==> default: 
==> default:     - purge directories in checkout log, tmp/pids, public/system
==> default: 
==> default:     - create new directory /opt/pelias/openaddresses/releases/20160119181141/tmp
==> default: 
==> default:     - create new directory /opt/pelias/openaddresses/releases/20160119181141/public
==> default: 
==> default:     - create new directory /opt/pelias/openaddresses/releases/20160119181141/config
==> default: [2016-01-19T18:11:43+00:00] INFO: deploy[/opt/pelias/openaddresses] created directories before symlinking: tmp,public,config
==> default: [2016-01-19T18:11:43+00:00] INFO: deploy[/opt/pelias/openaddresses] linked shared paths into current release: system => public/system, pids => tmp/pids, log => log
==> default: 
==> default:     - link shared paths into current release:  system => public/system, pids => tmp/pids, log => log
==> default: [2016-01-19T18:11:43+00:00] INFO: deploy[/opt/pelias/openaddresses] made pre-migration symlinks
==> default: 
==> default:     - make pre-migration symlinks: 
==> default: [2016-01-19T18:11:43+00:00] INFO: deploy[/opt/pelias/openaddresses] set user to pelias
==> default: 
==> default:     - force ownership of /opt/pelias/openaddresses to :pelias
==> default: [2016-01-19T18:11:43+00:00] INFO: deploy[/opt/pelias/openaddresses] linked release /opt/pelias/openaddresses/releases/20160119181141 into production at /opt/pelias/openaddresses/current
==> default: 
==> default:     - remove existing link at /opt/pelias/openaddresses/current
==> default: 
==> default:     - link release /opt/pelias/openaddresses/releases/20160119181141 into production at /opt/pelias/openaddresses/current
==> default: [2016-01-19T18:11:43+00:00] INFO: deploy[/opt/pelias/openaddresses] set user to pelias
==> default: 
==> default:     - force ownership of /opt/pelias/openaddresses to :pelias
==> default: [2016-01-19T18:11:43+00:00] INFO: deploy[/opt/pelias/openaddresses] updated symlinks
==> default: [2016-01-19T18:11:43+00:00] INFO: deploy[/opt/pelias/openaddresses] queueing checkdeploy hook /opt/pelias/openaddresses/releases/20160119181141/deploy/before_restart.rb
==> default: 
==> default:     - evaluate block and run any associated actions
==> default: [2016-01-19T18:11:43+00:00] INFO: deploy[/opt/pelias/openaddresses] queueing checkdeploy hook /opt/pelias/openaddresses/releases/20160119181141/deploy/after_restart.rb
==> default: 
==> default:     - evaluate block and run any associated actions
==> default: 
==> default:     - update release history data
==> default: [2016-01-19T18:11:43+00:00] INFO: deploy[/opt/pelias/openaddresses] deployed to /opt/pelias/openaddresses
==> default: 
==> default: 
==> default: [2016-01-19T18:11:43+00:00] INFO: deploy[/opt/pelias/openaddresses] sending run action to execute[purge address deduper datastore] (immediate)
==> default:   * execute[purge address deduper datastore] action run
==> default: [2016-01-19T18:11:43+00:00] INFO: execute[purge address deduper datastore] ran successfully
==> default: 
==> default:     - execute find /opt/pelias/leveldb/address_dedup/db -type f -exec rm {} \; || true
==> default: 
==> default: 
==> default: [2016-01-19T18:11:43+00:00] INFO: deploy[/opt/pelias/openaddresses] sending kill action to runit_service[pelias-address-deduper] (immediate)
==> default: Recipe: pelias::_address_deduper_service
==> default:   * runit_service[pelias-address-deduper] action kill
==> default: [2016-01-19T18:11:44+00:00] INFO: runit_service[pelias-address-deduper] sent kill
==> default: 
==> default:     - send kill to runit_service[pelias-address-deduper]
==> default: 
==> default: 
==> default: [2016-01-19T18:11:44+00:00] INFO: deploy[/opt/pelias/openaddresses] sending run action to execute[npm install openaddresses] (immediate)
==> default: Recipe: pelias::openaddresses
==> default:   * execute[npm install openaddresses] action run
==> default: [2016-01-19T18:13:45+00:00] INFO: execute[npm install openaddresses] ran successfully
==> default: 
==> default:     - execute npm install
==> default: 
==> default:   * execute[purge address deduper datastore] action nothing (skipped due to action :nothing)
==> default:   * execute[npm install openaddresses] action nothing (skipped due to action :nothing)
==> default:   * remote_file[/opt/pelias/data/openaddresses/openaddresses-complete.zip] action create
==> default: [2016-01-19T18:13:45+00:00] INFO: remote_file[/opt/pelias/data/openaddresses/openaddresses-complete.zip] created file /opt/pelias/data/openaddresses/openaddresses-complete.zip
==> default: 
==> default:     - create new file /opt/pelias/data/openaddresses/openaddresses-complete.zip
==> default: [2016-01-19T19:05:15+00:00] INFO: Retrying execution of remote_file[/opt/pelias/data/openaddresses/openaddresses-complete.zip], 1 attempt(s) left
==> default: [2016-01-19T20:06:14+00:00] INFO: Retrying execution of remote_file[/opt/pelias/data/openaddresses/openaddresses-complete.zip], 0 attempt(s) left
==> default: 
==> default: ================================================================================
==> default: Error executing action `create` on resource 'remote_file[/opt/pelias/data/openaddresses/openaddresses-complete.zip]'
==> default: ================================================================================
==> default: 
==> default: 
==> default: Chef::Exceptions::ContentLengthMismatch
==> default: ---------------------------------------
==> default: Response body length 1251779 does not match HTTP Content-Length header 1547350423.
==> default: 
==> default: 
==> default: Resource Declaration:
==> default: ---------------------
==> default: # In /tmp/vagrant-chef/7bf76f97f8a903bd092b727cda78e577/cookbooks/pelias/recipes/openaddresses.rb
==> default: 
==> default:  46:   remote_file "#{node[:pelias][:openaddresses][:data_dir]}/#{node[:pelias][:openaddresses][:full_file_name]}" do
==> default:  47:     action      :create
==> default:  48:     backup      false
==> default:  49:     source      node[:pelias][:openaddresses][:full_data_url]
==> default:  50:     owner       node[:pelias][:user][:name]
==> default:  51:     retries     2
==> default:  52:     retry_delay 60
==> default:  53:     notifies    :run, 'execute[extract openaddresses data]', :immediately
==> default:  54:     only_if     { node[:pelias][:openaddresses][:index_data] == true }
==> default:  55:   end
==> default:  56: 
==> default: 
==> default: 
==> default: 
==> default: Compiled Resource:
==> default: ------------------
==> default: # Declared in /tmp/vagrant-chef/7bf76f97f8a903bd092b727cda78e577/cookbooks/pelias/recipes/openaddresses.rb:46:in `from_file'
==> default: 
==> default: remote_file("/opt/pelias/data/openaddresses/openaddresses-complete.zip") do
==> default:   provider Chef::Provider::RemoteFile
==> default:   action [:create]
==> default:   retries 0
==> default:   retry_delay 60
==> default:   guard_interpreter :default
==> default:   path "/opt/pelias/data/openaddresses/openaddresses-complete.zip"
==> default:   atomic_update true
==> default:   source ["http://data.openaddresses.io/openaddresses-complete.zip"]
==> default:   use_etag true
==> default:   use_last_modified true
==> default:   cookbook_name :pelias
==> default:   recipe_name "openaddresses"
==> default:   owner "pelias"
==> default:   only_if { #code block }
==> default: end
==> default: 
==> default: 
==> default: 
==> default: [2016-01-19T20:08:22+00:00] INFO: Running queued delayed notifications before re-raising exception
==> default: [2016-01-19T20:08:22+00:00] INFO: ark[elasticsearch] sending start action to service[elasticsearch] (delayed)
==> default: Recipe: elasticsearch::default
==> default:   * service[elasticsearch] action start
==> default:  (up to date)
==> default: [2016-01-19T20:08:23+00:00] INFO: git[/opt/pelias/pelias-api] sending restart action to runit_service[pelias-api] (delayed)
==> default: Recipe: pelias::api
==> default:   * runit_service[pelias-api] action restart
==> default: [2016-01-19T20:08:23+00:00] INFO: runit_service[pelias-api] restarted
==> default: 
==> default:     - restart service runit_service[pelias-api]
==> default: 
==> default: 
==> default: 
==> default: Running handlers:
==> default: [2016-01-19T20:08:23+00:00] ERROR: Running exception handlers
==> default: Running handlers complete
==> default: 
==> default: [2016-01-19T20:08:23+00:00] ERROR: Exception handlers complete
==> default: [2016-01-19T20:08:23+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> default: Chef Client failed. 112 resources updated in 8428.609731597 seconds
==> default: [2016-01-19T20:08:23+00:00] ERROR: remote_file[/opt/pelias/data/openaddresses/openaddresses-complete.zip] (pelias::openaddresses line 46) had an error: Chef::Exceptions::ContentLengthMismatch: Response body length 1251779 does not match HTTP Content-Length header 1547350423.
==> default: [2016-01-19T20:08:23+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.

import is failing

I followed the instructions on this page (https://github.com/pelias/vagrant). However, the import of osm data is not working. I tried this multiple times (on linux and osx host) with different data sets.

==> default: [2015-01-16T07:31:18+00:00] INFO: remote_file[/opt/pelias/data/osm/san-francisco-bay_california.osm.pbf] sending run action to executeload osm sfbay

==> default:
==> default: ================================================================================
==> default: Error executing action run on resource 'execute[load osm sfbay]'
==> default: ================================================================================
==> default:
==> default:
==> default: Mixlib::ShellOut::CommandTimeout
==> default: --------------------------------
==> default: Command timed out after 14400s:
==> default: Command execeded allowed execution time, process terminated
==> default: ---- Begin output of node index.js >/opt/pelias/logs/osm_sfbay.out 2>/opt/pelias/logs/osm_sfbay.err ----
==> default: STDOUT:
==> default: STDERR:
==> default: ---- End output of node index.js >/opt/pelias/logs/osm_sfbay.out 2>/opt/pelias/logs/osm_sfbay.err ----
==> default: Ran node index.js >/opt/pelias/logs/osm_sfbay.out 2>/opt/pelias/logs/osm_sfbay.err returned
==> default:
==> default:
==> default: Resource Declaration:
==> default: ---------------------
==> default: # In /tmp/vagrant-chef/023ea929f24e39a530508ed877b4cd02/cookbooks/pelias/recipes/osm.rb
==> default:
==> default: 66: execute "load osm #{name}" do
==> default: 67: action :nothing
==> default: 68: user node[:pelias][:user][:name]
==> default: 69: command "node index.js >#{node[:pelias][:basedir]}/logs/osm_#{name}.out 2>#{node[:pelias][:basedir]}/logs/osm_#{name}.err"
==> default: 70: cwd "#{node[:pelias][:basedir]}/osm/current"
==> default: 71: timeout node[:pelias][:osm][:timeout]
==> default: 72: environment(
==> default: 73: 'HOME' => node[:pelias][:user][:home],
==> default: 74: 'PELIAS_CONFIG' => "#{node[:pelias][:cfg_dir]}/#{name}_#{node[:pelias][:cfg_file]}",
==> default: 75: 'OSMIUM_POOL_THREADS' => node[:pelias][:osm][:osmium_threads]
==> default: 76: )
==> default: 77: end
==> default: 78: end
==> default:
==> default:
==> default:
==> default: Compiled Resource:
==> default: ------------------
==> default: # Declared in /tmp/vagrant-chef/023ea929f24e39a530508ed877b4cd02/cookbooks/pelias/recipes/osm.rb:66:in `block in from_file'
==> default:
==> default: execute("load osm sfbay") do
==> default: action [:nothing]
==> default: retries 0
==> default: retry_delay 2
==> default: guard_interpreter :default
==> default: command "node index.js >/opt/pelias/logs/osm_sfbay.out 2>/opt/pelias/logs/osm_sfbay.err"
==> default: backup 5
==> default: cwd "/opt/pelias/osm/current"
==> default: environment {"HOME"=>"/home/pelias", "PELIAS_CONFIG"=>"/etc/pelias/sfbay_pelias.json", "OSMIUM_POOL_THREADS"=>"80"}
==> default: returns 0
==> default: timeout 14400
==> default: user "pelias"
==> default: cookbook_name :pelias
==> default: recipe_name "osm"
==> default: end
==> default:
==> default:
==> default:
==> default: [2015-01-16T12:24:42+00:00] INFO: Running queued delayed notifications before re-raising exception
==> default: [2015-01-16T12:24:42+00:00] INFO: ark[elasticsearch] sending start action to serviceelasticsearch
==> default: [2015-01-16T12:24:43+00:00] INFO: git[/opt/pelias/pelias-api] sending restart action to runit_servicepelias-api
==> default: [2015-01-16T12:24:43+00:00] INFO: runit_service[pelias-api] restarted
==> default: [2015-01-16T12:24:43+00:00] ERROR: Running exception handlers
==> default: [2015-01-16T12:24:43+00:00] ERROR: Exception handlers complete
==> default: [2015-01-16T12:24:43+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> default: [2015-01-16T12:24:43+00:00] ERROR: execute[load osm sfbay](pelias::osm line 66) had an error: Mixlib::ShellOut::CommandTimeout: Command timed out after 14400s:
==> default: Command execeded allowed execution time, process terminated
==> default: ---- Begin output of node index.js >/opt/pelias/logs/osm_sfbay.out 2>/opt/pelias/logs/osm_sfbay.err ----
==> default: STDOUT:
==> default: STDERR:
==> default: ---- End output of node index.js >/opt/pelias/logs/osm_sfbay.out 2>/opt/pelias/logs/osm_sfbay.err ----
==> default: Ran node index.js >/opt/pelias/logs/osm_sfbay.out 2>/opt/pelias/logs/osm_sfbay.err returned
==> default: [2015-01-16T12:24:44+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.


The error file (/opt/pelias/logs/osm_sfbay.err) has many entries - I put a sample below.

...
{
"osmium_mapper -> osm_types": 8000,
"osm_types -> node_centroid_cache": 8000,
"node_centroid_cache -> node_filter": 8000,
"node_filter -> node_mapper": 4,
"node_mapper -> node_hierarchyLookup": 4
}
{
"osmium_mapper -> osm_types": 16000,
"osm_types -> node_centroid_cache": 16000,
"node_centroid_cache -> node_filter": 16000,
"node_filter -> node_mapper": 4,
"node_mapper -> node_hierarchyLookup": 4
}
...

Does not work when cloning from branches other than master

We are currently using the master branch to host the in-progress release. It is not appropriate for consumption at certain times, and we should be using the production branches across all the components to avoid problems for external users.

Particularly, changing the branches specified on the following lines (and other relevant ones that I may have missed here)

https://github.com/pelias/vagrant/blob/master/cookbooks/pelias/attributes/default.rb#L26
https://github.com/pelias/vagrant/blob/master/cookbooks/pelias/attributes/default.rb#L37
https://github.com/pelias/vagrant/blob/master/cookbooks/pelias/attributes/default.rb#L50
https://github.com/pelias/vagrant/blob/master/cookbooks/pelias/attributes/default.rb#L71
https://github.com/pelias/vagrant/blob/master/cookbooks/pelias/attributes/default.rb#L80

Support vagrant deploy to aws

I was being optimistic and tried to deploy to ec2 today (i.e. edited manually the default Vagrantfile). This ticket is to support this either by providing a vagrantfile support with an aws compatible box, or other method.

[ec2-user@ip-172-31-44-227 vagrant]$ vagrant up --provider=aws
Bringing machine 'default' up with 'aws' provider...
==> default: Box 'dummy' could not be found. Attempting to find and install...
default: Box Provider: aws
default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'dummy' (v0) for provider: aws
default: Downloading: http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-14.04_chef-provisionerless.box
The box you attempted to add doesn't match the provider you specified.

Provider expected: aws
Provider of box: virtualbox

"error": "not found: invalid path" when attempting to use demo locally

The readme mentions:

change url to localhost:3100 so you can see a visual representation of the data you're loading

I cloned the leaflet demo and changed the endpoint in its settings to localhost:3100, but I get this invalid path error.

Somewhat related: if I'm using a local instance of the geocoder, do I still provide an api key and, if so, where would I look for that info?

Parent directory /opt/pelias/data/openaddresses/us/ny does not exist

I first export PELIAS_VAGRANT_CFG=/path/to/example/settings_file.rb

vagrant up

Errors I get:

==> default:     * Parent directory /opt/pelias/data/openaddresses/us/ny does not exist.[2016-07-20T21:29:35+00:00] INFO: Retrying execution of remote_file[/opt/pelias/data/openaddresses/us/ny/city_of_new_york.csv.zip], 0 attempt(s) left
==> default:
==> default:     * Parent directory /opt/pelias/data/openaddresses/us/ny does not exist.
==> default:
==> default: ================================================================================
==> default: Error executing action `create_if_missing` on resource 'remote_file[/opt/pelias/data/openaddresses/us/ny/city_of_new_york.csv.zip]'
==> default: [2016-07-20T21:30:36+00:00] ERROR: remote_file[/opt/pelias/data/openaddresses/us/ny/city_of_new_york.csv.zip] (pelias::openaddresses line 66) had an error: Chef::Exceptions::EnclosingDirectoryDoesNotExist: Parent directory /opt/pelias/data/openaddresses/us/ny does not exist.
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.

I am using the latest commit on master (ab3fecf)

Vagrant-pelias - elasticsearch error SearchPhaseExecutionException

Hi,

I have run vagrant-project on Ubuntu 16.04 but unfortunatelly I get error when trying use reverse api:

Query:
curl -s "localhost:3100/v1/reverse?&point.lat=51.118807&point.lon=17.041271&layers=address&size=1"

Reply:
{"geocoding":{"version":"0.1","attribution":"http://pelias.mapzen.com/v1/attribution","query":{"layers":["address"],"size":1,"private":false,"point.lat":51.118807,"point.lon":17.041271,"boundary.circle.radius":1,"boundary.circle.lat":51.118807,"boundary.circle.lon":17.041271,"querySize":1},"errors":**["SearchPhaseExecutionException[Failed to execute phase [query_fetch], all shards failed; shardFailures** {[AKfSlPa2QrS3SLv5TFrtqw][pelias][0]: SearchParseException[[pelias][0]: from[-1],size[-1]: Parse Failure [Failed to parse source [{\"query\":{\"bool\":{\"filter\":[{\"geo_distance\":{\"distance\":\"1km\",\"distance_type\":\"plane\",\"optimize_bbox\":\"indexed\",\"center_point\":{\"lat\":51.118807,\"lon\":17.041271}}}]}},\"size\":1,\"track_scores\":true,\"sort\":[\"_score\",{\"_geo_distance\":{\"order\":\"asc\",\"distance_type\":\"plane\",\"center_point\":{\"lat\":51.118807,\"lon\":17.041271}}}]}]]]; nested: QueryParsingException[[pelias] bool query does not support [filter]]; }]"],"engine":{"name":"Pelias","author":"Mapzen","version":"1.0"},"timestamp":1468218715236},"type":"FeatureCollection","features":[]}vagrant@pelias

Some more information about elasticsearch version and status:

curl -s 'http://localhost:9200/_cluster/health?pretty=true'
{
  "cluster_name" : "elasticsearch",
  "status" : "green",
  "timed_out" : false,
  "number_of_nodes" : 1,
  "number_of_data_nodes" : 1,
  "active_primary_shards" : 1,
  "active_shards" : 1,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 0,
  "delayed_unassigned_shards" : 0,
  "number_of_pending_tasks" : 0,
  "number_of_in_flight_fetch" : 0
}

curl -s 'http://localhost:9200'
{
  "status" : 200,
  "name" : "pelias",
  "cluster_name" : "elasticsearch",
  "version" : {
    "number" : "1.7.3",
    "build_hash" : "05d4530971ef0ea46d0f4fa6ee64dbc8df659682",
    "build_timestamp" : "2015-10-15T09:14:17Z",
    "build_snapshot" : false,
    "lucene_version" : "4.10.4"
  },
  "tagline" : "You Know, for Search"
}

Vagrant configuration file:

Vagrant.configure('2') do |config|
  config.vm.provision :chef_solo do |chef|
    chef.cookbooks_path = 'cookbooks'

    chef.json = {
      'pelias' => {
        'schema' => {
          'create_index' => true
        },
        'openaddresses' => {
          'index_data' => false,
          'data_dir' => '/opt/pelias/data/openaddresses',
          'data_files' => [
            'dolnoslaskie.csv'
          ]
        },
        'geonames' => {
          'index_data' => false,
          'alpha2_country_codes' => [
            'GB'
          ]
        },
        'osm' => {
          'index_data' => true,
          'admin_lookup' => false,
          'extracts' => { http://download.geofabrik.de/europe/poland/dolnoslaskie-latest.osm.pbf'
          }
        }
      }
    }

    chef.run_list = [
      'recipe[pelias::default]'
    ]
  end
end

I would just like to mention that i.e. query http://localhost:3100/v1/autocomplete?text=Wroclaw works proper.

Thanks for help!

NYC sample dataset import fails

I get the following error when trying to import the NYC dataset. I've verified that the files exist, permissions, etc. Any suggestions?

vagrant@pelias:~/openaddresses$ node import.js ../my_dataset
/home/vagrant/openaddresses/import.js:181
var configFiles = peliasConfig.imports.openaddresses.files;
^
TypeError: Cannot read property 'files' of undefined
at Object. (/home/vagrant/openaddresses/import.js:181:57)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3

Add OpenAddresses to vagrant import documentation

Since @orangejulius graciously added the OpenAddresses data to the default pelias_settings.example.rb (#13), it's now easier for vagrant users to mobilize OpenAddresses data in their own setups.

However there's nothing in README.md to tell them how to import different subsets of OpenAddresses (right now it's just NYC).

Lets add a sentence or two explaining how to use this and changing what areas/regions are imported.

Default install legacyURL

Running a default install and attempting to use the test url http://localhost:3100/search?input=tower&lat=51.508079&lon=-0.076131 returns the following:

{"error":"Invalid path, no legacy proxy specified"}

Admin URL: http://localhost:9200/

{
  "status" : 200,
  "name" : "pelias",
  "cluster_name" : "elasticsearch",
  "version" : {
    "number" : "1.7.0",
    "build_hash" : "929b9739cae115e73c346cb5f9a6f24ba735a743",
    "build_timestamp" : "2015-07-16T14:31:07Z",
    "build_snapshot" : false,
    "lucene_version" : "4.10.4"
  },
  "tagline" : "You Know, for Search"
}

The guest machine entered an invalid state error!

I followed install guidelines from git hub and the sweet mapzen tutorial but consistently getting the following error.

The guest machine entered an invalid state while waiting for it
to boot. Valid states are 'starting, running'. The machine is in the
'poweroff' state. Please verify everything is configured
properly and try again

I am on a Windows 10 machine running Ubuntu 64 bit 12.04LTS latest Virtualbox. Same error occurs when I try to do it on a Virtual private server running Ubuntu 14.04.

The remote VPS detail:

Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 6
On-line CPU(s) list: 0-5
Thread(s) per core: 1
Core(s) per socket: 6
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 63
Stepping: 2
CPU MHz: 2399.996
BogoMIPS: 4799.99
Hypervisor vendor: KVM
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 15360K
NUMA node0 CPU(s): 0-5

In both cases (Ubuntu 12.04 running on Virtualbox in local Windows 10 or the remote VPS server running Ubuntu 14.04) when I start pelias using this

PELIAS_VAGRANT_CFG="$(pwd)/pelias_settings.rb" vagrant up

I am consistently getting this error:

==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 3100 => 3100 (adapter 1)
default: 9200 => 9200 (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...
The guest machine entered an invalid state while waiting for it
to boot. Valid states are 'starting, running'. The machine is in the
'poweroff' state. Please verify everything is configured
properly and try again.

If the provider you're using has a GUI that comes with it,
it is often helpful to open that and watch the machine, since the
GUI often has more helpful error messages than Vagrant can retrieve.
For example, if you're using VirtualBox, run vagrant up while the
VirtualBox GUI is open.

The primary issue for this error is that the provider you're using
is not properly configured. This is very rarely a Vagrant issue

Example Settings: Error executing action `run` on resource 'execute[load geonames for IT]'

Hey!
I tried to setup Pelias locally via vagrant and followed the steps as described in the README.md

The following occured:

==> default: [2015-04-07T08:01:22+00:00] INFO: execute[download geonames for IT] sending run action to execute[load geonames for IT] (immediate)
==> default:
==> default: ================================================================================
==> default: Error executing action `run` on resource 'execute[load geonames for IT]'
==> default: ================================================================================
==> default:
==> default:
==> default: Mixlib::ShellOut::CommandTimeout
==> default: --------------------------------
==> default: Command timed out after 7200s:
==> default: Command execeded allowed execution time, process terminated
==> default: ---- Begin output of ./bin/pelias-geonames -i IT >/opt/pelias/logs/geonames_IT.out 2>/opt/pelias/logs/geonames_IT.err ----
==> default: STDOUT:
==> default: STDERR:
==> default: ---- End output of ./bin/pelias-geonames -i IT >/opt/pelias/logs/geonames_IT.out 2>/opt/pelias/logs/geonames_IT.err ----
==> default: Ran ./bin/pelias-geonames -i IT >/opt/pelias/logs/geonames_IT.out 2>/opt/pelias/logs/geonames_IT.err returned
==> default:
==> default:
==> default: Resource Declaration:
==> default: ---------------------
==> default: # In /tmp/vagrant-chef/40188a929eb274843bdb2898f2f94337/cookbooks/pelias/recipes/geonames.rb
==> default:
==> default:  59:   execute "load geonames for #{country}" do
==> default:  60:     action  :nothing
==> default:  61:     user    node[:pelias][:user][:name]
==> default:  62:     command "./bin/pelias-geonames -i #{country} >#{node[:pelias][:basedir]}/logs/geonames_#{country}.out 2>#{node[:pelias][:basedir]}/logs/geonames_#{country}.err"
==> default:  63:     cwd     "#{node[:pelias][:basedir]}/geonames/current"
==> default:  64:     timeout node[:pelias][:geonames][:timeout]
==> default:  65:     environment(
==> default:  66:       'HOME' => node[:pelias][:user][:home],
==> default:  67:       'PELIAS_CONFIG' => "#{node[:pelias][:cfg_dir]}/#{node[:pelias][:cfg_file]}"
==> default:  68:     )
==> default:  69:   end
==> default:  70: end
==> default:
==> default:
==> default:
==> default: Compiled Resource:
==> default: ------------------
==> default: # Declared in /tmp/vagrant-chef/40188a929eb274843bdb2898f2f94337/cookbooks/pelias/recipes/geonames.rb:59:in `block in from_file'
==> default:
==> default: execute("load geonames for IT") do
==> default:   action [:nothing]
==> default:   retries 0
==> default:   retry_delay 2
==> default:   guard_interpreter :default
==> default:   command "./bin/pelias-geonames -i IT >/opt/pelias/logs/geonames_IT.out 2>/opt/pelias/logs/geonames_IT.err"
==> default:   backup 5
==> default:   cwd "/opt/pelias/geonames/current"
==> default:   environment {"HOME"=>"/home/pelias", "PELIAS_CONFIG"=>"/etc/pelias/pelias.json"}
==> default:   returns 0
==> default:   timeout 7200
==> default:   user "pelias"
==> default:   cookbook_name :pelias
==> default:   recipe_name "geonames"
==> default: end
==> default:
==> default:
==> default:
==> default: [2015-04-07T10:22:04+00:00] INFO: Running queued delayed notifications before re-raising exception
==> default: [2015-04-07T10:22:04+00:00] INFO: ark[elasticsearch] sending start action to service[elasticsearch] (delayed)
==> default: [2015-04-07T10:22:04+00:00] INFO: git[/opt/pelias/pelias-api] sending restart action to runit_service[pelias-api] (delayed)
==> default: [2015-04-07T10:22:04+00:00] INFO: runit_service[pelias-api] restarted
==> default: [2015-04-07T10:22:04+00:00] ERROR: Running exception handlers
==> default: [2015-04-07T10:22:04+00:00] ERROR: Exception handlers complete
==> default: [2015-04-07T10:22:04+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> default: [2015-04-07T10:22:05+00:00] ERROR: execute[load geonames for IT] (pelias::geonames line 59) had an error: Mixlib::ShellOut::CommandTimeout: Command timed out after 7200s:
==> default: Command execeded allowed execution time, process terminated
==> default: ---- Begin output of ./bin/pelias-geonames -i IT >/opt/pelias/logs/geonames_IT.out 2>/opt/pelias/logs/geonames_IT.err ----
==> default: STDOUT:
==> default: STDERR:
==> default: ---- End output of ./bin/pelias-geonames -i IT >/opt/pelias/logs/geonames_IT.out 2>/opt/pelias/logs/geonames_IT.err ----
==> default: Ran ./bin/pelias-geonames -i IT >/opt/pelias/logs/geonames_IT.out 2>/opt/pelias/logs/geonames_IT.err returned
==> default: [2015-04-07T10:22:05+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.

The outputs for >/opt/pelias/logs/geonames_IT.out are:

2015-04-07T08:01:23.255Z - ^[[32minfo^[[39m: [geonames] reading datafile from disk at: /opt/pelias/data/geonames/IT.zip
2015-04-07T08:01:23.277Z - ^[[32minfo^[[39m: [admin-lookup:master] Initializing workers.
2015-04-07T08:01:23.664Z - ^[[32minfo^[[39m: [admin-lookup:worker:admin1] Loading `admin1`.
2015-04-07T08:01:23.698Z - ^[[32minfo^[[39m: [admin-lookup:worker:local_admin] Loading `local_admin`.
2015-04-07T08:01:23.855Z - ^[[32minfo^[[39m: [admin-lookup:worker:admin2] Loading `admin2`.
2015-04-07T08:01:23.894Z - ^[[32minfo^[[39m: [admin-lookup:worker:locality] Loading `locality`.
2015-04-07T08:01:23.898Z - ^[[32minfo^[[39m: [admin-lookup:worker:neighborhood] Loading `neighborhood`.

The outputs for >/opt/pelias/logs/geonames_IT.err are:

ShapeFileStream { [Error: ENOENT, open '/opt/pelias/data/quattroshapes/qs_adm1.dbf']
  errno: 34,
  code: 'ENOENT',
  path: '/opt/pelias/data/quattroshapes/qs_adm1.dbf' }

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: ENOENT, open '/opt/pelias/data/quattroshapes/qs_adm1.dbf'
ShapeFileStream { [Error: ENOENT, open '/opt/pelias/data/quattroshapes/qs_localadmin.dbf']
  errno: 34,
  code: 'ENOENT',
  path: '/opt/pelias/data/quattroshapes/qs_localadmin.dbf' }

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: ENOENT, open '/opt/pelias/data/quattroshapes/qs_localadmin.dbf'
ShapeFileStream { [Error: ENOENT, open '/opt/pelias/data/quattroshapes/qs_adm2.dbf']
  errno: 34,
  code: 'ENOENT',
  path: '/opt/pelias/data/quattroshapes/qs_adm2.dbf' }

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: ENOENT, open '/opt/pelias/data/quattroshapes/qs_adm2.dbf'
ShapeFileStream { [Error: ENOENT, open '/opt/pelias/data/quattroshapes/qs_neighborhoods.dbf']
  errno: 34,
  code: 'ENOENT',
  path: '/opt/pelias/data/quattroshapes/qs_neighborhoods.dbf' }

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: ENOENT, open '/opt/pelias/data/quattroshapes/qs_neighborhoods.dbf'
ShapeFileStream { [Error: ENOENT, open '/opt/pelias/data/quattroshapes/qs_localities.dbf']
  errno: 34,
  code: 'ENOENT',
  path: '/opt/pelias/data/quattroshapes/qs_localities.dbf' }

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: ENOENT, open '/opt/pelias/data/quattroshapes/qs_localities.dbf'

It seems that the quattroshapes never got downloaded ( /opt/pelias/data/quattroshapes/ is empty ).
I used the pelias_settings.example.rb from this repository.

install on server

I'm trying to install pelias on a server (no vagrant). Even though this is the vagrant repository, it also seems like this is also the central source for bootstrapping and importing data into the server.

I was hoping that https://github.com/pelias/pelias/blob/master/INSTALL.md would help me bootstrap the system, but no such luck at the moment.

I'm not familiar enough with chef(-solo?) to figure out how to transform the Vagrantfile into a pure chef solution. Any help would be much appreciated.

Update pelias_settings.example.rb to import OSM + OpenAddresses data with administrative hierarchy lookup

The pelias_settings.example.rb file controls how Pelias builds its index.

When the setting "adminLookup": true is used for a dataset in pelias_settings.rb, it triggers our hierarchy normalization through the administrative hierarchy lookup tool that normalizes the country, region (state/province), locality (city/state), and local administrative areas.

This is a feature several vagrant users have asked about over email, but I've had poor luck working through myself. Perhaps someone from the team could use their local environment's config as a default.

  • add adminLookup by default to OSM + OpenAddresses imports
  • add adminLookup documentation to README.MD.

not so easy on Ubuntu 14

Of course I managed :) But to save others potentially an hour:

apt-get install virtualbox vagrant will install Vagrant 1.4.3 on Ubuntu 14.04 LTS (also tested 14.10). The recent Chef (at least vagrant-berkshelf which seems to be Berks 3.2.3) needs Vagrant ~>1.5.

There is no apt/deb package called virtualbox, the closest is virtualbox-4.3 but only after added keys and sources listed in https://www.virtualbox.org/wiki/Linux_Downloads

Planet import fails

I have modified the pelias settings for the planet like the following:

Vagrant.configure('2') do |config|
  config.vm.provision :chef_solo do |chef|
    chef.cookbooks_path = 'cookbooks'

    chef.json = {
      'pelias' => {
        'schema' => {
          'create_index' => true
        },
        'openaddresses' => {
          'index_data' => true
        },
        'geonames' => {
          'index_data' => true,
          'alpha2_country_codes' => [
            'all'
          ]
        },
        'quattroshapes' => {
          'index_data' => true,
          'alpha3_country_codes' => [
            'ABW',
            'AFG',
            'AGO',
            'AIA',
            'ALA',
            'ALB',
            'AND',
            'ANT',
            'ARE',
            'ARG',
            'ARM',
            'ASM',
            'ATA',
            'ATF',
            'ATG',
            'AUS',
            'AUT',
            'AZE',
            'BDI',
            'BEL',
            'BEN',
            'BFA',
            'BGD',
            'BGR',
            'BHR',
            'BHS',
            'BIH',
            'BLM',
            'BLR',
            'BLZ',
            'BMU',
            'BOL',
            'BRA',
            'BRB',
            'BRN',
            'BTN',
            'BVT',
            'BWA',
            'CAF',
            'CAN',
            'CCK',
            'CHE',
            'CHL',
            'CHN',
            'CIV',
            'CMR',
            'COD',
            'COG',
            'COK',
            'COL',
            'COM',
            'CPV',
            'CRI',
            'CUB',
            'CXR',
            'CYM',
            'CYP',
            'CZE',
            'DEU',
            'DJI',
            'DMA',
            'DNK',
            'DOM',
            'DZA',
            'ECU',
            'EGY',
            'ERI',
            'ESH',
            'ESP',
            'EST',
            'ETH',
            'FIN',
            'FJI',
            'FLK',
            'FRA',
            'FRO',
            'FSM',
            'GAB',
            'GBR',
            'GEO',
            'GGY',
            'GHA',
            'GIB',
            'GIN',
            'GLP',
            'GMB',
            'GNB',
            'GNQ',
            'GRC',
            'GRD',
            'GRL',
            'GTM',
            'GUF',
            'GUM',
            'GUY',
            'HKG',
            'HMD',
            'HND',
            'HRV',
            'HTI',
            'HUN',
            'IDN',
            'IMN',
            'IND',
            'IOT',
            'IRL',
            'IRN',
            'IRQ',
            'ISL',
            'ISR',
            'ITA',
            'JAM',
            'JEY',
            'JOR',
            'JPN',
            'KAZ',
            'KEN',
            'KGZ',
            'KHM',
            'KIR',
            'KNA',
            'KOR',
            'KWT',
            'LAO',
            'LBN',
            'LBR',
            'LBY',
            'LCA',
            'LIE',
            'LKA',
            'LSO',
            'LTU',
            'LUX',
            'LVA',
            'MAC',
            'MAF',
            'MAR',
            'MCO',
            'MDA',
            'MDG',
            'MDV',
            'MEX',
            'MHL',
            'MKD',
            'MLI',
            'MLT',
            'MMR',
            'MNE',
            'MNG',
            'MNP',
            'MOZ',
            'MRT',
            'MSR',
            'MTQ',
            'MUS',
            'MWI',
            'MYS',
            'MYT',
            'NAM',
            'NCL',
            'NER',
            'NFK',
            'NGA',
            'NIC',
            'NIU',
            'NLD',
            'NOR',
            'NPL',
            'NRU',
            'NZL',
            'OMN',
            'PAK',
            'PAN',
            'PCN',
            'PER',
            'PHL',
            'PLW',
            'PNG',
            'POL',
            'PRI',
            'PRK',
            'PRT',
            'PRY',
            'PSE',
            'PYF',
            'QAT',
            'REU',
            'ROU',
            'RUS',
            'RWA',
            'SAU',
            'SDN',
            'SEN',
            'SGP',
            'SGS',
            'SHN',
            'SJM',
            'SLB',
            'SLE',
            'SLV',
            'SMR',
            'SOM',
            'SPM',
            'SRB',
            'STP',
            'SUR',
            'SVK',
            'SVN',
            'SWE',
            'SWZ',
            'SYC',
            'SYR',
            'TCA',
            'TCD',
            'TGO',
            'THA',
            'TJK',
            'TKL',
            'TKM',
            'TLS',
            'TON',
            'TTO',
            'TUN',
            'TUR',
            'TUV',
            'TWN',
            'TZA',
            'UGA',
            'UKR',
            'UMI',
            'URY',
            'USA',
            'UZB',
            'VAT',
            'VCT',
            'VEN',
            'VGB',
            'VIR',
            'VNM',
            'VUT',
            'WLF',
            'WSM',
            'YEM',
            'ZAF',
            'ZMB',
            'ZWE'
          ]
        },
        'osm' => {
          'index_data' => true,
          'extracts' => {
            'planet' => 'http://download.bbbike.org/osm/planet/planet-latest.osm.pbf'
          }
        }
      }
    }

    chef.run_list = [
      'recipe[pelias::default]'
    ]
  end
end

It fails when it is trying to import openaddresses.
The error message says:

default: STDERR:
default: ----- End output of node import.js ----
default: Ran node import.js returned
default: FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully

Any idea? Number of docs in pelias index by this time is 16350000

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.