-
-
Save pshima/1690315 to your computer and use it in GitHub Desktop.
Bundler error inside deploy_revision before_migrate
This file contains 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
before_migrate do | |
if app['main']['uses_bundler'] | |
link "#{release_path}/vendor/bundle" do | |
to "#{app['main']['deploy_to']}/shared/vendor_bundle" | |
end | |
common_groups = %w{development test cucumber staging production} | |
execute "LANG=en_US.UTF-8 LC_ALL='en_US.UTF-8' bundle install --deployment --without #{(common_groups -([app['main']['rails_env']])).join(' ')}" do | |
ignore_failure true | |
cwd release_path | |
environment ({'LANG' => 'en_US.UTF-8'}) | |
end | |
end | |
end |
This file contains 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
[Fri, 27 Jan 2012 18:20:24 +0000] INFO: Processing execute[bundle install --deployment --without development test cucumber staging] action run (/var/cache/chef/cookbooks/agi_application/recipes/rails.rb line 221) | |
[Fri, 27 Jan 2012 18:20:24 +0000] INFO: execute[bundle install --deployment --without development test cucumber staging] sh(bundle install --deployment --without development test cucumber staging) | |
[Fri, 27 Jan 2012 18:21:03 +0000] ERROR: execute[bundle install --deployment --without development test cucumber staging] (/var/cache/chef/cookbooks/agi_application/recipes/rails.rb line 221) had an error: Expected process to exit with [0], but received '5' | |
---- Begin output of bundle install --deployment --without development test cucumber staging ---- | |
STDOUT: Fetching source index for http://rubygems.org/ | |
Installing rake (0.9.2.2) | |
Installing multi_json (1.0.4) | |
Installing activesupport (3.1.3) | |
Installing builder (3.0.0) | |
Installing i18n (0.6.0) | |
Installing activemodel (3.1.3) | |
Installing erubis (2.7.0) | |
Installing rack (1.3.6) | |
Installing rack-cache (1.1) | |
Installing rack-mount (0.8.3) | |
Installing rack-test (0.6.1) | |
Installing hike (1.2.1) | |
Installing tilt (1.3.3) | |
Installing sprockets (2.0.3) | |
Installing actionpack (3.1.3) | |
Installing mime-types (1.17.2) | |
Installing polyglot (0.3.3) | |
Installing treetop (1.4.10) | |
Installing mail (2.3.0) | |
Installing actionmailer (3.1.3) | |
Installing arel (2.2.1) | |
Installing tzinfo (0.3.31) | |
Installing activerecord (3.1.3) | |
Installing activeresource (3.1.3) | |
Installing coffee-script-source (1.2.0) | |
Installing execjs (1.3.0) | |
Installing coffee-script (2.2.0) | |
Installing rack-ssl (1.3.2) | |
Installing json (1.6.5) with native extensions | |
Installing rdoc (3.12) | |
Installing thor (0.14.6) | |
Installing railties (3.1.3) | |
Installing coffee-rails (3.1.1) | |
ArgumentError: invalid byte sequence in US-ASCII | |
An error occured while installing jquery-rails (1.0.19), and Bundler cannot continue. | |
Make sure that `gem install jquery-rails -v '1.0.19'` succeeds before bundling. | |
STDERR: | |
---- End output of bundle install --deployment --without development test cucumber staging ---- | |
Ran bundle install --deployment --without development test cucumber staging returned 5 |
This file contains 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
[Fri, 27 Jan 2012 18:39:52 +0000] INFO: Processing execute[export LANG=en_US.UTF-8; bundle install --deployment --without development test cucumber staging] action run (/var/cache/chef/cookbooks/agi_application/recipes/rails.rb line 221) | |
[Fri, 27 Jan 2012 18:39:52 +0000] INFO: execute[export LANG=en_US.UTF-8; bundle install --deployment --without development test cucumber staging] sh(export LANG=en_US.UTF-8; bundle install --deployment --without development test cucumber staging) | |
[Fri, 27 Jan 2012 18:40:25 +0000] ERROR: execute[export LANG=en_US.UTF-8; bundle install --deployment --without development test cucumber staging] (/var/cache/chef/cookbooks/agi_application/recipes/rails.rb line 221) had an error: Expected process to exit with [0], but received '5' | |
---- Begin output of export LANG=en_US.UTF-8; bundle install --deployment --without development test cucumber staging ---- | |
STDOUT: Fetching source index for http://rubygems.org/ | |
Installing rake (0.9.2.2) | |
Installing multi_json (1.0.4) | |
Installing activesupport (3.1.3) | |
Installing builder (3.0.0) | |
Installing i18n (0.6.0) | |
Installing activemodel (3.1.3) | |
Installing erubis (2.7.0) | |
Installing rack (1.3.6) | |
Installing rack-cache (1.1) | |
Installing rack-mount (0.8.3) | |
Installing rack-test (0.6.1) | |
Installing hike (1.2.1) | |
Installing tilt (1.3.3) | |
Installing sprockets (2.0.3) | |
Installing actionpack (3.1.3) | |
Installing mime-types (1.17.2) | |
Installing polyglot (0.3.3) | |
Installing treetop (1.4.10) | |
Installing mail (2.3.0) | |
Installing actionmailer (3.1.3) | |
Installing arel (2.2.1) | |
Installing tzinfo (0.3.31) | |
Installing activerecord (3.1.3) | |
Installing activeresource (3.1.3) | |
Installing coffee-script-source (1.2.0) | |
Installing execjs (1.3.0) | |
Installing coffee-script (2.2.0) | |
Installing rack-ssl (1.3.2) | |
Installing json (1.6.5) with native extensions | |
Installing rdoc (3.12) | |
Installing thor (0.14.6) | |
Installing railties (3.1.3) | |
Installing coffee-rails (3.1.1) | |
ArgumentError: invalid byte sequence in US-ASCII | |
An error occured while installing jquery-rails (1.0.19), and Bundler cannot continue. | |
Make sure that `gem install jquery-rails -v '1.0.19'` succeeds before bundling. | |
STDERR: | |
---- End output of export LANG=en_US.UTF-8; bundle install --deployment --without development test cucumber staging ---- | |
Ran export LANG=en_US.UTF-8; bundle install --deployment --without development test cucumber staging returned 5 |
This file contains 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
root@machinename:/mnt# locale | |
LANG=en_US.UTF-8 | |
LC_CTYPE="en_US.UTF-8" | |
LC_NUMERIC="en_US.UTF-8" | |
LC_TIME="en_US.UTF-8" | |
LC_COLLATE="en_US.UTF-8" | |
LC_MONETARY="en_US.UTF-8" | |
LC_MESSAGES="en_US.UTF-8" | |
LC_PAPER="en_US.UTF-8" | |
LC_NAME="en_US.UTF-8" | |
LC_ADDRESS="en_US.UTF-8" | |
LC_TELEPHONE="en_US.UTF-8" | |
LC_MEASUREMENT="en_US.UTF-8" | |
LC_IDENTIFICATION="en_US.UTF-8" | |
LC_ALL= | |
root@machinename:/mnt# sudo su - medidata | |
it's a Unix system, I know this | |
medidata@machinename:~$ locale | |
LANG=en_US.UTF-8 | |
LC_CTYPE="en_US.UTF-8" | |
LC_NUMERIC="en_US.UTF-8" | |
LC_TIME="en_US.UTF-8" | |
LC_COLLATE="en_US.UTF-8" | |
LC_MONETARY="en_US.UTF-8" | |
LC_MESSAGES="en_US.UTF-8" | |
LC_PAPER="en_US.UTF-8" | |
LC_NAME="en_US.UTF-8" | |
LC_ADDRESS="en_US.UTF-8" | |
LC_TELEPHONE="en_US.UTF-8" | |
LC_MEASUREMENT="en_US.UTF-8" | |
LC_IDENTIFICATION="en_US.UTF-8" | |
LC_ALL= | |
medidata@machinename:~$ exit | |
logout | |
root@machinename:/mnt# su medidata | |
medidata@machinename:/mnt$ locale | |
LANG=en_US.UTF-8 | |
LC_CTYPE="en_US.UTF-8" | |
LC_NUMERIC="en_US.UTF-8" | |
LC_TIME="en_US.UTF-8" | |
LC_COLLATE="en_US.UTF-8" | |
LC_MONETARY="en_US.UTF-8" | |
LC_MESSAGES="en_US.UTF-8" | |
LC_PAPER="en_US.UTF-8" | |
LC_NAME="en_US.UTF-8" | |
LC_ADDRESS="en_US.UTF-8" | |
LC_TELEPHONE="en_US.UTF-8" | |
LC_MEASUREMENT="en_US.UTF-8" | |
LC_IDENTIFICATION="en_US.UTF-8" | |
LC_ALL= | |
medidata@machinename:/mnt$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment