Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8373325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:39:02+00:00 2026-06-09T14:39:02+00:00

During the initial deployment, cap deploy hangs at the initial clone. It gives this

  • 0

During the initial deployment, cap deploy hangs at the initial clone. It gives this output and sits there forever, without exiting or giving any kind of error:

** [50.18.125.107 :: out] Cloning into 'home/torquebox/apps/releases/20120808033824'...

It is similar to this question, except I’m able to execute the command manually, just not automate it with capistrano.

Server setup:
Ubuntu 12.04 LTS on EC2
TorqueBox server, jruby, java6, postgresql, mysql, apache2, tomcat7

Dev machine:
OSX Lion
Using the ssh keys on my dev machine to access github via forward_agent

Application:
JRuby on Rails
github repo

deploy.rb in a gist

The facts and what I have tried:

cap deploy:setup works fine and does create the directory structure.

if I ssh in manually and execute the commands, the clone works correctly.

I’ve tried cap with verbose (-v) and debug (-d) and neither gave me any more info.

I tried to ssh into github using the forward_agent on the remote machine to deal with the known hosts bug but thatworked fine too.

I checked the environment variables and realized that not everything was getting loaded because it’s not an interactive shell, so I added the additional PATH dirs and other environment variables that are usually loaded by login scripts. I even edited the sshd_config file to allow user environments in non-interactive scripts.

I tried executing the commands manually via cap shell but I’m seeing the same behavior.

The clone operation does create the correct target directory and put a .git directory in it, but the repo seems empty.

I’ve tried with the remote-cache option on and off, and see the same behavior either way.

I tried using the ec2 dns name for my server rather than the elastic IP, because of this post but that didn’t work.

So I’m stuck. I’d really appreciate any suggestions of where to look next to try to figure this out. Let me know if any more info would be helpful.

Thanks!!

Will

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T14:39:04+00:00Added an answer on June 9, 2026 at 2:39 pm

    The issue is probably the fact that ssh agent forwarding is broken in JRuby. It is fixed as of JRuby 1.7.0.pre2.

    see: http://jira.codehaus.org/browse/JRUBY-6181

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I’m looking at creating a P2P system. During initial research, I’m reading from Peer-to-Peer
Trying to figure out the best way to do this (And without crossing any
I'm wondering about the advantages of using (django) South during heavy initial development of
I have cloned an SVN repository from work using git-svn. During the initial cloning,
During our initial development we haven't worried about scaling concerns, just getting the bare
Is there any way to prespecify the size of a hash index during the
I have added some files to svn repository during initial revisions. But now, those
I have following this link to create my SQL Server database during installation of
During the initial days of my development, I started always creating instance variables in
During the installation of my app, I want to create a PostgreSQL-Database and some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.