Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Capistrano with darcs error "darcs failed: Not a repository"
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Stuart  
View profile  
 More options Aug 16 2007, 1:30 pm
From: Stuart <ssi...@law.columbia.edu>
Date: Thu, 16 Aug 2007 10:30:44 -0700
Local: Thurs, Aug 16 2007 1:30 pm
Subject: Capistrano with darcs error "darcs failed: Not a repository"
Hello all,

Anyone using Capistrano with darcs?  I'm trying to deploy to a new
server and not having any luck.
I've copied the darcs repository to a directory on the server.  When
cap is trying to get the list of patches from the repository, it can't
find it, so darcs fails with the error "Not a repository."

Here's my deploy.rb:

    set :application, "myapp"
    set :repository,  "/home/myapp/darcs/myapp"

    # If you aren't deploying to /u/apps/#{application} on the target
    # servers (which is the default), you can specify the actual
location
    # via the :deploy_to variable:
    set :deploy_to, "/home/myapp/deploy"

    # If you aren't using Subversion to manage your source code,
specify
    # your SCM below:
    set :scm, :darcs
    set :scm_verbose, false
    set :deploy_via, :checkout

    set :user, 'myapp'

    role :app, "myapp.com"
    role :web, "myapp.com"
    role :db,  "myapp.com", :primary => true

And here's a log of my shell session:

    me@desktop:~/myapp$ cap deploy:cold
      * executing `deploy:cold'
      * executing `deploy:update'
     ** transaction: start
      * executing `deploy:update_code'

    darcs failed:  Not a repository: /home/myapp/darcs/myapp (/home/
myapp/darcs/myapp/_darcs/inventory: openBinaryFile: does not exist (No
such file or directory))
      * executing "darcs get --repo-name=/home/myapp/deploy/releases/
20070816172442 --to-match='hash ' /home/myapp/darcs/myapp && (echo  > /
home/myapp/deploy/releases/20070816172442/REVISION)"
        servers: ["myapp.com"]
        [myapp.com] executing command
    Copying patch 1 of 225...
    Copying patch 2 of 225...
    Copying patch 3 of 225...
    <...snip...>
    Copying patch 225 of 225... done!
     ** [out] darcs:
     ** [out] Couldn't find patch matching "hash "
     ** [out]
        command finished
    *** [deploy:update_code] rolling back
      * executing "rm -rf /home/myapp/deploy/releases/20070816172442;
true"
        servers: ["myapp.com"]
        [myapp.com] executing command
        command finished
    command "darcs get --repo-name=/home/myapp/deploy/releases/
20070816172442 --to-match='hash ' /home/myapp/darcs/myapp && (echo  > /
home/myapp/deploy/releases/20070816172701/REVISION)" failed on
myapp.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jamis Buck  
View profile  
 More options Aug 16 2007, 1:43 pm
From: "Jamis Buck" <ja...@37signals.com>
Date: Thu, 16 Aug 2007 11:43:49 -0600
Local: Thurs, Aug 16 2007 1:43 pm
Subject: Re: [Capistrano] Capistrano with darcs error "darcs failed: Not a repository"
When using the :checkout deployment strategy, the repository must be
accessible by both the remote host(s) and the local host (since it
just does a checkout operation on each target host).

If that's not an option, you might want to consider using the :copy
strategy, instead.

- Jamis

On 8/16/07, Stuart <ssi...@law.columbia.edu> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stuart  
View profile  
 More options Aug 16 2007, 4:28 pm
From: Stuart <ssi...@law.columbia.edu>
Date: Thu, 16 Aug 2007 13:28:48 -0700
Local: Thurs, Aug 16 2007 4:28 pm
Subject: Re: Capistrano with darcs error "darcs failed: Not a repository"
Thanks, Jamis.  Changing to ":checkout, :copy" gets the code from my
local darcs repository on my development machine, which works fine for
me.

Another problem, however:  cap freezes while uploading the gzipped
copy of the code.  The last thing cap prints to the screen is:

    ** uploading data to mysite.com:/tmp/20070816195756.tar.gz

Then it does nothing until I kill it.  If I log in to the server,
there's a file at /tmp/20070816195756.tar.gz with zero bytes.  Could
this be some obscure bug in Ruby's SFTP library?

Thanks,
-Stuart

On Aug 16, 1:43 pm, "Jamis Buck" <ja...@37signals.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jamis Buck  
View profile  
 More options Aug 16 2007, 4:32 pm
From: "Jamis Buck" <ja...@37signals.com>
Date: Thu, 16 Aug 2007 14:32:05 -0600
Local: Thurs, Aug 16 2007 4:32 pm
Subject: Re: [Capistrano] Re: Capistrano with darcs error "darcs failed: Not a repository"
Sadly, yeah, it sounds like you're one of the lucky few who are
getting bitten by that one. I've never been able to duplicate it
reliably, so I'm not sure what's causing it, but I'm hoping my rewrite
of Net::SFTP will fix it. (Should have that ready to release by the
end of the month).

In the meantime, I believe some on this list have written custom
strategies to work around that bug... anyone want to chime in here?

- Jamis

On 8/16/07, Stuart <ssi...@law.columbia.edu> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stuart  
View profile  
 More options Aug 16 2007, 5:00 pm
From: Stuart <ssi...@law.columbia.edu>
Date: Thu, 16 Aug 2007 14:00:33 -0700
Local: Thurs, Aug 16 2007 5:00 pm
Subject: Re: Capistrano with darcs error "darcs failed: Not a repository"
Thanks, though, at least I know I'm not nuts.  I'll figure out a
workaround, probably just upload manually for now.
-Stuart

On Aug 16, 4:32 pm, "Jamis Buck" <ja...@37signals.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »