..../script/process/reaper: not found

107 views
Skip to first unread message

Chris

unread,
Dec 20, 2009, 11:40:51 PM12/20/09
to Capistrano
Hello,

I'm trying to deploy via capistrano by using "cap production deploy",
but am running into an error concerning a file ,,,,/script/process/
reaper which it claims is supposed to be on the server. I know that
this has worked on another PC, but am not sure what I did
differently.

I'm running Ruby v1.8.7 and Capistrano v2.5.10

Any thoughts?

thanks in advance,

-Chris

Output:
$ cap production deploy
[Deprecation Warning] Naming tasks with before_ and after_ is
deprecated, please see the new before() and after() methods.
(Offending task name was after_update_code)
[Deprecation Warning] Naming tasks with before_ and after_ is
deprecated, please see the new before() and after() methods.
(Offending task name was after_default)
* executing `production'
* executing `deploy'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
updating the cached checkout on all servers
executing locally: "svn info myrepository -rHEAD"
checking for svn... yes
* executing "if [ -d /var/www/apps/aerosoft/shared/cached-copy ];
then svn update -q -r8 /var/www/apps/aerosoft/shared/cached-copy;
else svn checkout -q -r8 myrepository /var/www/apps/aerosoft/shared/
cached-copy; fi"
servers: ["myip"]
Password:
[myip] executing command
command finished
copying the cached version to /var/www/apps/aerosoft/releases/
20091221041806
* executing "cp -RPp /var/www/apps/aerosoft/shared/cached-copy /var/
www/apps/aerosoft/releases/20091221041806 && (echo 8 > /var/www/apps/
aerosoft/releases/20091221041806/REVISION)"
servers: ["myip"]
[myip] executing command
command finished
* executing `deploy:finalize_update'
* executing "chmod -R g+w /var/www/apps/aerosoft/releases/
20091221041806"
servers: ["myip"]
[myip] executing command
command finished
* executing "rm -rf /var/www/apps/aerosoft/releases/20091221041806/
log /var/www/apps/aerosoft/releases/20091221041806/public/system /var/
www/apps/aerosoft/releases/20091221041806/tmp/pids &&\\\n mkdir -
p /var/www/apps/aerosoft/releases/20091221041806/public &&\\\n
mkdir -p /var/www/apps/aerosoft/releases/20091221041806/tmp &&\\
\n ln -s /var/www/apps/aerosoft/shared/log /var/www/apps/aerosoft/
releases/20091221041806/log &&\\\n ln -s /var/www/apps/aerosoft/
shared/system /var/www/apps/aerosoft/releases/20091221041806/public/
system &&\\\n ln -s /var/www/apps/aerosoft/shared/pids /var/www/
apps/aerosoft/releases/20091221041806/tmp/pids"
servers: ["myip"]
[myip] executing command
command finished
* executing "find /var/www/apps/aerosoft/releases/20091221041806/
public/images /var/www/apps/aerosoft/releases/20091221041806/public/
stylesheets /var/www/apps/aerosoft/releases/20091221041806/public/
javascripts -exec touch -t 200912210418.07 {} ';'; true"
servers: ["myip"]
[myip] executing command
command finished
* executing `after_update_code'
* executing "ln -nfs /var/www/apps/aerosoft/shared/database.yml /var/
www/apps/aerosoft/releases/20091221041806/config/database.yml"
servers: ["myip"]
[myip] executing command
command finished
* executing "ln -nfs /var/www/apps/aerosoft/shared/uploads /var/www/
apps/aerosoft/releases/20091221041806/public/uploads"
servers: ["myip"]
[myip] executing command
command finished
* executing "chmod a+x /var/www/apps/aerosoft/releases/
20091221041806/script/runner"
servers: ["myip"]
[myip] executing command
command finished
* executing `deploy:symlink'
* executing "rm -f /var/www/apps/aerosoft/current && ln -s /var/www/
apps/aerosoft/releases/20091221041806 /var/www/apps/aerosoft/current"
servers: ["myip"]
[myip] executing command
command finished
** transaction: commit
* executing `deploy:restart'
[DEPRECATED] `deploy:restart` is going to be changed to Passenger
mod_rails' method after 2.5.9 - see http://is.gd/2BPeA
* executing "/var/www/apps/aerosoft/current/script/process/reaper"
servers: ["myip"]
[myip] executing command
** [out :: myip] sh: /var/www/apps/aerosoft/current/script/process/
reaper: not found
command finished
failed: "sh -c '/var/www/apps/aerosoft/current/script/process/reaper'"
on myip

My Capfile:
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
load 'config/deploy'

my deploy.rb:
<script src='http://pastie.org/751424.js'></script>

Lee Hambley

unread,
Dec 21, 2009, 4:32:55 AM12/21/09
to capis...@googlegroups.com
Did you install the IRS scripts? See our wiki under Rails 2.3 documentation.

-- Lee Hambley

Twitter: @leehambley | @capistranorb

Chris

unread,
Dec 21, 2009, 3:21:18 PM12/21/09
to Capistrano
I ran the command given here: http://www.capify.org/index.php/How_to_use_Capistrano_with_Rails_2.3
, yet I'm still getting the same error message...
Is there supposed to be some console output during the installation?

thanks,

-Chris

Lee Hambley

unread,
Dec 21, 2009, 3:55:00 PM12/21/09
to capis...@googlegroups.com
I don't know Chris, I don't use the reaper scripts, as deploying on mongrel is so outdated it never comes up (and my understanding is that this will be unsupported in Rails 3.0 anyway)

As the command is installing a plugin, I would imagine that your source control would show some evidence that you had a new plugin (files) installed; this is all I can suggest.

Rafael G.

unread,
Dec 22, 2009, 6:03:12 AM12/22/09
to capis...@googlegroups.com
If have some applications that works with mongrel already. I use these
tasks:

namespace :deploy do
desc "Modified restart task to work with mongrel cluster"
task :restart, :roles => :app do
run "cd #{deploy_to}/current && mongrel_rails cluster::restart -C
#{deploy_to}/current/config/mongrel_cluster.yml"
end
desc "Modified start task to work with mongrel cluster"
task :start, :roles => :app do
run "cd #{deploy_to}/current && mongrel_rails cluster::start -C
#{deploy_to}/current/config/mongrel_cluster.yml"
end
desc "Modified stop task to work with mongrel cluster"
task :stop, :roles => :app do
run "cd #{deploy_to}/current && mongrel_rails cluster::stop -C
#{deploy_to}/current/config/mongrel_cluster.yml"
end
end

You can pass the parameter "--clean" to be sure that pid files are
fine. Check if the parameter is "--clean" or another, I don't remember.

Regards


--
Rafa

Reply all
Reply to author
Forward
0 new messages