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 8352545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:59:31+00:00 2026-06-09T08:59:31+00:00

Alright, so, I’ve looked around on the web and it doesn’t really look like

  • 0

Alright, so, I’ve looked around on the web and it doesn’t really look like a lot of other people have this issue, but maybe something else is wrong with what we’re doing.

I’ve mananged to distill it down to what I think is a useful test case:

config/deploy.rb:

## Excerpt
task :big_delay, :roles => :web do
  run "sleep 480"
  run "echo Meow Meow Meow"
end 

And stupid_script.sh:

#!/bin/sh
ssh foo 'sleep 480; echo Meow Meow Meow'

Where foo is the name of the same server we deploy to.

When I run both of these it should connect to the other box, do nothing for 8 minutes, then spit out some useless text and complete.

The stupid_script works, and the cap task fails.
I see the remote command finish with ps xf, but cap doesn’t seem to notice anymore.
If the sleep is 20 instead of 240, the cap task works fine.

Obviously this task is super useless, but we do have expensive things run on deploy that trigger this, and I’ve made this to rule out any blame on ssh.

Another data point, if we ssh into the box and put the code there and then run cap deploy from there, then it works fine.

So… there seems to be some weird interplay going on between ssh and capistrano.
Thoughts?

  • 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-09T08:59:32+00:00Added an answer on June 9, 2026 at 8:59 am

    Set ClientAliveInterval and ClientAliveCountMax in /etc/ssh/sshd_config on the server as choover suggests. I had the exact same issue with “assets:precompile” on my deploy until I made that change.

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

Sidebar

Related Questions

Alright, so I've looked around the web and haven't been able to find what
Alright, so I have a query that looks like this: SELECT `orders`.*, GROUP_CONCAT( CONCAT(
Alright. I have a query that looks like this: SELECT SUM(`order_items`.`quantity`) as `count`, `menu_items`.`name`
Alright so I have no idea how to even begin doing this But basically
Alright so I have been looking around (on SO and Google) to see if
Alright, i have read many different views on how to do this with no
Alright guys, I have looked on the internet for ages and simply could not
Alright, I'm extremely new to programming so odds are this is a really easy
Alright. This may be difficult but I have been struggling for quite a bit
Alright, So I have an issue that is a bit weird. I am using

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.