Skip to content

Instantly share code, notes, and snippets.

@artm
Last active December 20, 2015 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save artm/6192491 to your computer and use it in GitHub Desktop.
Save artm/6192491 to your computer and use it in GitHub Desktop.
[ey-local] A box named ey-gentoo-rack already exists.
[ey-local] Using /home/artm/src/dpi/reflex2 as the application directory.
[ey-local] VM already created. Booting if it's not already running...
[ey-local] Creating instance DNA ...
[ey-local] Initiating Chef run ...
[default] [Fri, 09 Aug 2013 09:36:45 +0000] INFO: Starting Chef Solo Run
[default] [Fri, 09 Aug 2013 09:36:45 +0000] INFO: Mounting devices for kernel 2.6.32-amazon-xen-r3
[default] [Fri, 09 Aug 2013 09:36:45 +0000] INFO: 2.6.32+ kernel detected, assuming paravirtual mount style
[default] [Fri, 09 Aug 2013 09:36:45 +0000] INFO: {"SHELL"=>"/bin/bash",
"TERM"=>"vt100",
"USER"=>"root",
"SUDO_USER"=>"vagrant",
"SUDO_UID"=>"1000",
"USERNAME"=>"root",
"MAIL"=>"/var/mail/vagrant",
"PATH"=>"/usr/local/ey_resin/bin:/sbin:/bin:/usr/sbin:/usr/bin",
"PWD"=>"/etc/chef",
"SHLVL"=>"0",
"SUDO_COMMAND"=>
"/bin/env PATH=/usr/local/ey_resin/bin:/sbin:/bin:/usr/sbin:/usr/bin chef-solo -j /etc/chef/dna.json -c /etc/chef/solo.rb",
"HOME"=>"/home/vagrant",
"LOGNAME"=>"root",
"SUDO_GID"=>"415"}
[default] [Fri, 09 Aug 2013 09:36:45 +0000] INFO: Release: 2009a.1_pre51
make.conf updated
[default] [Fri, 09 Aug 2013 09:36:45 +0000] INFO: OpenSSL Version: 0.9.8x
[default] [Fri, 09 Aug 2013 09:36:46 +0000] INFO: --- Dropping db.yml file for db postgresql
[default] [Fri, 09 Aug 2013 09:36:46 +0000] INFO: Making monitrc for: memcached
[default] [Fri, 09 Aug 2013 09:36:46 +0000] INFO: NGINX ACTION: restart
[default] [Fri, 09 Aug 2013 09:36:46 +0000] INFO: NGINX Version: 1.2.9
[default] /usr/local/ey_resin/ruby/lib/ruby/1.8/net/http.rb:560:in `initialize'
[default] :
[default] Connection timed out - connect(2)
[default] (
[default] Errno::ETIMEDOUT)
from /usr/local/ey_resin/ruby/lib/ruby/1.8/net/http.rb:560:in `open'
from /usr/local/ey_resin/ruby/lib/ruby/1.8/net/http.rb:560:in `connect'
from /usr/local/ey_resin/ruby/lib/ruby/1.8/timeout.rb:53:in `timeout'
from /usr/local/ey_resin/ruby/lib/ruby/1.8/timeout.rb:93:in `timeout'
from /usr/local/ey_resin/ruby/lib/ruby/1.8/net/http.rb:560:in `connect'
from /usr/local/ey_resin/ruby/lib/ruby/1.8/net/http.rb:553:in `do_start'
from /usr/local/ey_resin/ruby/lib/ruby/1.8/net/http.rb:542:in `start'
from /usr/local/ey_resin/ruby/lib/ruby/1.8/open-uri.rb:242:in `open_http'
... 42 levels...
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/client.rb:96:in `run_solo'
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/bin/chef-solo:94
from /usr/local/ey_resin/ruby/bin/chef-solo:19:in `load'
from /usr/local/ey_resin/ruby/bin/chef-solo:19
[default] [Fri, 09 Aug 2013 09:37:07 +0000] INFO: Starting Chef Solo Run
[default] [Fri, 09 Aug 2013 09:37:07 +0000] INFO: Chef Run complete in 0.400141 seconds
[ey-local] Creating bundle if Gemfile|Gemfile.lock is present ...
[default] Fetching gem metadata from https://rubygems.org/
<... bunch of gems we use ...>
[default] Installing pg (0.15.1)
[default] with native extensions
[default] Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Thanks!
[default] /usr/lib64/ruby/1.9.1/rubygems/installer.rb:552:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
/usr/bin/ruby19 extconf.rb
checking for pg_config... no
No pg_config... trying anyway. If building fails, please try again with
--with-pg-config=/path/to/pg_config
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby19
--with-pg
--without-pg
--with-pg-dir
--without-pg-dir
--with-pg-include
--without-pg-include=${pg-dir}/include
--with-pg-lib
--without-pg-lib=${pg-dir}/lib
--with-pg-config
--without-pg-config
--with-pg_config
--without-pg_config
Gem files will remain installed in /usr/lib64/ruby/gems/1.9.1/gems/pg-0.15.1 for inspection.
Results logged to /usr/lib64/ruby/gems/1.9.1/gems/pg-0.15.1/ext/gem_make.out
from /usr/lib64/ruby/1.9.1/rubygems/installer.rb:530:in `block in build_extensions'
from /usr/lib64/ruby/1.9.1/rubygems/installer.rb:505:in `each'
from /usr/lib64/ruby/1.9.1/rubygems/installer.rb:505:in `build_extensions'
from /usr/lib64/ruby/1.9.1/rubygems/installer.rb:180:in `install'
from /usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/source.rb:90:in `block in install'
from /usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/rubygems_integration.rb:82:in `preserve_paths'
from /usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/source.rb:89:in `install'
from /usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/installer.rb:73:in `block in install_gem_from_spec'
from /usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/rubygems_integration.rb:97:in `with_build_args'
from /usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/installer.rb:72:in `install_gem_from_spec'
from /usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/installer.rb:56:in `block in run'
from /usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/installer.rb:55:in `run'
from /usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/installer.rb:12:in `install'
from /usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/cli.rb:220:in `install'
from /usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/vendor/thor/task.rb:22:in `run'
from /usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/vendor/thor.rb:263:in `dispatch'
from /usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/vendor/thor/base.rb:386:in `start'
from /usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.0/bin/bundle:13:in `<top (required)>'
from /usr/bin/bundle:19:in `load'
from /usr/bin/bundle:19:in `<main>'
[ey-local] The following SSH command responded with a non-zero exit status.
ey-local assumes that this means the command failed!
source /etc/profile.d/*;
export RVM_RUBY=`rvm list | grep "^ " | awk '{ print $1 }' | tail -1`;
rvm use $RVM_RUBY > /dev/null;
sudo bash -c 'command -v bundle &>/dev/null || { sudo gem install bundler; exit 0; }';
cd /vagrant;
sudo mkdir -p /ey-local /data/reflex2/;
if [[ ! -e /data/reflex2/current ]]; then sudo ln -sf /ey-local /data/reflex2/current; fi;
if [[ ! -e /data/reflex2/current/public ]]; then sudo mkdir -p /data/reflex2/current/public; fi;
if [[ -e Gemfile || -e Gemfile.lock ]]; then sudo bundle install; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment