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
\etc\bin joined #capistrano
Mar 18 04:34
christophsturm joined #capistrano
Mar 18 05:09
davidc`` joined #capistrano
Mar 18 05:46
Mar 18 06:06
BeatsOnToast joined #capistrano
Mar 18 07:00
Mar 18 07:47
Mar 18 08:15
\etc\bin joined #capistrano
RORgasm joined #capistrano
Mar 18 08:32
sharat87 joined #capistrano
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
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?
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
tsal: yes, i found that, and added the bin to the path
and now i have a new problem..
i wrote the sample capfile on the getting started page on the homepage
tsal, what code would you like to see?
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?
yes, sharat87 gist.github.com or pastie.org or something
thedeeno: outpout from running it, and your repository values
k, cleaning and posting to pastie. Just a moment. Thanks for taking a look.
Mar 18 09:05
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
but gem did install net-ssh
(that's unusual, but it happens on Ubuntu?)
yeah, right - but net-ssh needs openssl
i believe i have openssl..
which it can only build if your system has (I think) libssl-dev headers installed
sure, you can have openssl installed,.... but not the development headers
try `gem install openssl`
so, i do an apt-get libssl-dev or something, and then "gem install capistrano" again?
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
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
yeah, sure - the ssl problem is specific to ubuntu
the ssh/ssl stuff is a bit broken on their defaults
i get a > ERROR: could not find gem openssl locally or in a repository
(works perfectly on a mac)
ahh, then net-ssh again :)
pheezy joined #capistrano
ok thanks thedeeno you're using a bare repository on the remote ?
i heard capistrano is already present on leopard..
tsal, hmm, I believe so. I can push/pull using gitosis just fine. The repo looks bare.
tsal: I did a apt-get install libssh-dev, but still i get the same stack trace
thedeeno: small thing... but on a bare, you should name it <something>.git
... so that it's clear it's not a working copy
so, thedeeno that's a naming problem
but it's not causing this... so not to worry :)
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.
hey, sharat87 -- lemme help thedeeno that's a little easier right now
if I dont add the .git that is
I'll get back in a while.. have to go get some bread :)
yeah, the .git tells (some tools) ... not cap that it's a bare, and they behave differently..
set :repository, "git@mydomain.com:myapp"
Mar 18 09:16
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 ?
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?
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
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
sure, you need at least 1.6 on both sides
for the initial pull down to my workstation
you need Capistrano and the server??
Git > 1.6.x on both workstation and server
then passwordless git access (or you can set :scm_password)
\etc\bin joined #capistrano
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
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
I'm using them putty and pageant properly.
and it works just fine from the bash shell.
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
ok, then you should be clear whether the cygwin key agent is caching, or pagent is
I believe I am. The ssh stuff works fine _outside_ capistrano
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.
ok, so this is interesting:
Enter passphrase for c:/Users/Dane/.ssh/id_rsa:
that's what I was thinking
sure, but remember that net-ssh is a pure-ruby intrepreation of ssh
Mar 18 09:32
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
OH, so cap is using net-ssh. Maybe I should try writing a small program to see if net-ssh is just bombing
u know you can make a 5-liner test script to test net-ssh here
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
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
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)
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 :)
that error maybe the culprit you're saying?
that error is a symptom, I think of not being able to make any connections to pull up data
yeah, looks like it. I'll check this out and hopefully have some more info when I report back
Mar 18 09:38
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
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
Mar 18 14:15
aaronky joined #capistrano
Mar 18 14:20
aaronky joined #capistrano
Mar 18 14:31
robinbowes_ joined #capistrano