Re: [capistrano-mailing-list] Could not fetch specs from https://rubygems.org/
Hey Eugeniu, When I encounter issues like this, I'll first try and eliminate Capistrano as the cause. Log into the server as your deploy user, and navigate to the releases directory (something like /home/user/rtms/releases/). Then run bundle install. If it fails, this is a Bundler issue and has nothing to do with Capistrano. ~William Johnston On Fri, Oct 7, 2016 at 8:52 AM, Eugeniu Tamburwrote: > Versions: > > Ruby 2.3.1 > Capistrano 3.6.1 > Rake / Rails / etc > > Platform: > > Working on Windows 8.1 x64 > Deploying to.Ubuntu 16.04 > > Logs: > > > 00:14 bundler:install > 01 ~/.rvm/bin/rvm default do bundle install --path > /home/user/rtms/shared/bundle --binstubs /home/user/rtms/shared/bin > --without development test cucumber deploy --deployment … > > 01 Could not fetch specs from https://rubygems.org/ > cap aborted! > SSHKit::Runner::ExecuteError: Exception while executing as u...@xx.xx.xx.xx: > Exception while executing as u...@xx.xx.xx.xx: bundle exit status: 17 > bundle stdout: Could not fetch specs from https://rubygems.org/ > bundle stderr: Nothing written > C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sshkit-1.11.3/lib/sshkit/runners/parallel.rb:15:in > `rescue in block (2 levels) in execute' > C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sshkit-1.11.3/lib/sshkit/runners/parallel.rb:11:in > `block (2 levels) in execute' > SSHKit::Runner::ExecuteError: Exception while executing as u...@xx.xx.xx.xx: > bundle exit status: 17 > bundle stdout: Could not fetch specs from https://rubygems.org/ > bundle stderr: Nothing written > C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sshkit-1.11.3/lib/sshkit/runners/parallel.rb:15:in > `rescue in block (2 levels) in execute' > C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sshkit-1.11.3/lib/sshkit/runners/parallel.rb:11:in > `block (2 levels) in execute' > SSHKit::Command::Failed: bundle exit status: 17 > bundle stdout: Could not fetch specs from https://rubygems.org/ > bundle stderr: Nothing written > C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sshkit-1.11.3/lib/sshkit/command.rb:100:in > `exit_status=' > C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sshkit-1.11.3/lib/sshkit/backends/netssh.rb:148:in > `execute_command' > C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sshkit-1.11.3/lib/sshkit/backends/abstract.rb:141:in > `block in create_command_and_execute' > C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sshkit-1.11.3/lib/sshkit/backends/abstract.rb:141:in > `tap' > C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sshkit-1.11.3/lib/sshkit/backends/abstract.rb:141:in > `create_command_and_execute' > C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sshkit-1.11.3/lib/sshkit/backends/abstract.rb:74:in > `execute' > C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/capistrano-bundler-1.2.0/lib/capistrano/tasks/bundler.cap:36:in > `block (5 levels) in ' > C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sshkit-1.11.3/lib/sshkit/backends/abstract.rb:93:in > `with' > C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/capistrano-bundler-1.2.0/lib/capistrano/tasks/bundler.cap:27:in > `block (4 levels) in ' > C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sshkit-1.11.3/lib/sshkit/backends/abstract.rb:85:in > `within' > C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/capistrano-bundler-1.2.0/lib/capistrano/tasks/bundler.cap:26:in > `block (3 levels) in ' > C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sshkit-1.11.3/lib/sshkit/backends/abstract.rb:29:in > `instance_exec' > C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sshkit-1.11.3/lib/sshkit/backends/abstract.rb:29:in > `run' > C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sshkit-1.11.3/lib/sshkit/runners/parallel.rb:12:in > `block (2 levels) in execute' > Tasks: TOP => deploy:initial > The deploy has failed with an error: Exception while executing as > u...@xx.xx.xx.xx: Exception while executing as u...@xx.xx.xx.xx: bundle exit > status: 17 > bundle stdout: Could not fetch specs from https://rubygems.org/ > bundle stderr: Nothing written > ** Invoke deploy:failed (first_time) > ** Execute deploy:failed > > > ** DEPLOY FAILED > ** Refer to log/capistrano.log for details. Here are the last 20 lines: > > > * net-scp (1.2.1) > > DEBUG [cc59676e]* sshkit (1.11.3) > > * airbrussh (1.1.1) > > DEBUG [cc59676e]* capistrano-harrow (0.5.3) > > DEBUG [cc59676e]* capistrano (3.6.1) > > * capistrano-bundler (1.2.0) > > * capistrano-rails (1.1.8) > > DEBUG [cc59676e]* capistrano-rvm (0.1.2) > > DEBUG [cc59676e]* capistrano-upload-config (0.7.0) > > DEBUG [cc59676e]* capistrano3-nginx (2.1.5) > > DEBUG [cc59676e]* capistrano3-puma (1.2.1) > > * xpath (2.0.0) > > DEBUG [cc59676e]* capybara (2.10.0) > > DEBUG [cc59676e]* database_cleaner (1.5.3) > > DEBUG [cc59676e]* shoulda-matchers (3.1.1) > > Install missing gems with `bundle install` > > DEBUG [cc59676e] Finished in 1.306 seconds with exit status 1 (failed). > > INFO [e2042204] Running ~/.rvm/bin/rvm default do bundle install --path > /home/user/rtms/shared/bundle --binstubs
[capistrano-mailing-list] Could not fetch specs from https://rubygems.org/
*Versions:* - Ruby 2.3.1 - Capistrano 3.6.1 - Rake / Rails / etc *Platform:* - Working on Windows 8.1 x64 - Deploying to.Ubuntu 16.04 *Logs:* 00:14 bundler:install 01 ~/.rvm/bin/rvm default do bundle install --path /home/user/rtms/shared/bundle --binstubs /home/user/rtms/shared/bin --without development test cucumber deploy --deployment … 01 Could not fetch specs from https://rubygems.org/ cap aborted! SSHKit::Runner::ExecuteError: Exception while executing as u...@xx.xx.xx.xx: Exception while executing as u...@xx.xx.xx.xx: bundle exit status: 17 bundle stdout: Could not fetch specs from https://rubygems.org/ bundle stderr: Nothing written C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sshkit-1.11.3/lib/sshkit/runners/parallel.rb:15:in `rescue in block (2 levels) in execute' C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sshkit-1.11.3/lib/sshkit/runners/parallel.rb:11:in `block (2 levels) in execute' SSHKit::Runner::ExecuteError: Exception while executing as u...@xx.xx.xx.xx: bundle exit status: 17 bundle stdout: Could not fetch specs from https://rubygems.org/ bundle stderr: Nothing written C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sshkit-1.11.3/lib/sshkit/runners/parallel.rb:15:in `rescue in block (2 levels) in execute' C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sshkit-1.11.3/lib/sshkit/runners/parallel.rb:11:in `block (2 levels) in execute' SSHKit::Command::Failed: bundle exit status: 17 bundle stdout: Could not fetch specs from https://rubygems.org/ bundle stderr: Nothing written C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sshkit-1.11.3/lib/sshkit/command.rb:100:in `exit_status=' C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sshkit-1.11.3/lib/sshkit/backends/netssh.rb:148:in `execute_command' C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sshkit-1.11.3/lib/sshkit/backends/abstract.rb:141:in `block in create_command_and_execute' C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sshkit-1.11.3/lib/sshkit/backends/abstract.rb:141:in `tap' C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sshkit-1.11.3/lib/sshkit/backends/abstract.rb:141:in `create_command_and_execute' C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sshkit-1.11.3/lib/sshkit/backends/abstract.rb:74:in `execute' C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/capistrano-bundler-1.2.0/lib/capistrano/tasks/bundler.cap:36:in `block (5 levels) in ' C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sshkit-1.11.3/lib/sshkit/backends/abstract.rb:93:in `with' C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/capistrano-bundler-1.2.0/lib/capistrano/tasks/bundler.cap:27:in `block (4 levels) in ' C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sshkit-1.11.3/lib/sshkit/backends/abstract.rb:85:in `within' C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/capistrano-bundler-1.2.0/lib/capistrano/tasks/bundler.cap:26:in `block (3 levels) in ' C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sshkit-1.11.3/lib/sshkit/backends/abstract.rb:29:in `instance_exec' C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sshkit-1.11.3/lib/sshkit/backends/abstract.rb:29:in `run' C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sshkit-1.11.3/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute' Tasks: TOP => deploy:initial The deploy has failed with an error: Exception while executing as u...@xx.xx.xx.xx: Exception while executing as u...@xx.xx.xx.xx: bundle exit status: 17 bundle stdout: Could not fetch specs from https://rubygems.org/ bundle stderr: Nothing written ** Invoke deploy:failed (first_time) ** Execute deploy:failed ** DEPLOY FAILED ** Refer to log/capistrano.log for details. Here are the last 20 lines: * net-scp (1.2.1) DEBUG [cc59676e]* sshkit (1.11.3) * airbrussh (1.1.1) DEBUG [cc59676e]* capistrano-harrow (0.5.3) DEBUG [cc59676e]* capistrano (3.6.1) * capistrano-bundler (1.2.0) * capistrano-rails (1.1.8) DEBUG [cc59676e]* capistrano-rvm (0.1.2) DEBUG [cc59676e]* capistrano-upload-config (0.7.0) DEBUG [cc59676e]* capistrano3-nginx (2.1.5) DEBUG [cc59676e]* capistrano3-puma (1.2.1) * xpath (2.0.0) DEBUG [cc59676e]* capybara (2.10.0) DEBUG [cc59676e]* database_cleaner (1.5.3) DEBUG [cc59676e]* shoulda-matchers (3.1.1) Install missing gems with `bundle install` DEBUG [cc59676e] Finished in 1.306 seconds with exit status 1 (failed). INFO [e2042204] Running ~/.rvm/bin/rvm default do bundle install --path /home/user/rtms/shared/bundle --binstubs /home/user/rtms/shared/bin --without development test cucumber deploy --deployment --quiet as u...@xx.xx.xx.xx DEBUG [e2042204] Command: cd /home/user/rtms/releases/20161007133640 && ( export RVM_BIN_PATH="~/.rvm/bin" ; ~/.rvm/bin/rvm default do bundle install --path /home/user/rtms/shared/bundle --binstubs /home/user/rtms/shared/bin --without development test cucumber deploy --deployment --quiet ) DEBUG [e2042204] * Could not fetch specs from https://rubygems.org/* *Cap file:* # Load DSL and set up stages require "capistrano/setup" # Include default