# Capistrano deployment pathname error

**URL:** <https://www.ruby-forum.com/t/capistrano-deployment-pathname-error/102184>\
**Category:** Rails\
**Created:** [August 12, 2006, 7:11am UTC](https://www.ruby-forum.com/t/capistrano-deployment-pathname-error/102184 "2006-08-12T07:11:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![evanchaney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/58f4c7/32.png) [@evanchaney](https://www.ruby-forum.com/u/evanchaney)\
**Post date:** [August 12, 2006, 7:11am UTC](https://www.ruby-forum.com/t/capistrano-deployment-pathname-error/102184/1 "2006-08-12T07:11:43Z")

</div>

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](http://gateway.server.com)  
starting connection to gateway [gateway.server.com](http://gateway.server.com)  
Password: \*\*\*\*\*\*\*\*

- 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-----

---

<div class="post-metadata">

**Author:** ![evanchaney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/58f4c7/32.png) [@evanchaney](https://www.ruby-forum.com/u/evanchaney)\
**Post date:** [August 15, 2006, 2:17pm UTC](https://www.ruby-forum.com/t/capistrano-deployment-pathname-error/102184/2 "2006-08-15T14:17:49Z")

</div>

Evan C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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 S.  
[http://ssinghi.kreeti.com](http://ssinghi.kreeti.com), [http://www.kreeti.com](http://www.kreeti.com)  
Read my blog at: [http://cuttingtheredtape.blogspot.com/](http://cuttingtheredtape.blogspot.com/)  
,----  
| “All animals are equal, but some animals are more equal than others.”  
| – Orwell, Animal Farm, 1945  
`----

---

<div class="post-metadata">

**Author:** ![evanchaney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/58f4c7/32.png) [@evanchaney](https://www.ruby-forum.com/u/evanchaney)\
**Post date:** [August 15, 2006, 2:18pm UTC](https://www.ruby-forum.com/t/capistrano-deployment-pathname-error/102184/3 "2006-08-15T14:18:04Z")

</div>

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 S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> missing something.
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

–  
Charles Brian Q.  
self-promotion: [www.seebq.com](http://www.seebq.com)  
highgroove studios: [www.highgroove.com](http://www.highgroove.com)  
slingshot hosting: [www.slingshothosting.com](http://www.slingshothosting.com)
