(Sorry to take so long to get back to you on this--I'm just returned  
from Europe, where I effectively had no Internet connection for  
almost a week.)

The problem, as you pointed out, is that Capistrano PR3 doesn't work  
right when connecting to multiple hosts. This is fixed in trunk, and  
I've uploaded a beta-beta gem to the capistrano group that represents  
the current state of trunk:

   http://groups.google.com/group/capistrano/web/ 
capistrano-1.99.2.7114.gem

Feel free to download that and give it a go. It's effectively an  
unofficial "preview release #3.5". I hope to have cap2 final out in  
the next few days.

- Jamis

On Jun 22, 2007, at 2:22 PM, Renaud (Nel) Morvan wrote:

>
>
>
> On Jun 22, 8:31 pm, ry <[EMAIL PROTECTED]> wrote:
>> I should note that things work as expected when there is only one
>> server defined. However if there are multiple servers for a role (or
>> multiple roles), I get the above error.
>
> There is a thread safety issue in rc3 which make it impossible to
> deploy on multiple host
>
> Before the next release you can fix it by patching
> establish_connection_to in
> /opt/local/lib/ruby/gems/1.8/gems/capistrano-1.99.2/lib/capistrano/
> configuration/connections.rb
>
> and replace it by
>
>         def establish_connection_to(server)
>           c = connection_factory
>           Thread.new { sessions[server] ||= c.connect_to(server) }
>         end
>
> --
> Renaud Nel Morvan
> http://feedback20.com
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to