Capistrano Many Private Repo Github

Very strange behavior and i cant understand where problems.
I have 2 private repositories on Github and i deploy with Capistrano.
First app normal deployed deploy.rb:

require "rvm/capistrano"
require 'bundler/capistrano'

set :rvm_ruby_string, "2.1.0"
set :assets_role, :app
set :normalize_asset_timestamps, false
set :application, "awesome_app_one"

set :scm, :git
set :repository, ""
set :branch, :master
set :deploy_via, :remote_cache
set :ssh_options, { forward_agent: true }

set :user, "rails"
set :deploy_to, "/home/rails/#{application}"
set :shared_children,   %w(public/system public/files public/uploads log tmp/pids tmp/sockets)
set :use_sudo,  false

task :production do
  role :web, "123.456.789.0"
  role :app, "123.456.789.0"
  role :db,  "123.456.789.0", primary: true

  set :branch, :master
  set :deploy_to, "/home/rails/#{application}"
  set :rails_env, 'production'

Another app have similar deploy.rb recipe and capistrano can`t found repo:

  • Reading the first line of a file in Ruby
  • Why is a cap deploy giving Permission denied (publickey)?
  • GitHub Deploy via Capistrano. Public Repo and SSH works, but Private doesn't
  • Capistrano 3 copy strategy equivalent
  • Ignoring certain files and changes in capistrano's current directory for development environment
  • how to resolve ssh key rejection while deploying 1st Rails3 app?
  • > ** [123.456.789.0 :: err] ERROR: Repository not found.
    > ** [123.456.789.0 :: err] fatal: The remote end hung up unexpectedly

    Then i try clone repo on server:

    $> git clone
    $> Initialized empty Git repository in /home/rails/repo_two/.git/
    $> ERROR: Repository not found.
    $> fatal: The remote end hung up unexpectedly

    I add my ssh keys from server on repo_one and repo_two. Look the same problem here but no answers.


    I found some solution and now i can clone repo on server but somebody know how tell capistrano use my command to pull repo?

  • Git: Overwriting Multiple Commits on Remote Feature Branch after Local Rebase/Squash
  • git clone fails when uses ssh connection
  • What does git mean?
  • How do I set owner and group on git files on checkout from hooks/post-receive?
  • Checking out Git tag leads to “detached HEAD state”
  • Commiter email address does not match in IntelliJ even changing it to correct one
  • One Solution collect form web for “Capistrano Many Private Repo Github”

    Had this error last night

    We had to use this to get around that error:

    set :repository, ''

    We’re refactoring, but it worked for us

    Git Baby is a git and github fan, let's start git clone.