<<2010-03-17 2010-03-19>>
    Mar 18 00:11
    hobodave joined #capistrano
    Mar 18 00:24
    thedeeno left #capistrano
    thedeeno joined #capistrano
    Mar 18 01:14
    oekotaco_ joined #capistrano
    sandy__ joined #capistrano
    robinbowes joined #capistrano
    yugui_zzz joined #capistrano
    Mar 18 03:37
    anicet joined #capistrano
    Mar 18 04:03
    e1mer joined #capistrano
    \etc\bin joined #capistrano
    Mar 18 04:34
    christophsturm joined #capistrano
    Mar 18 05:09
    davidc`` joined #capistrano
    Mar 18 05:46
    e1mer joined #capistrano
    Mar 18 06:06
    BeatsOnToast joined #capistrano
    Mar 18 07:00
    e1mer joined #capistrano
    Mar 18 07:47
    tsal joined #capistrano
    Mar 18 08:15
    \etc\bin joined #capistrano
    RORgasm joined #capistrano
    Mar 18 08:32
    sharat87 joined #capistrano
    sharat87
    hello, I just installed capistrano with "gem install capistrano", but I don't have the cap command...
    should I do anything else to get the command?
    Mar 18 08:51
    thedeeno joined #capistrano
    Mar 18 09:00
    thedeeno
    Anyone using Capistrano in an env where gitosis is on the deployment machine? I'm running into serious issues. I've tried setting both the repository and local_repository to the correct values and switching the deploy strategy to copy, but deploy:cold errors right away saying 'Too many arguments' and printing the git usage text. Anyone have any ideas?
    tsal
    sharat87: make sure your path is available
    if you didn't sudo it - then your home directory gem path has to be in yoru path
    hey thedeeno show some code, or ask on the mailing list
    sharat87
    tsal: yes, i found that, and added the bin to the path
    and now i have a new problem..
    tsal
    OK
    sharat87
    i wrote the sample capfile on the getting started page on the homepage
    thedeeno
    tsal, what code would you like to see?
    sharat87
    when i run cap, it gives a looong stack trace..
    i am not a ruby guy, so I can't make much sense of it..
    can i paste it somewhere?
    tsal
    yes, sharat87 gist.github.com or pastie.org or something
    sharat87
    ok
    tsal
    thedeeno: outpout from running it, and your repository values
    thedeeno
    k, cleaning and posting to pastie. Just a moment. Thanks for taking a look.
    Mar 18 09:05
    tsal
    yeah sharat87 == /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- openssl (LoadError)
    your Ruby doesn't have OpenSSL installed
    you need to figure that out for your platform
    sharat87
    but gem did install net-ssh
    tsal
    (that's unusual, but it happens on Ubuntu?)
    sharat87
    isn't that it?
    tsal
    yeah, right - but net-ssh needs openssl
    sharat87
    i believe i have openssl..
    tsal
    which it can only build if your system has (I think) libssl-dev headers installed
    sharat87
    (i am on ubuntu)
    tsal
    sure, you can have openssl installed,.... but not the development headers
    try `gem install openssl`
    I guess it fails
    sharat87
    so, i do an apt-get libssl-dev or something, and then "gem install capistrano" again?
    tsal
    no, just install the openssl gem
    but, ask in #ubuntu or something, I'm a mac user - so I can't really help
    but, I know ubuntu frequently has this problem
    sharat87
    oh ok
    but it is easy to use on mac rite.. that's the reason I'm exploring capistrano instead of fabric (i'm a python guy ;)
    Mar 18 09:11
    thedeeno
    ok, here's the deploy.rb http://pastie.org/875529
    tsal
    yeah, sure - the ssl problem is specific to ubuntu
    the ssh/ssl stuff is a bit broken on their defaults
    sharat87
    i get a > ERROR: could not find gem openssl locally or in a repository
    tsal
    (works perfectly on a mac)
    ahh, then net-ssh again :)
    pheezy joined #capistrano
    that's the output
    tsal
    ok thanks thedeeno you're using a bare repository on the remote ?
    sharat87
    i heard capistrano is already present on leopard..
    thedeeno
    tsal, hmm, I believe so. I can push/pull using gitosis just fine. The repo looks bare.
    sharat87
    tsal: I did a apt-get install libssh-dev, but still i get the same stack trace
    tsal
    thedeeno: small thing... but on a bare, you should name it <something>.git
    ... so that it's clear it's not a working copy
    lib-ssl sharat87
    so, thedeeno that's a naming problem
    but it's not causing this... so not to worry :)
    sharat87
    yeah, libssh sory
    sheesh! libssl
    thedeeno
    tsal, oh it is named that, i've just found it works with gitosis if I don't. Didn't realize that was a convention.
    tsal
    hey, sharat87 -- lemme help thedeeno that's a little easier right now
    sharat87
    heh ok
    thedeeno
    if I dont add the .git that is
    tsal
    ahh, no problem
    sharat87
    I'll get back in a while.. have to go get some bread :)
    bye
    tsal
    yeah, the .git tells (some tools) ... not cap that it's a bare, and they behave differently..
    byw skateinmars
    so, thedeeno
    you should change:
    set :repository, "git@mydomain.com:myapp"
    set :deploy_via, :copy
    Mar 18 09:16
    tsal
    set :repository, "file:///var/whatever/myapp.git"
    set :local_repository, "git@mydomain.com:myapp.git"
    I really should document that... somewhere :)
    unless you want to deploy via copy ?
    woah, woah thedeeno you are deploying from.... or to windows ?
    thedeeno
    hmm, well I think I tried that (it did take me a while to dig up :). But it's findable). Lemme see what happens if I do it. Lemme verify, my sc setting should look like: http://pastie.org/875538 correct?
    windows :(
    tsal
    from, or to ?
    thedeeno
    from windows to linux
    tsal
    damn, dude - install a VM and deploy from there
    youi can use windows, but it's hell
    and, in the next release - or so it simply won't work
    hhrrmm, that's insane, it looks like your connection is looping back to your workstation
    it looks like it's trying to operate on a windows machine
    if you set "set :deploy_via, :copy" -- then you will ignore the reposiutories, and it'll tar up a copy, and scp it to the server
    thedeeno
    ohh, so Capistrano is only going to support deploying from unix based systems?
    yeah, I _think_ I understand that.
    it looks like the wrong git command is being run though right?
    Mar 18 09:21
    tsal
    sure, you need at least 1.6 on both sides
    thedeeno
    for the initial pull down to my workstation
    you need Capistrano and the server??
    tsal
    you need:
    Git > 1.6.x on both workstation and server
    (Servers)
    then passwordless git access (or you can set :scm_password)
    \etc\bin joined #capistrano
    thedeeno
    well here's the funny thing. I've got password-less git working. I've actually disabled password authentication on the server. So, _only_ keys work. If I manually ssh in, or git pull/push, I don't need a password. Capistrano asks me for one though, could there be another problem?
    Mar 18 09:27
    tsal
    you must be clear about what it's prompting for
    and, on windows - unless you're using putty/pagent properly - you're in a hurtlocker
    putty's pagent has to be running, with your key cached and available to net-ssh when it's making the connection -- but the bad news, is that I have no idea how that works
    ..... i'm lead to believe that it does; but I can't help - I'm afraid
    thedeeno
    I'm using them putty and pageant properly.
    and it works just fine from the bash shell.
    tsal
    I assume, at least that when you're on the command line, doing a git-pull -- that pagent is used
    you have bash, installed on Windows
    thedeeno
    yeah, using cygwin
    to emulate the unix env
    tsal
    ^ sure…
    ok, then you should be clear whether the cygwin key agent is caching, or pagent is
    thedeeno
    I believe I am. The ssh stuff works fine _outside_ capistrano
    just a little more info. The following setting produced this http://pastie.org/875547
    I don't know why it keeps dropping my input line
    this is what I input: cap -v deploy:cold
    as far as ssh is concerned, doing: $ ssh myuser@myserver.com brings me right into the remote server.
    tsal
    ok, so this is interesting:
    Enter passphrase for c:/Users/Dane/.ssh/id_rsa:
    thedeeno
    right?
    that's what I was thinking
    tsal
    sure, but remember that net-ssh is a pure-ruby intrepreation of ssh
    Mar 18 09:32
    tsal
    so it's not deferring to the binary on your system
    you may need to use the :ssh_options hash, which you are already doing to tell it which keyfile to use; although that looks like the right place on Windows
    thedeeno
    OH, so cap is using net-ssh. Maybe I should try writing a small program to see if net-ssh is just bombing
    tsal
    u know you can make a 5-liner test script to test net-ssh here
    see the synopsys here:
    thedeeno
    Yeah i used it in one of my rake deployment scripts a few months back. Know off hand what the 'test' program might look like?
    I can look it up, it just sounds like you use it more and might know off hand
    thanks for the attention btw
    tsal
    no problem, this channel is usually dead - it's much, much better on the mailing list
    I can take better care there, and the information isn't lost!
    sure, thedeeno -- just look at the synopsys, and make a 3 liner (the code is there) to make a conneciton, and call a command
    thedeeno
    I can move this issue to the mailing list too. I'll make this program and report back later (have and apt to go to)
    tsal
    and, this error "c:/Platform/Ruby19/lib/ruby/gems/1.9.1/gems/capistrano-2.5.18/lib/capistrano/recipes/deploy/strategy/copy.rb:99:in `initialize': No such file or directory - C:/Users/Dane/AppData/Local/Temp/20100318152400/REVISION (Errno::ENOENT)" is because it can't extract the HEAD and put the sha1 in that file, so that you can deploy correctly, that's probably related to using :copy in this instance....
    but first things first :)
    thedeeno
    that error maybe the culprit you're saying?
    well looks odd anyways?
    tsal
    that error is a symptom, I think of not being able to make any connections to pull up data
    thedeeno
    yeah, looks like it. I'll check this out and hopefully have some more info when I report back
    thanks again
    Mar 18 09:38
    tsal
    sure thedeeno
    hobodave joined #capistrano
    Mar 18 10:21
    christophsturm joined #capistrano
    Mar 18 10:38
    justin-george joined #capistrano
    Mar 18 11:07
    towski joined #capistrano
    Mar 18 12:43
    justin-george joined #capistrano
    bitbckt joined #capistrano
    bitbckt
    Is there a way to specify a remote dependency for only a single or set of roles?
    Mar 18 13:21
    christophsturm joined #capistrano
    Mar 18 13:56
    aaronky joined #capistrano
    Mar 18 14:05
    tsal joined #capistrano
    Mar 18 14:15
    aaronky joined #capistrano
    Mar 18 14:20
    aaronky joined #capistrano
    Mar 18 14:31
    bitbckt left #capistrano
    robinbowes_ joined #capistrano