Hi,

I am going to put my solution here just in case someone else has the
same problem.  My error worked itself out by using Pageant.  Not sure
if it is because I created a passphrase when creating the keys in
putty, but after setting up Pageant, authentication was no longer a
problem.

CathyM

On Jun 1, 10:20 am, CathyM <[EMAIL PROTECTED]> wrote:
> Thanks,
>
> You were correct, not sure how the y got there, but it was the first
> letter in the file, removed it and it worked like a charm (i.e could
> go forward a few more paces).  I  now have another problem, could be
> very minor as well, but been checking the internet for a couple of
> hours and cannot get a solution.
>
> I type in cap deploy:setup and get the following message:
>
> C:\Program Files\Subversion\tourism\youtourism>cap deploy:setup
>   * executing `deploy:setup'
>   * executing "umask 02 && mkdir -p /home/melvin/public_html/
> youtourism.org /hom
> e/melvin/public_html/youtourism.org/releases /home/melvin/public_html/
> youtourism
> .org/shared /home/melvin/public_html/youtourism.org/shared/system /
> home/melvin/p
> ublic_html/youtourism.org/shared/log /home/melvin/public_html/
> youtourism.org/sha
> red/pids"
>     servers: ["youtourism.org"]
> Password:
> connection failed for: youtourism.org (Net::SSH::AuthenticationFailed:
> melvin)
>
> I normally log on to the site using putty, so I created public and
> private keys and use a passphrase to log in.  Typing the passphrase or
> the initial password on the Linux machine still gives me the error.
>
> The problem I guess is in my deploy.rb file which I have listed below.
>
> set :application, "youtourism.org"
> set :user, "melvin"
> set :repository,  "svn+ssh://[EMAIL PROTECTED]/home/melvin/repository/
> tourism"
>
> set :port, 30000
> set :deploy_to, "/home/melvin/public_html/#{application}"
>
> set :scm, :subversion
>
> set :location, "youtourism.org"
> role :app, application
> role :web, application
> role :db,  application, :primary => true
>
> ssh_options[:username] = "melvin"
> ssh_options[:host_key] = 'ssh-dss'
>
> set :deploy_via, :copy
>
> set :runner, user
>
> any configurations I should add or change? the key on my localhost is
> not located in a /.ssh/known_host directory on my hard drive but in
> another directory under 'c:/my documents'.
>
> CathyM
>
> On May 30, 2:16 am, "Rafael G." <[EMAIL PROTECTED]> wrote:
>
> > What do you have in your deploy.rb?
> > It likes that you write "yset" instead of "set" (line 1)
>
> > C:/InstantRails/InstantRails/ruby/lib/ruby/gems/1.8/gems/
> > capistrano-2.3.0/lib/ca
> > pistrano/configuration/variables.rb:122:in `method_missing': undefined
> > method `y
> > set'
>
> > CathyM escribió:
>
> > > Hi Jamis,
>
> > > Thanks, I tried what you suggested, and it seems that was part of
> > > problem, I had two versions of Capistrano 2.2.0, and 2.3.0 on my
> > > system.  I uninstall and then reinstall and some parts of capistrano
> > > worked.
>
> > > However, I tried
>
> > > C:\Program Files\Subversion\tours>cap deploy:setup
>
> > > and the following is the error message.
>
> > > C:/InstantRails/InstantRails/ruby/lib/ruby/gems/1.8/gems/
> > > capistrano-2.3.0/lib/ca
> > > pistrano/configuration/variables.rb:122:in `method_missing': undefined
> > > method `y
> > > set' for #<Capistrano::Configuration:0x346fe08> (NoMethodError)
> > >         from ./config/deploy.rb:1:in `load'
> > >         from C:/InstantRails/InstantRails/ruby/lib/ruby/gems/1.8/gems/
> > > capistrano
> > > -2.3.0/lib/capistrano/configuration/loading.rb:173:in `load_from_file'
> > >         from C:/InstantRails/InstantRails/ruby/lib/ruby/gems/1.8/gems/
> > > capistrano
> > > -2.3.0/lib/capistrano/configuration/loading.rb:89:in `load'
> > >         from C:/InstantRails/InstantRails/ruby/lib/ruby/gems/1.8/gems/
> > > capistrano
> > > -2.3.0/lib/capistrano/configuration/loading.rb:86:in `load'
> > >         from C:/InstantRails/InstantRails/ruby/lib/ruby/gems/1.8/gems/
> > > capistrano
> > > -2.3.0/lib/capistrano/configuration/loading.rb:86:in `each'
> > >         from C:/InstantRails/InstantRails/ruby/lib/ruby/gems/1.8/gems/
> > > capistrano
> > > -2.3.0/lib/capistrano/configuration/loading.rb:86:in `load'
> > >         from ./Capfile:3:in `load'
> > >         from C:/InstantRails/InstantRails/ruby/lib/ruby/gems/1.8/gems/
> > > capistrano
> > > -2.3.0/lib/capistrano/configuration/loading.rb:173:in `load_from_file'
> > >          ... 8 levels...
> > >         from C:/InstantRails/InstantRails/ruby/lib/ruby/gems/1.8/gems/
> > > capistrano
> > > -2.3.0/lib/capistrano/cli/execute.rb:14:in `execute'
> > >         from C:/InstantRails/InstantRails/ruby/lib/ruby/gems/1.8/gems/
> > > capistrano
> > > -2.3.0/bin/cap:4
> > >         from C:/InstantRails/InstantRails/ruby/bin/cap:19:in `load'
> > >         from C:/InstantRails/InstantRails/ruby/bin/cap:19
>
> > > Any ideas?
>
> > > On May 29, 3:44 pm, Jamis Buck <[EMAIL PROTECTED]> wrote:
>
> > >> It looks like you installed capistrano originally with an older
> > >> version of rubygems. What happens if you delete that file (the "cap"
> > >> script) and then reinstall capistrano? Or you could probably just do
> > >> "gem uninstall capistrano" to remove all installed versions, and then
> > >> reinstall capistrano.
>
> > >> - Jamis
>
> > >> On May 29, 2008, at 3:39 PM, CathyM wrote:
>
> > >>> Hello,
>
> > >>> I am having problems setting up Capistrano on my windowsXP machine. I
> > >>> install it, updated the gems, but when I type any cap command,
> > >> either -
> > >>> V, setup, deploy, etc, I get the following message:
>
> > >>> /ruby/bin/cap:17: undefined method `require_gem' for main:Object
> > >>> (NoMethodError)
>
> > >>> I've check the cap file and found this:
>
> > >>> # The application 'capistrano' is installed as part of a gem, and
> > >>> # this file is here to facilitate running it.
> > >>> #
>
> > >>> require 'rubygems'
> > >>> version = "> 0"
> > >>> if ARGV.size > 0 && ARGV[0][0]==95 && ARGV[0][-1]==95
> > >>> if Gem::Version.correct?(ARGV[0][1..-2])
> > >>> version = ARGV[0][1..-2]
> > >>> ARGV.shift
> > >>> end
> > >>> end
> > >>> require_gem 'capistrano', version
> > >>> load 'cap'
>
> > >>> Any ideas on what to change to make it work?
>
> > >>  smime.p7s
> > >> 3KDownload
>
> > --
> > Rafael Garcia Ortega
>
> >  rgo.vcf
> > 1KDownload
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to