jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • JRuby
  • JRUBY-6181

SSH Agent forwarding does not work with jRuby (which lets capistrano ssh-deployments fail)

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: JRuby 1.7.0.pre2
  • Component/s: OpenSSL
  • Labels:
    None
  • Environment:
    Jruby-1.6.5
  • Testcase included:
    yes

Description

Unfortunately, the agent forwarding option seems to fail using jRuby.
Capistrano deployments won't work if you're using ssh transport for git in combination with agent forwarding.
The connection simply hangs.

Attached you'll find a simple case which works in MRI and hangs in jRuby.

Best,

Tobias

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    jruby-6181-trace.txt
    05/May/12 11:31 AM
    330 kB
    Kevin Menard
  2. File
    test.rb
    05/Nov/11 1:24 PM
    0.2 kB
    Tobias Schlottke
  3. File
    threaddump-1320528062126.tdump
    05/Nov/11 7:02 PM
    25 kB
    Hiro Asari

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Hiro Asari added a comment - 05/Nov/11 7:02 PM

Thread dump of the hung process.

Show
Hiro Asari added a comment - 05/Nov/11 7:02 PM Thread dump of the hung process.
Hide
Permalink
Tobias Schlottke added a comment - 06/Nov/11 2:50 AM

IMHO this bug is even critical because it makes deploying git apps via capistrano almost impossible.
How are you guys doing this and why did nobody ever realize it?

Show
Tobias Schlottke added a comment - 06/Nov/11 2:50 AM IMHO this bug is even critical because it makes deploying git apps via capistrano almost impossible. How are you guys doing this and why did nobody ever realize it?
Hide
Permalink
Nicholas Cancelliere added a comment - 08/Feb/12 11:48 AM

I've encountered this issue as well. Deploying with the ssh_forward option turned on for Capistrano causes the deployment to hang. Using a non-JRuby (1.9.2 MRI) it works fine. Turning off ssh_forward doesn't hang, but then doesn't really do what I need to for deployments (since we rely on the ssh_forward stuff).

Show
Nicholas Cancelliere added a comment - 08/Feb/12 11:48 AM I've encountered this issue as well. Deploying with the ssh_forward option turned on for Capistrano causes the deployment to hang. Using a non-JRuby (1.9.2 MRI) it works fine. Turning off ssh_forward doesn't hang, but then doesn't really do what I need to for deployments (since we rely on the ssh_forward stuff).
Hide
Permalink
Hiroshi Nakamura added a comment - 28/Apr/12 9:52 PM

Thanks for the dump. The net/ssh client seems to be waiting for a response from the server.

Can someone run JRuby with -d and -Xbacktrace.style=raw to see more detail about what's happening inside?

Show
Hiroshi Nakamura added a comment - 28/Apr/12 9:52 PM Thanks for the dump. The net/ssh client seems to be waiting for a response from the server. Can someone run JRuby with -d and -Xbacktrace.style=raw to see more detail about what's happening inside?
Hide
Permalink
Hiroshi Nakamura added a comment - 29/Apr/12 10:56 PM

Removing me from Assignee because I don't have an environment now. I would be able to take this again when logs/traces are provided.

Show
Hiroshi Nakamura added a comment - 29/Apr/12 10:56 PM Removing me from Assignee because I don't have an environment now. I would be able to take this again when logs/traces are provided.
Hide
Permalink
Kevin Menard added a comment - 05/May/12 11:31 AM

Here's a trace running JRuby 1.6.7 in 1.9 mode with Capistrano 2.12.0. I have the same problem with using 1.7.0-dev.

Show
Kevin Menard added a comment - 05/May/12 11:31 AM Here's a trace running JRuby 1.6.7 in 1.9 mode with Capistrano 2.12.0. I have the same problem with using 1.7.0-dev.
Hide
Permalink
Kevin Menard added a comment - 07/May/12 10:01 AM

I think JRUBY-5868 may be related as well.

Show
Kevin Menard added a comment - 07/May/12 10:01 AM I think JRUBY-5868 may be related as well.

People

  • Assignee:
    Unassigned
    Reporter:
    Tobias Schlottke
Vote (6)
Watch (6)

Dates

  • Created:
    05/Nov/11 1:24 PM
    Updated:
    Monday 5:24 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.