Fatal: HTTP request failed
error: The requested URL returned error: 401 Unauthorized while accessing https://giterver.domain.com/engines/aspphauthenticatable.git/info/refs
fatal: HTTP request failed
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/sshkit-1.5.1/lib/sshkit/command.rb:97:in `exit_status='
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/sshkit-1.5.1/lib/sshkit/backends/netssh.rb:148:in `block (5 levels) in _execute'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/net-ssh-2.9.1/lib/net/ssh/connection/channel.rb:551:in `call'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/net-ssh-2.9.1/lib/net/ssh/connection/channel.rb:551:in `do_request'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/net-ssh-2.9.1/lib/net/ssh/connection/session.rb:561:in `channel_request'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/net-ssh-2.9.1/lib/net/ssh/connection/session.rb:465:in `dispatch_incoming_packets'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/net-ssh-2.9.1/lib/net/ssh/connection/session.rb:221:in `preprocess'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/net-ssh-2.9.1/lib/net/ssh/connection/session.rb:205:in `process'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/net-ssh-2.9.1/lib/net/ssh/connection/session.rb:169:in `block in loop'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/net-ssh-2.9.1/lib/net/ssh/connection/session.rb:169:in `loop'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/net-ssh-2.9.1/lib/net/ssh/connection/session.rb:169:in `loop'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/net-ssh-2.9.1/lib/net/ssh/connection/channel.rb:269:in `wait'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/sshkit-1.5.1/lib/sshkit/backends/netssh.rb:170:in `block (3 levels) in _execute'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/net-ssh-2.9.1/lib/net/ssh/connection/channel.rb:514:in `call'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/net-ssh-2.9.1/lib/net/ssh/connection/channel.rb:514:in `do_open_confirmation'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/net-ssh-2.9.1/lib/net/ssh/connection/session.rb:545:in `channel_open_confirmation'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/net-ssh-2.9.1/lib/net/ssh/connection/session.rb:465:in `dispatch_incoming_packets'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/net-ssh-2.9.1/lib/net/ssh/connection/session.rb:221:in `preprocess'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/net-ssh-2.9.1/lib/net/ssh/connection/session.rb:205:in `process'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/net-ssh-2.9.1/lib/net/ssh/connection/session.rb:169:in `block in loop'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/net-ssh-2.9.1/lib/net/ssh/connection/session.rb:169:in `loop'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/net-ssh-2.9.1/lib/net/ssh/connection/session.rb:169:in `loop'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/sshkit-1.5.1/lib/sshkit/backends/netssh.rb:172:in `block (2 levels) in _execute'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/sshkit-1.5.1/lib/sshkit/backends/netssh.rb:186:in `with_ssh'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/sshkit-1.5.1/lib/sshkit/backends/netssh.rb:131:in `block in _execute'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/sshkit-1.5.1/lib/sshkit/backends/netssh.rb:128:in `tap'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/sshkit-1.5.1/lib/sshkit/backends/netssh.rb:128:in `_execute'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/sshkit-1.5.1/lib/sshkit/backends/netssh.rb:66:in `execute'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/capistrano-bundler-1.1.2/lib/capistrano/tasks/bundler.cap:30:in `block (5 levels) in <top (required)>'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/sshkit-1.5.1/lib/sshkit/backends/abstract.rb:85:in `with'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/capistrano-bundler-1.1.2/lib/capistrano/tasks/bundler.cap:22:in `block (4 levels) in <top (required)>'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/sshkit-1.5.1/lib/sshkit/backends/abstract.rb:77:in `within'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/capistrano-bundler-1.1.2/lib/capistrano/tasks/bundler.cap:21:in `block (3 levels) in <top (required)>'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/sshkit-1.5.1/lib/sshkit/backends/netssh.rb:54:in `instance_exec'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/sshkit-1.5.1/lib/sshkit/backends/netssh.rb:54:in `run'
/Users/lovell/.rvm/gems/ruby-2.0.0-p451/gems/sshkit-1.5.1/lib/sshkit/runners/parallel.rb:13:in `block (2 levels) in execute'
Tasks: TOP => deploy:updated => bundler:install
(See full trace by running task with --trace)
The deploy has failed with an error: #<SSHKit::Runner::ExecuteError: Exception while executing on host myserver.domain.com: bundle exit status: 11
bundle stdout: Nothing written--
You received this message because you are subscribed to the Google Groups "Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capistrano+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/64d157ce-7515-4a50-81ca-688a8a81363c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/CALgP05b_be%2B%3Drra9OFh0jRNvyV9Ggu7RGsx8Rjiec16%3DP-3YJw%40mail.gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/B4C32073-440D-48D5-9118-EED4A32689AA%40gmail.com.
Reviewing the log, your problem seems to be happening in the gem install step (bundler:install task).I hope it helps a little, regards
You are trying to install in deployment mode after changingyour Gemfile. Run `bundle install` elsewhere and add theupdated Gemfile.lock to version control.
If this is a development machine, remove the Gemfile freezeby running `bundle install --no-deployment`.
You have added to the Gemfile:* source: g...@gitserver.domain.com:engines/auth_engin.git (at master)
You have deleted from the Gemfile:* source: https://gitserver.domain.com/engines/auth_engin.git (at master)
You have changed in the Gemfile:* aspph_authenticatable from `g...@gitserver.domain.com:engines/auth_engin.git (at master)` to `no specified source`bundle install --no-deployment
On Wednesday, August 20, 2014 12:14:06 PM UTC-4, Rafa García wrote:Reviewing the log, your problem seems to be happening in the gem install step (bundler:install task).I hope it helps a little, regardsSorry for the late response. I have been away and unable to get to email. Here is is more debugging that I found.After a failed deployment, I went to the directory where the application was deployed to and ran bundle install. I was presented with the following notification:You are trying to install in deployment mode after changingyour Gemfile. Run `bundle install` elsewhere and add theupdated Gemfile.lock to version control.If this is a development machine, remove the Gemfile freezeby running `bundle install --no-deployment`.You have added to the Gemfile:* source: g...@gitserver.domain.com:engines/auth_engin.git (at master)You have deleted from the Gemfile:* source: https://gitserver.domain.com/engines/auth_engin.git (at master)You have changed in the Gemfile:* aspph_authenticatable from `g...@gitserver.domain.com:engines/auth_engin.git (at master)` to `no specified source`So I ranbundle install --no-deploymentAnd this confirms that the issue was with getting the gem dependencies from the engine that I created and was trying to install with the application.The server I am deploying to is not a production server. The RAILS_ENV is set to 'dev_server' which I am not sure capistrano knows how to deal with since it is not a 'development', 'staging', or 'production' server. As a test, I changed my config/deploy/dev_server.rb to config/deploy/development.rb and I get the same error.So my question now how do get this to deploy on my development server without me needing to manually run 'bundle install --no-deployment' and what does this mean when I try to deploy to production?My current deploy.rb file can be found here: http://pastebin.com/uGNtv4LE
Does it make sense that I can add
set :bundle_flags, "--no-deployment"