- Jamis
On Feb 5, 2008, at 12:47 AM, Chris Shen wrote:
John, Thanks for the reply. "set :scm_user" doesnt work for me... My svn user is the same as my ssh user, but my local user is different from both. On Feb 4, 1:10 am, "John Ward" <[EMAIL PROTECTED]> wrote:If the svn user is different than the ssh user then set the following variable appropriately set :scm_user, "y" Regards, John* * On 2/4/08, Chris Shen <[EMAIL PROTECTED]> wrote:Still stuck on this problem. After reading some howto blogs, it seemslike the problem might be that my local username is different from the username im using to export/checkout from svn.A couple of settings I added to deploy.rb: ssh_options[:username] = 'x' set :user, "x"x is username on the remote host. I've also tried:set :use_sudo, true ssh_options[:paranoid] = false # relaxes ssh security checks? ssh_options[:keys] = %w(/path/to/my/id_rsa) # path to my public key ssh_options[:port] = xxx # using a non-default port for ssh, not 22 ssh_options[:forward_agent] = true ssh_options[:host_key] = 'ssh-dss' # suppousdly forces /ssh/ known_hosts to check for rsa keys or somethingI've also made sure file permissions were set properly (too loose,maybe ~644 and public keys stop working!). None of this tinkering hassolved my problem, but hopefully a line or two will be useful to someone out there. All these deploy settings are scattered throughout blogs and wikis, too bad there's no central place for it. I can'twait for the cap2+ doc.On Jan 31, 11:20 pm, Chris Shen <[EMAIL PROTECTED]> wrote:I'm getting stuck at deploy cold. I've done a local checkout via ssh,capified, and committed changes. I've also done a checkout on theremote and edited permissions just in case, sudo from remote was theissue. It's rolling back around /app/releases/Both machines on ubuntu.Here's my deploy.rb:require 'mongrel_cluster/recipes'set :application, "x" set :user, "y" # user belongs to group with rws permissions set :domain, "ip" set :repository, "svn+ssh://svn1/home/svn/#{application}/trunk" set :use_sudo, true# 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/apps/#{application}" set :deploy_via, :export # tried checkout as well set :runner, nilset :mongrel_conf, "#{deploy_to}/current/config/ mongrel_cluster.yml"# set :chmod755, "app config db lib public vendor script script/* public/disp*"ssh_options[:keys] = %w(/absolute/path) # If you are usingssh_keys # default_run_options[:pty] = true# If you aren't using Subversion to manage your source code, specify# your SCM below: # set :scm, :subversionrole :app, domain role :web, domain role :db, domain, :primary => trueHere's the log:* executing `deploy:cold' * executing `deploy:update' ** transaction: start * executing `deploy:update_code' * executing "svn export -q -r3 svn+ssh://svn1/home/svn/x/trunk /home/generic/apps/x/releases/20080201070337 && (echo 3 > /home/ generic/apps/x/releases/20080201070337/REVISION)" servers: ["ip"] [ip] executing command ** [err] svn: Error in child process: exec of '/etc/ssh' failed: Permission denied command finished *** [deploy:update_code] rolling back * executing "rm -rf /home/generic/apps/x/releases/20080201070337; true" servers: ["ip"] [ip] executing command command finished command "svn export -q -r3 svn+ssh://svn1/home/svn/x/trunk /home/generic/apps/x/releases/20080201070337 && (echo 3 > /home/generic/ apps/x/releases/20080201070337/REVISION)" failed on ipThanks for your help.--~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
smime.p7s
Description: S/MIME cryptographic signature
