Skip to content

Instantly share code, notes, and snippets.

@mustmodify
Created October 27, 2011 19:39
Show Gist options
  • Save mustmodify/1320632 to your computer and use it in GitHub Desktop.
Save mustmodify/1320632 to your computer and use it in GitHub Desktop.
error when deploying via capistrano
jw@eagle:/source/client/reporting$ bundle exec cap deploy edge
triggering start callbacks for `deploy'
* executing `multistage:ensure'
*** Defaulting to `edge'
* executing `edge'
* executing `deploy'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
executing locally: "git ls-remote git@client.unfuddle.com:client/reporting.git master"
command finished in 1556ms
* executing "git clone -q git@client.unfuddle.com:client/reporting.git /home/edge/edge.clientreporting.com/releases/20111027201213 && cd /home/edge/edge.clientreporting.com/releases/20111027201213 && git checkout -q -b deploy 4c1906a5e32e84044e6b3bb59415431dfae9eae0 && (echo 4c1906a5e32e84044e6b3bb59415431dfae9eae0 > /home/edge/edge.clientreporting.com/releases/20111027201213/REVISION)"
servers: ["edge.clientreporting.com"]
Password:
[edge.clientreporting.com] executing command
command finished in 18693ms
* executing `deploy:finalize_update'
* executing "chmod -R g+w /home/edge/edge.clientreporting.com/releases/20111027201213"
servers: ["edge.clientreporting.com"]
[edge.clientreporting.com] executing command
command finished in 176ms
* executing "rm -rf /home/edge/edge.clientreporting.com/releases/20111027201213/log /home/edge/edge.clientreporting.com/releases/20111027201213/public/system /home/edge/edge.clientreporting.com/releases/20111027201213/tmp/pids &&\\\n mkdir -p /home/edge/edge.clientreporting.com/releases/20111027201213/public &&\\\n mkdir -p /home/edge/edge.clientreporting.com/releases/20111027201213/tmp &&\\\n ln -s /home/edge/edge.clientreporting.com/shared/log /home/edge/edge.clientreporting.com/releases/20111027201213/log &&\\\n ln -s /home/edge/edge.clientreporting.com/shared/system /home/edge/edge.clientreporting.com/releases/20111027201213/public/system &&\\\n ln -s /home/edge/edge.clientreporting.com/shared/pids /home/edge/edge.clientreporting.com/releases/20111027201213/tmp/pids"
servers: ["edge.clientreporting.com"]
[edge.clientreporting.com] executing command
command finished in 209ms
* executing "find /home/edge/edge.clientreporting.com/releases/20111027201213/public/images /home/edge/edge.clientreporting.com/releases/20111027201213/public/stylesheets /home/edge/edge.clientreporting.com/releases/20111027201213/public/javascripts -exec touch -t 201110272012.37 {} ';'; true"
servers: ["edge.clientreporting.com"]
[edge.clientreporting.com] executing command
command finished in 421ms
triggering after callbacks for `deploy:finalize_update'
* executing `bundle:install'
* executing "ls -x /home/edge/edge.clientreporting.com/releases"
servers: ["edge.clientreporting.com"]
[edge.clientreporting.com] executing command
command finished in 207ms
* executing "cd /home/edge/edge.clientreporting.com/releases/20111027201213 && bundle install --gemfile /home/edge/edge.clientreporting.com/releases/20111027201213/Gemfile --path /home/edge/edge.clientreporting.com/shared/bundle --deployment --quiet --without development test"
servers: ["edge.clientreporting.com"]
[edge.clientreporting.com] executing command
command finished in 794ms
triggering after callbacks for `deploy:update_code'
* executing `deploy:symlink_files'
* executing "ln -nfs /home/edge/edge.clientreporting.com/shared/config/database.yml /home/edge/edge.clientreporting.com/releases/20111027201213/config/database.yml"
servers: ["edge.clientreporting.com"]
[edge.clientreporting.com] executing command
command finished in 149ms
* executing `deploy:symlink'
* executing "rm -f /home/edge/edge.clientreporting.com/current && ln -s /home/edge/edge.clientreporting.com/releases/20111027201213 /home/edge/edge.clientreporting.com/current"
servers: ["edge.clientreporting.com"]
[edge.clientreporting.com] executing command
command finished in 167ms
** transaction: commit
* executing `deploy:restart'
* executing "touch /home/edge/edge.clientreporting.com/current/tmp/restart.txt"
servers: ["edge.clientreporting.com"]
[edge.clientreporting.com] executing command
command finished in 151ms
triggering after callbacks for `deploy'
* executing `deploy:notify_hoptoad'
* executing "cat /home/edge/edge.clientreporting.com/current/REVISION"
servers: ["edge.clientreporting.com"]
[edge.clientreporting.com] executing command
command finished in 151ms
Notifying Hoptoad of Deploy (rake hoptoad:deploy TO=edge REVISION=4c1906a5e32e84044e6b3bb59415431dfae9eae0 REPO=git@client.unfuddle.com:client/reporting.git USER=jw)
DEPRECATION WARNING: Rake tasks in vendor/plugins/svg_web/tasks are deprecated. Use lib/tasks instead. (called from /source/client/reporting/vendor/bundle/gems/rails-2.3.11/lib/tasks/rails.rb:10)
Hoptoad Notification Complete.
* executing `edge'
jw@eagle:/source/saw/www$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.1 LTS
Release: 10.04
Codename: lucid
jw@eagle:/source/saw/www$ uname -a
Linux eagle 2.6.32-32-server #62-Ubuntu SMP Wed Apr 20 22:07:43 UTC 2011 x86_64 GNU/Linux
ZLIB => 1.2.5
triggering start callbacks for `deploy'
* executing `multistage:ensure'
*** Defaulting to `edge'
* executing `edge'
* executing `deploy'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
executing locally: "git ls-remote git@client.unfuddle.com:client/reporting.git master"
command finished in 3119ms
* executing "git clone -q git@client.unfuddle.com:client/reporting.git /home/edge/edge.clientreporting.com/releases/20111027192515 && cd /home/edge/edge.clientreporting.com/releases/20111027192515 && git checkout -q -b deploy 4c1906a5e32e84044e6b3bb59415431dfae9eae0 && (echo 4c1906a5e32e84044e6b3bb59415431dfae9eae0 > /home/edge/edge.clientreporting.com/releases/20111027192515/REVISION)"
servers: ["edge.clientreporting.com"]
Password:
*** [deploy:update_code] rolling back
* executing "rm -rf /home/edge/edge.clientreporting.com/releases/20111027192515; true"
servers: ["edge.clientreporting.com"]
** [deploy:update_code] exception while rolling back: Net::SSH::Exception, corrupted mac detected
An exception occurred running /source/client/reporting/vendor/bundle/bin/cap
Tried to use non-reference value 0x1a as type Bignum (9) (TypeError)
Backtrace:
Zlib.inflateInit2 at /home/jw/.rvm/rubies/rbx-head/lib
/zlib.rb:557
Zlib::Inflate#initialize at /home/jw/.rvm/rubies/rbx-head/lib
/zlib.rb:1381
Net::SSH::Transport::State#decompressor at vendor/bundle/gems/net-ssh-2.2.1/lib
/net/ssh/transport/state.rb:107
Net::SSH::Transport::State#decompress at vendor/bundle/gems/net-ssh-2.2.1/lib
/net/ssh/transport/state.rb:131
Net::SSH::Transport::PacketStream(TCPSocket)#poll_next_packet at \
vendor/bundle/gems/net-ssh-2.2.1/lib/net/ssh/transport/packet_stream.rb:224
Net::SSH::Transport::PacketStream(TCPSocket)#next_packet at \
vendor/bundle/gems/net-ssh-2.2.1/lib/net/ssh/transport/packet_stream.rb:86
{ } in Net::SSH::Transport::Session#poll_message at vendor/bundle/gems
/net-ssh-2.2.1/lib/net/ssh
/transport/session.rb:170
Kernel(Net::SSH::Transport::Session)#loop at kernel/common/kernel18.rb:17
Net::SSH::Transport::Session#poll_message at vendor/bundle/gems/net-ssh-2.2.1
/lib/net/ssh/transport
/session.rb:165
Net::SSH::Connection::Session#dispatch_incoming_packets at vendor/bundle/gems/net-ssh-2.2.1/lib/net/ssh/connection/session.rb:451
Net::SSH::Connection::Session#preprocess at vendor/bundle/gems/net-ssh-2.2.1
/lib/net/ssh/connection
/session.rb:213
{ } in Capistrano::Processable(Capistrano::Command)#process_iteration at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/processable.rb:17
{ } in Capistrano::Processable(Capistrano::Command)#ensure_each_session at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/processable.rb:43
Array#each at kernel/bootstrap/array.rb:66
Capistrano::Processable(Capistrano::Command)#ensure_each_session at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/processable.rb:41
Capistrano::Processable(Capistrano::Command)#process_iteration at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/processable.rb:17
{ } in Capistrano::Command#process! at vendor/bundle/gems/capistrano-2.9.0/lib
/capistrano/command.rb:165
Kernel(Capistrano::Command)#loop at kernel/common/kernel18.rb:17
{ } in Capistrano::Command#process! at vendor/bundle/gems/capistrano-2.9.0/lib
/capistrano/command.rb:164
Benchmark.measure at /home/jw/.rvm/rubies/rbx-head/lib
/benchmark.rb:304
Benchmark.realtime at /home/jw/.rvm/rubies/rbx-head/lib
/benchmark.rb:318
Capistrano::Command#process! at vendor/bundle/gems/capistrano-2.9.0/lib
/capistrano/command.rb:163
Capistrano::Command.process at vendor/bundle/gems/capistrano-2.9.0/lib
/capistrano/command.rb:134
{ } in Capistrano::Configuration::Actions::Invocation(Capistrano::Configuration)#run_tree at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/configuration/actions/invocation.rb:178
{ } in Capistrano::Configuration::Connections(Capistrano::Configuration)#execute_on_servers at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/configuration/connections.rb:198
{ } in Enumerable(Array)#each_slice at kernel/common/enumerable.rb:396
Array#each at kernel/bootstrap/array.rb:66
Enumerable(Array)#each_slice at kernel/common/enumerable.rb:393
Capistrano::Configuration::Connections(Capistrano::Configuration)#execute_on_servers at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/configuration/connections.rb:186
Capistrano::Configuration::Actions::Invocation(Capistrano::Configuration)#run_tree at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/configuration/actions/invocation.rb:176
Capistrano::Configuration::Actions::Invocation(Capistrano::Configuration)#run at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/configuration/actions/invocation.rb:148
Capistrano::Deploy::Strategy::Base(Capistrano::Deploy::Strategy::Checkout)#run (method_missing) at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/recipes/deploy/strategy/base.rb:44
Capistrano::Deploy::Strategy::Remote(Capistrano::Deploy::Strategy::Checkout)#scm_run at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/recipes/deploy/strategy/remote.rb:29
Capistrano::Deploy::Strategy::Remote(Capistrano::Deploy::Strategy::Checkout)#deploy! at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/recipes/deploy/strategy/remote.rb:15
{ } in #<Capistrano::Configuration:0xeb98>.load at vendor/bundle/gems
/capistrano-2.9.0/lib
/capistrano/recipes
/deploy.rb:221
Kernel(Capistrano::Configuration::Namespaces::Namespace)#instance_eval at \
kernel/common/eval18.rb:43
Capistrano::Configuration::Execution(Capistrano::Configuration)#invoke_task_directly_without_callbacks (invoke_task_directly) at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/configuration/execution.rb:139
Capistrano::Configuration::Callbacks(Capistrano::Configuration)#invoke_task_directly (invoke_task_directly_with_callbacks) at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/configuration/callbacks.rb:27
Capistrano::Configuration::Execution(Capistrano::Configuration)#execute_task at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/configuration/execution.rb:89
Capistrano::Configuration::Namespaces::Namespace#execute_task (method_missing) at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/configuration/namespaces.rb:186
{ } in #<Capistrano::Configuration::Namespaces::Namespace:0xeb9c>.task at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/configuration/namespaces.rb:104
{ } in #<Capistrano::Configuration:0xeb98>.load at vendor/bundle/gems
/capistrano-2.9.0/lib
/capistrano/recipes
/deploy.rb:202
Capistrano::Configuration::Execution(Capistrano::Configuration)#transaction at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/configuration/execution.rb:56
Capistrano::Configuration::Namespaces::Namespace#transaction (method_missing) at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/configuration/namespaces.rb:186
{ } in #<Capistrano::Configuration:0xeb98>.load at vendor/bundle/gems
/capistrano-2.9.0/lib
/capistrano/recipes
/deploy.rb:201
Kernel(Capistrano::Configuration::Namespaces::Namespace)#instance_eval at \
kernel/common/eval18.rb:43
Capistrano::Configuration::Execution(Capistrano::Configuration)#invoke_task_directly_without_callbacks (invoke_task_directly) at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/configuration/execution.rb:139
Capistrano::Configuration::Callbacks(Capistrano::Configuration)#invoke_task_directly (invoke_task_directly_with_callbacks) at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/configuration/callbacks.rb:27
Capistrano::Configuration::Execution(Capistrano::Configuration)#execute_task at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/configuration/execution.rb:89
Capistrano::Configuration::Namespaces::Namespace#execute_task (method_missing) at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/configuration/namespaces.rb:186
{ } in #<Capistrano::Configuration::Namespaces::Namespace:0xeb9c>.task at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/configuration/namespaces.rb:104
{ } in #<Capistrano::Configuration:0xeb98>.load at vendor/bundle/gems
/capistrano-2.9.0/lib
/capistrano/recipes
/deploy.rb:169
Kernel(Capistrano::Configuration::Namespaces::Namespace)#instance_eval at \
kernel/common/eval18.rb:43
Capistrano::Configuration::Execution(Capistrano::Configuration)#invoke_task_directly_without_callbacks (invoke_task_directly) at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/configuration/execution.rb:139
Capistrano::Configuration::Callbacks(Capistrano::Configuration)#invoke_task_directly (invoke_task_directly_with_callbacks) at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/configuration/callbacks.rb:27
Capistrano::Configuration::Execution(Capistrano::Configuration)#execute_task at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/configuration/execution.rb:89
Capistrano::Configuration::Execution(Capistrano::Configuration)#find_and_execute_task at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/configuration/execution.rb:101
{ } in Capistrano::CLI::Execute(Capistrano::CLI)#execute_requested_actions at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/cli/execute.rb:46
Array#each at kernel/bootstrap/array.rb:66
Capistrano::CLI::Execute(Capistrano::CLI)#execute_requested_actions_without_help (execute_requested_actions) at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/cli/execute.rb:45
Capistrano::CLI::Help(Capistrano::CLI)#execute_requested_actions (execute_requested_actions_with_help) at \
vendor/bundle/gems/capistrano-2.9.0/lib/capistrano/cli/help.rb:19
Capistrano::CLI::Execute(Capistrano::CLI)#execute! at vendor/bundle/gems
/capistrano-2.9.0/lib
/capistrano/cli
/execute.rb:34
Capistrano::CLI::Execute::ClassMethods(Class)#execute at vendor/bundle/gems
/capistrano-2.9.0/lib
/capistrano/cli
/execute.rb:14
Object#__script__ at vendor/bundle/gems/capistrano-2.9.0/bin
/cap:4
Kernel(Object)#load at kernel/common/kernel.rb:621
Object#__script__ at vendor/bundle/bin/cap:19
Rubinius::CodeLoader#load_script at kernel/delta/codeloader.rb:65
Rubinius::CodeLoader.load_script at kernel/delta/codeloader.rb:107
Rubinius::Loader#script at kernel/loader.rb:626
Rubinius::Loader#main at kernel/loader.rb:780
EXTREME HACK:
def self.inflateInit2(stream, window_bits)
puts "STREAM: #{stream.inspect}"
puts "window_bits: #{window_bits.inspect}"
puts "ZLIB VERSION: #{ZLIB_VERSION}"
puts "ZStream.size: #{ZStream.size}"
inflateInit2_ stream, window_bits, ZLIB_VERSION, ZStream.size
end
STREAM: #<FFI::MemoryPointer address=0x42067c0>
window_bits: nil
ZLIB VERSION: 1.2.5
ZStream.size: 112
jw@eagle:/source/physioage/reporting$ ruby -v
rubinius 2.0.0dev (1.8.7 48199b8b yyyy-mm-dd JI) [x86_64-unknown-linux-gnu]
jw@eagle:/source/physioage/reporting$ cat Gemfile.lock
GEM
remote: http://rubygems.org/
specs:
actionmailer (2.3.11)
actionpack (= 2.3.11)
actionpack (2.3.11)
activesupport (= 2.3.11)
rack (~> 1.1.0)
activerecord (2.3.11)
activesupport (= 2.3.11)
activeresource (2.3.11)
activesupport (= 2.3.11)
activesupport (2.3.11)
authlogic (2.1.6)
activesupport
builder (3.0.0)
cancan (1.6.4)
capistrano (2.9.0)
highline
net-scp (>= 1.0.0)
net-sftp (>= 2.0.0)
net-ssh (>= 2.0.14)
net-ssh-gateway (>= 1.1.0)
capistrano-ext (1.2.1)
capistrano (>= 1.0.0)
capybara (0.4.1.2)
celerity (>= 0.7.9)
culerity (>= 0.2.4)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
selenium-webdriver (>= 0.0.27)
xpath (~> 0.1.3)
celerity (0.8.9)
childprocess (0.1.8)
ffi (~> 1.0.6)
color (1.4.1)
cucumber (0.10.2)
builder (>= 2.1.2)
diff-lcs (>= 1.1.2)
gherkin (>= 2.3.5)
json (>= 1.4.6)
term-ansicolor (>= 1.0.5)
cucumber-rails (0.3.2)
cucumber (>= 0.8.0)
culerity (0.2.15)
database_cleaner (0.6.7)
diff-lcs (1.1.2)
factory_girl (1.3.3)
fastercsv (1.5.4)
ffi (1.0.7)
rake (>= 0.8.7)
gherkin (2.3.7)
json (>= 1.4.6)
haml (3.1.1)
highline (1.6.2)
hoptoad_notifier (2.4.9)
activesupport
builder
httpclient (2.2.0.2)
json (1.5.1)
json_pure (1.5.1)
little-plugger (1.1.2)
logging (1.5.0)
little-plugger (>= 1.1.2)
mime-types (1.16)
mysql (2.8.1)
net-scp (1.0.4)
net-ssh (>= 1.99.1)
net-sftp (2.0.5)
net-ssh (>= 2.0.9)
net-ssh (2.2.1)
net-ssh-gateway (1.1.0)
net-ssh (>= 1.99.1)
nokogiri (1.4.4)
paperclip (2.3.11)
activerecord (>= 2.3.0)
activesupport (>= 2.3.2)
princely (1.2.5)
rack (1.1.2)
rack-test (0.6.0)
rack (>= 1.0)
rails (2.3.11)
actionmailer (= 2.3.11)
actionpack (= 2.3.11)
activerecord (= 2.3.11)
activeresource (= 2.3.11)
activesupport (= 2.3.11)
rake (>= 0.8.3)
rake (0.8.7)
rspec (1.3.1)
rspec-rails (1.3.3)
rack (>= 1.0.0)
rspec (= 1.3.1)
ruby-hl7 (1.0.3)
rake (>= 0.8.7)
rubyforge (>= 2.0.4)
rubyforge (2.0.4)
json_pure (>= 1.1.7)
rubyzip (0.9.4)
seed-fu (1.2.3)
rails (>= 2.1)
selenium-webdriver (0.2.0)
childprocess (>= 0.1.7)
ffi (>= 1.0.7)
json_pure
rubyzip
term-ansicolor (1.0.5)
valuable (0.9.1)
will_paginate (2.3.15)
xpath (0.1.4)
nokogiri (~> 1.3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment