When I try to do a deployment with Capistrano I get the error "No such
file to load -- pathname" when Cap tries to execute reaper. Any ideas
what''s causing this or how I can troubleshoot it? (Output follows.)
Thanks.
Evan
-----BEGIN OUTPUT-----
[evans-powerbook:~/Desktop/asktheguys] evan% clear ; rake remote:deploy
(in /Users/evan/Desktop/asktheguys)
loading configuration
/usr/local/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/recipes/standard.rb
loading configuration ./config/deploy.rb
* executing task deploy
** transaction: start
* executing task update_code
* querying latest revision...
* executing "if [[ ! -d
/Library/Rails/asktheguys/releases/20060811025111 ]]; then\n
/usr/local/bin/svn co -q -r7
svn://server.server.com/asktheguys/asktheguys
/Library/Rails/asktheguys/releases/20060811025111 &&\n
(test -e /Library/Rails/asktheguys//revisions.log || touch
/Library/Rails/asktheguys//revisions.log && chmod 666
/Library/Rails/asktheguys//revisions.log) && echo `date +\"%Y-%m-%d
%H:%M:%S\"` $USER 7 20060811025111 >>
/Library/Rails/asktheguys//revisions.log;\n fi"
servers: ["localhost", "10.0.1.204"]
* establishing connection to gateway gateway.server.com
starting connection to gateway gateway.server.com
Password: ********
gateway connection established
establishing connection to localhost via gateway
connection to localhost via gateway established
establishing connection to 10.0.1.204 via gateway
connection to 10.0.1.204 via gateway established
[localhost] executing command
[10.0.1.204] executing command
command finished
* executing "rm -rf
/Library/Rails/asktheguys/releases/20060811025111/log
/Library/Rails/asktheguys/releases/20060811025111/public/system &&\n
ln -nfs /Library/Rails/asktheguys/shared/log
/Library/Rails/asktheguys/releases/20060811025111/log &&\n ln -nfs
/Library/Rails/asktheguys/shared/system
/Library/Rails/asktheguys/releases/20060811025111/public/system"
servers: ["localhost", "10.0.1.204"]
[localhost] executing command
[10.0.1.204] executing command
command finished
* executing task symlink
* executing "ls -x1 /Library/Rails/asktheguys/releases"
servers: ["localhost"]
[localhost] executing command
command finished
* executing "ln -nfs /Library/Rails/asktheguys/releases/20060811025111
/Library/Rails/asktheguys/current"
servers: ["localhost", "10.0.1.204"]
[localhost] executing command
[10.0.1.204] executing command
command finished
** transaction: commit
* executing task restart
* executing "sudo
/Library/Rails/asktheguys/current/script/process/reaper"
servers: ["localhost"]
[localhost] executing command
** [out :: localhost]
/Library/Rails/asktheguys/current/script/process/../../config/boot.rb:7:in
`require''
** [out :: localhost] :
** [out :: localhost] No such file to load -- pathname
** [out :: localhost] (
** [out :: localhost] LoadError
** [out :: localhost] )
** [out :: localhost] from
/Library/Rails/asktheguys/current/script/process/../../config/boot.rb:7
** [out :: localhost] from
/Library/Rails/asktheguys/current/script/process/reaper:2:in `require''
** [out :: localhost] from
/Library/Rails/asktheguys/current/script/process/reaper:2
command finished
rake aborted!
command "sudo /Library/Rails/asktheguys/current/script/process/reaper"
failed on localhost
(See full trace by running task with --trace)
-----END OUTPUT-----
--
Posted via http://www.ruby-forum.com/.
Evan Chaney <evanchaney@mac.com> writes:> When I try to do a deployment with Capistrano I get the error "No such > file to load -- pathname" when Cap tries to execute reaper. Any ideas > what''s causing this or how I can troubleshoot it? (Output follows.) >it seems the ''pathname'' file is missing. Do you have all the dependencies of Rails/Capistrano properly installed? I think your app is OK, its just the installation of core libraries which is missing something. -- Surendra Singhi http://ssinghi.kreeti.com, http://www.kreeti.com Read my blog at: http://cuttingtheredtape.blogspot.com/ ,---- | "All animals are equal, but some animals are more equal than others." | -- Orwell, Animal Farm, 1945 `----
Charles Brian Quinn
2006-Aug-12 15:03 UTC
[Rails] Re: Capistrano deployment pathname error
I concur -- have you ever run reaper locally? If you have ever "upgraded" rails (some of us have recently), you may need to run: rails . on the current dir to replace the older script/process/reaper tasks. I *think* they''ve been modified between versions. Also you could do: sudo gem install capistrano --include-dependencies or update instead of install. cheers. On 8/12/06, Surendra Singhi <efuzzyone@netscape.net> wrote:> Evan Chaney <evanchaney@mac.com> writes: > > > When I try to do a deployment with Capistrano I get the error "No such > > file to load -- pathname" when Cap tries to execute reaper. Any ideas > > what''s causing this or how I can troubleshoot it? (Output follows.) > > > > it seems the ''pathname'' file is missing. Do you have all the dependencies of > Rails/Capistrano properly installed? > I think your app is OK, its just the installation of core libraries which is > missing something. > > -- > Surendra Singhi > http://ssinghi.kreeti.com, http://www.kreeti.com > Read my blog at: http://cuttingtheredtape.blogspot.com/ > ,---- > | "All animals are equal, but some animals are more equal than others." > | -- Orwell, Animal Farm, 1945 > `---- > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Charles Brian Quinn self-promotion: www.seebq.com highgroove studios: www.highgroove.com slingshot hosting: www.slingshothosting.com
> it seems the ''pathname'' file is missing. Do you have all the > dependencies of > Rails/Capistrano properly installed? > I think your app is OK, its just the installation of core libraries > which is > missing something.I''ve double-checked the Rails/Capistrano installations on both my dev. machine and deployment machine. Each is installed with all dependencies. Also, when I invoke the reaper process manually it works fine. It''s only when it is invoked from Capistrano that it does not work.> If you have ever "upgraded" rails > (some of us have recently), you may need to run: > > rails . > > on the current dir to replace the older script/process/reaper tasks.I tried this as well. The reaper script was not replaced or updated by the "rails ." command. Neither was boot.rb. Perplexing. Any other thoughts? Evan