Created
December 7, 2012 14:19
-
-
Save mstarkman/4233526 to your computer and use it in GitHub Desktop.
EY Local Database Error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[default] [Fri, 07 Dec 2012 14:18:54 +0000] ERROR: execute[create database for rise-web-ey-local] (/etc/chef/recipes/cookbooks/postgresql9/definitions/createdb.rb line 7) had an error: | |
psql -U postgres postgres -c "CREATE DATABASE rise-web-ey-local OWNER vagrant" returned 1, expected 0 | |
---- Begin output of psql -U postgres postgres -c "CREATE DATABASE rise-web-ey-local OWNER vagrant" ---- | |
STDOUT: | |
STDERR: ERROR: syntax error at or near "-" | |
LINE 1: CREATE DATABASE rise-web-ey-local OWNER vagrant | |
^ | |
---- End output of psql -U postgres postgres -c "CREATE DATABASE rise-web-ey-local OWNER vagrant" ---- | |
/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/mixin/command.rb:157:in `run_command'/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/mixin/command.rb:133:in `chdir'/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/mixin/command.rb:133:in `run_command'/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/provider/execute.rb:49:in `action_run'/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/runner.rb:87:in `send'/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/runner.rb:87:in `converge'/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/runner.rb:85:in `each'/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/runner.rb:85:in `converge'/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/resource_collection.rb:58:in `each'/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/resource_collection.rb:57:in `each'/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/runner.rb:63:in `converge'/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/client.rb:348:in `converge'/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/client.rb:96:in `run_solo'/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/bin/chef-solo:94/usr/local/ey_resin/ruby/bin/chef-solo:19:in `load'/usr/local/ey_resin/ruby/bin/chef-solo:19 | |
[default] /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/mixin/command.rb:157:in `run_command': psql -U postgres postgres -c "CREATE DATABASE rise-web-ey-local OWNER vagrant" returned 1, expected 0 (Chef::Exceptions::Exec) | |
---- Begin output of psql -U postgres postgres -c "CREATE DATABASE rise-web-ey-local OWNER vagrant" ---- | |
STDOUT: | |
STDERR: ERROR: syntax error at or near "-" | |
LINE 1: CREATE DATABASE rise-web-ey-local OWNER vagrant | |
^ | |
---- End output of psql -U postgres postgres -c "CREATE DATABASE rise-web-ey-local OWNER vagrant" ---- | |
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/mixin/command.rb:133:in `chdir' | |
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/mixin/command.rb:133:in `run_command' | |
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/provider/execute.rb:49:in `action_run' | |
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/runner.rb:87:in `send' | |
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/runner.rb:87:in `converge' | |
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/runner.rb:85:in `each' | |
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/runner.rb:85:in `converge' | |
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/resource_collection.rb:58:in `each' | |
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/resource_collection.rb:57:in `each' | |
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/runner.rb:63:in `converge' | |
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/client.rb:348:in `converge' | |
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, 07 Dec 2012 14:18:55 +0000] INFO: Starting Chef Solo Run | |
[default] [Fri, 07 Dec 2012 14:18:55 +0000] INFO: Chef Run complete in 0.463387 seconds | |
[ey-local] Creating bundle if Gemfile|Gemfile.lock is present ... | |
[default] /vagrant/Gemfile:3:in `evaluate': undefined method `ruby' for #<Bundler::Dsl:0x00000001173418> (NoMethodError) | |
/usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/dsl.rb:7:in `instance_eval' | |
/usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/dsl.rb:7:in `evaluate' | |
/usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/definition.rb:18:in `build' | |
/usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler.rb:134:in `definition' | |
/usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/cli.rb:220:in `install' | |
/usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/vendor/thor/task.rb:22:in `run' | |
/usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task' | |
/usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/vendor/thor.rb:263:in `dispatch' | |
/usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/vendor/thor/base.rb:386:in `start' | |
/usr/lib64/ruby/gems/1.9.1/gems/bundler-1.1.0/bin/bundle:13:in `<top (required)>' | |
/usr/bin/bundle:19:in `load' | |
/usr/bin/bundle:19:in `<main>' | |
[default] There was an error in your Gemfile, and Bundler cannot continue. | |
[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/rise-web-ey-local/; | |
if [[ ! -e /data/rise-web-ey-local/current ]]; then sudo ln -sf /ey-local /data/rise-web-ey-local/current; fi; | |
if [[ ! -e /data/rise-web-ey-local/current/public ]]; then sudo mkdir -p /data/rise-web-ey-local/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