Judging by this message:

  *** [err :: herd.ida.liu.se] bash: line 1: sudo: command not found

I'd say that either sudo is not installed on the remote host, or is not in the path on the remote host. Your options are to either install it, or do without sudo:

  set :use_sudo, false

- Jamis

On May 14, 2008, at 7:18 AM, nico10gbb wrote:


When I run $cap deploy setup or $cap deploy:cold

I have this error :

* executing "mongrel_rails cluster::start -C /var/www/CoreSong/
current/config/mongrel_cluster.yml"
   servers: ["herd.ida.liu.se"]
D, [2008-05-14T15:10:31.007042 #9450] DEBUG -- tcpsocket[..fdbc2891c]:
queueing packet nr 27 type 90 len 44
D, [2008-05-14T15:10:31.008156 #9450] DEBUG -- tcpsocket[..fdbc2891c]:
sent 120 bytes
D, [2008-05-14T15:10:31.009165 #9450] DEBUG -- tcpsocket[..fdbc2891c]:
read 52 bytes
D, [2008-05-14T15:10:31.010453 #9450] DEBUG -- tcpsocket[..fdbc2891c]:
received packet nr 43 type 91 len 28
I, [2008-05-14T15:10:31.011242 #9450]  INFO --
net.ssh.connection.session[..fdbc1fb6e]: channel_open_confirmation: 7
1 0 32768
   [herd.ida.liu.se] executing command
I, [2008-05-14T15:10:31.011636 #9450]  INFO --
net.ssh.connection.channel[..fdbc0544e]: sending channel request
"exec"
D, [2008-05-14T15:10:31.012158 #9450] DEBUG -- tcpsocket[..fdbc2891c]:
queueing packet nr 28 type 98 len 156
D, [2008-05-14T15:10:31.012631 #9450] DEBUG -- tcpsocket[..fdbc2891c]:
sent 180 bytes
D, [2008-05-14T15:10:31.028949 #9450] DEBUG -- tcpsocket[..fdbc2891c]:
read 52 bytes
D, [2008-05-14T15:10:31.029679 #9450] DEBUG -- tcpsocket[..fdbc2891c]:
received packet nr 44 type 93 len 28
I, [2008-05-14T15:10:31.030000 #9450]  INFO --
net.ssh.connection.session[..fdbc1fb6e]: channel_window_adjust: 7
+131072
D, [2008-05-14T15:10:31.068473 #9450] DEBUG -- tcpsocket[..fdbc2891c]:
read 224 bytes
D, [2008-05-14T15:10:31.069527 #9450] DEBUG -- tcpsocket[..fdbc2891c]:
received packet nr 45 type 95 len 60
I, [2008-05-14T15:10:31.070095 #9450]  INFO --
net.ssh.connection.session[..fdbc1fb6e]: channel_extended_data: 7 1
38b
*** [err :: herd.ida.liu.se] bash: line 1: sudo: command not found
D, [2008-05-14T15:10:31.070832 #9450] DEBUG -- tcpsocket[..fdbc2891c]:
received packet nr 46 type 98 len 44
I, [2008-05-14T15:10:31.071229 #9450]  INFO --
net.ssh.connection.session[..fdbc1fb6e]: channel_request: 7 exit-
status false
D, [2008-05-14T15:10:31.072039 #9450] DEBUG -- tcpsocket[..fdbc2891c]:
received packet nr 47 type 96 len 12
I, [2008-05-14T15:10:31.072531 #9450]  INFO --
net.ssh.connection.session[..fdbc1fb6e]: channel_eof: 7
D, [2008-05-14T15:10:31.073303 #9450] DEBUG -- tcpsocket[..fdbc2891c]:
received packet nr 48 type 97 len 12
I, [2008-05-14T15:10:31.073787 #9450]  INFO --
net.ssh.connection.session[..fdbc1fb6e]: channel_close: 7
D, [2008-05-14T15:10:31.074546 #9450] DEBUG -- tcpsocket[..fdbc2891c]:
queueing packet nr 29 type 97 len 28
   command finished
command "mongrel_rails cluster::start -C /var/www/CoreSong/current/
config/mongrel_cluster.yml" failed on herd.ida.liu.se



When I run the command on the herd server :

root@/var/www/CoreSong:mongrel_rails cluster::restart -C /var/www/
CoreSong/current/config/mongrel_cluster.yml
** Ruby version is not up-to-date; loading cgi_multipart_eof_fix
stopping port 8000
** Ruby version is not up-to-date; loading cgi_multipart_eof_fix
stopping port 8001
** Ruby version is not up-to-date; loading cgi_multipart_eof_fix
starting port 8000
** Ruby version is not up-to-date; loading cgi_multipart_eof_fix
starting port 8001
** Ruby version is not up-to-date; loading cgi_multipart_eof_fix

Here my file deploy.rb :

require 'mongrel_cluster/recipes'

set :user, "root"
set :application, "CoreSong"
set :repository,  "https://herd.ida.liu.se/svn/hcs/CoreSong";

# 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, "/var/www/#{application}"

# If you aren't using Subversion to manage your source code, specify
# your SCM below:
set :scm, :subversion
set :deploy_via, :export

ssh_options[:port] = 22
ssh_options[:verbose] = :debug

role :app, "herd.ida.liu.se"
role :web, "herd.ida.liu.se"
role :db,  "herd.ida.liu.se", :primary => true

set :svn_username, "s08nicma"
set :svn_password, "xxxxxx"

set :mongrel_conf, "#{deploy_to}/current/config/mongrel_cluster.yml"
set :runner, nil

Please help me to find where is the problem :-)

Thanks.

Nicolas
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to