Capistrano and svn prompts

| No Comments
I've been configuring rails 2 apps for automation with Capistrano 2.6 lately and I encountered a pretty irritating bug with svn. When you run the deploy:update command, Capistrano prompts you for your svn password and your machine password - like it should - and then it hangs forever on the actual deploy step. The problem occurs only when svn continually asks if you want to save your password with one of these dialogs:
-----------------------------------------------------------------------
ATTENTION!  Your password for authentication realm:
    Subversion Repository
can only be stored to disk unencrypted!  
...
-----------------------------------------------------------------------
Solution: make svn stop asking you if you want to save your password. To do this, modify your ~/.subversion/config so that it has (at least) this section:
[auth]
store-passwords = no
store-auth-creds = no
If you're interested, read more to view the error messages from Capistrano.
Here's a ascii screenshot of what svn was doing with capistrano:
kerzn002@ike:/web/railsapps/FAKE/config/deploy$ cap demo deploy
  * executing `demo'
    triggering start callbacks for `deploy'
  * executing `multistage:ensure'
  * executing `deploy'
  * executing `deploy:update'
 ** transaction: start
  * executing `deploy:update_code'
    executing locally: "svn info https://svn.example.com/repos/example/webapp/trunk  -rHEAD"
Authentication realm:  Subversion Repository
Password for 'kerzn002':

-----------------------------------------------------------------------
ATTENTION!  Your password for authentication realm:

    Subversion Repository

can only be stored to disk unencrypted!  You are advised to configure
your system so that Subversion can store passwords encrypted, if
possible.  See the documentation for details.   

You can avoid future appearances of this warning by setting the value
of the 'store-plaintext-passwords' option to either 'yes' or 'no' in
'/home/kerzn002/.subversion/servers'.
-----------------------------------------------------------------------
Store password unencrypted (yes/no)? no
    command finished in 5237ms
  * executing "svn checkout -q  -r38770 https://svn.example.com/repos/example/webapp/trunk /web/railsapps/rails/istads/releases/20110629035332 && (echo 38770 > /web/railsapps/rails/istads/releases/20110629035332/REV
ISION)"
    servers: ["myhost.example.com"]
Password:
    [myhost.example.com] executing command
 ** [myhost.example.com :: out] Authentication realm:  Subversion Repository
 ** Password for 'kerzn002':
 ** [myhost.example.com :: out]
 ** [myhost.example.com :: out] Authentication realm:  Subversion Repository
 ** Username:
Here's the part where I interrupt the deployment since it's hanging forever
^C
*** [deploy:update_code] rolling back
  * executing "rm -rf /web/railsapps/rails/istads/releases/20110629035332; true"
    servers: ["myhost.example.com"]
    [myhost.example.com] executing command
    command finished in 48ms

Leave a comment

About this Entry

This page contains a single entry by Jeff Kerzner published on July 29, 2011 11:16 AM.

Uploading Files with Drupal 6 was the previous entry in this blog.

Syntax Highlighting is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.