Hi again,
We have discovered what the issue is with upgrade:revisions.
When we defined out subversion server, we did so via the line:
role :svn, 'svnserver...', :no_release => true
It seems like the upgrade:revisions task ignored the ':no_release =>
true' declaration, and tried to log into our svn server directly. Our
network does not allow direct log on to the subversion server, so the
task failed.
We fixed it by changing the capistrano recipe to perform the check.
Patch for capistrano-2.0/lib/capistrano/recipes/upgrade.rb is attached.
Cheers.
stevev wrote:
> Hi,
>
> we are trying to upgrade from Capistrano 1.4.1 to 2.0. We're trying to
> follow the instructions on the capistrano website but are getting
> stuck trying to upgrade revisions.
>
> We have an environment called internal_uat which, for 1.4.1, was set
> up as a task in deploy.rb
>
> by calling 'cap internal_uat -f upgrade -f Capfile upgrade:revisions'
>
> we get the following error
>
> [DEPRECATION] Capistrano.configuration is deprecated. Use
> Capistrano::Configuration.instance instead
> * executing `internal_uat'
> * executing `upgrade:revisions'
> * executing "cat /usr/apps/our_app_base/revisions.log"
> servers: ["svserver.ourdomain"]
> connection failed for: svserver.ourdomain
> (Net::SSH::AuthenticationFailed:our_user_name)
>
>
--
IBSA Logo*Steve Vanspall
Developer*
Level 2 476 St Kilda Road Melbourne VIC 3004
T 613 8807 5255 | F 613 8807 5203 | M 0438 221 058 | www.ibsglobalweb.com
<http://www.ibsglobalweb.com>
This e-mail (and any attachments to this e-mail) is for the exclusive
use of the person, firm or corporation to which it is addressed and may
contain information that by law is privileged, confidential or protected
by copyright. If you are not the intended recipient or the person
responsible for delivering this e-mail to the intended recipient, you
are notified that any use, disclosure, distribution, printing or copying
of this e-mail transmission is prohibited by law and that the contents
must be kept strictly confidential. If you have received this e-mail in
error, kindly notify us immediately on + 613 8807 0168 or respond to the
sender by return e-mail. The original transmission of this e-mail must
be destroyed.
Internet Business Systems Australia Pty Ltd accepts no responsibility
for any viruses this e-mail may contain. This notice should not be removed.
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---
--- upgrade.rb 2007-10-02 17:41:01.000000000 +1000
+++ upgrade-new.rb 2007-10-02 17:43:20.000000000 +1000
@@ -10,7 +10,7 @@
tag file used in Capistrano 2.x. It is non-destructive and may be safely \
run any number of times.
DESC
- task :revisions do
+ task :revisions, :except => { :no_release => true } do
revisions = capture("cat #{deploy_to}/revisions.log")
mapping = {}