[capistrano] Hang on svn export

175 views
Skip to first unread message

Aaron

unread,
Apr 24, 2010, 1:50:42 AM4/24/10
to Capistrano
Hi, all. I have a new problem that I haven't been able to figure out.

Using Capistrano on a Mac, deploying to four Ubuntu servers.
Everything has been working perfectly for several months. Suddenly,
with no changes in the deploy script or location or configuration of
svn, when I try to deploy the process hangs on "svn export..."

I've ssh'd in to each production server, and verified that I can
execute the "svn export..." command by hand with no problem.

Anyone have any idea what might be going on? Here's an excerpt from
the deploy output:

* executing `deploy:update_code'
executing locally: "svn info svn://localhost/ -rHEAD"
* executing "svn export -q -r1773 svn://nestor/branches/benefits/production
/opt/apps/deploy/benefits/releases/20100424053414 && (echo 1773 > /opt/
apps/deploy/benefits/releases/20100424053414/REVISION)"
servers: ["homer", "achilles", "agamemnon", "odysseus"]

At this point, the process hangs. Hitting ^C gives the following stack
trace: http://pastie.org/932681

$ ruby --version
ruby 1.8.7 (2009-06-08 patchlevel 173) [universal-darwin10.0]
$ cap --version
Capistrano v2.5.2

--
* You received this message because you are subscribed to the Google Groups "Capistrano" group.
* To post to this group, send email to capis...@googlegroups.com
* To unsubscribe from this group, send email to capistrano+...@googlegroups.com For more options, visit this group at http://groups.google.com/group/capistrano?hl=en

Lee Hambley

unread,
Apr 24, 2010, 5:27:21 AM4/24/10
to capis...@googlegroups.com
Upgrade your capistrano, looks like a thread joining bug that was fixed around 20.014 of Net-SSH, also you could try getting off 1.8.7, that patchlevel had bugs (threading wasn't the worst)

At least, try upgrading your net-ssh gem past 2.0.14 (they're at 2.0.22 or something now)

- Lee

Eric Lubow

unread,
Apr 24, 2010, 12:05:10 PM4/24/10
to capis...@googlegroups.com
Shameless self plug: I wrote a blog post explaining this further: http://eric.lubow.org/2010/mac/capistrano-hangs-on-mac-os-x-leopard/ since not everyone wants to go through a ticket.

I also ran into a similar problem after upgrading net-ssh.  If the user doesn't have permission to export (ie clobber the existing file(s)), Capistrano would hang with no more output.  I have my Capistrano deploy login as an unprivileged user.  Someone modified the file as root, changed the ownership and permissions and the deploy hung.  If upgrading net-ssh doesn't solve your issue like Lee suggested, check out the perms and ownership on the files just in case.

-e

Aaron Starr

unread,
Apr 24, 2010, 5:52:37 PM4/24/10
to capis...@googlegroups.com

Lee & Eric, thank you, thank you, thank you!

$ sudo gem install --no-rdoc --no-ri net-ssh

was sufficient to solve my problem. I sincerely appreciate your quick and helpful responses.

Aaron
Reply all
Reply to author
Forward
0 new messages