# Drb start configuration error

**URL:** <https://www.ruby-forum.com/t/drb-start-configuration-error/178667>\
**Category:** Ferret\
**Created:** [November 9, 2009, 8:23am UTC](https://www.ruby-forum.com/t/drb-start-configuration-error/178667 "2009-11-09T08:23:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vanderkerkoff](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/7feea3/32.png) [@vanderkerkoff](https://www.ruby-forum.com/u/vanderkerkoff)\
**Post date:** [November 9, 2009, 8:23am UTC](https://www.ruby-forum.com/t/drb-start-configuration-error/178667/1 "2009-11-09T08:23:54Z")

</div>

Hi there,

I am using the acts\_as\_ferret plugin version 0.4.4 with rails 2.3.4 and  
am getting an error when try to start the Drb server.

The error appears to be that the unix\_daemon cannot open the pid file.  
However this only happens if I specify a config value:

pid\_file: log/ferret\_server.pid

in the ferret\_server.yml. If I do not then the default values from the  
ferret\_server.rb file are used and the Drb server starts.

The error output is a follows:

/home/yellowpinky/my\_project/vendor/plugins/acts\_as\_ferret/lib/unix\_daemon.rb:53:in  
`initialize': No such file or directory - log/ferret_server.pi (Errno::ENOENT) from /home/matt/IdeaProjects/autoissimo/vendor/plugins/acts_as_ferret/lib/unix_daemon.rb:53:in`open’  
from  
/home/matt/IdeaProjects/autoissimo/vendor/plugins/acts\_as\_ferret/lib/unix\_daemon.rb:53:in  
`write_pid_file' from /home/matt/IdeaProjects/autoissimo/vendor/plugins/acts_as_ferret/lib/unix_daemon.rb:12:in`platform\_daemon’  
from  
/home/matt/IdeaProjects/autoissimo/vendor/plugins/acts\_as\_ferret/lib/unix\_daemon.rb:41:in  
`fork' from /home/matt/IdeaProjects/autoissimo/vendor/plugins/acts_as_ferret/lib/unix_daemon.rb:41:in`safefork’  
from  
/home/matt/IdeaProjects/autoissimo/vendor/plugins/acts\_as\_ferret/lib/unix\_daemon.rb:11:in  
`platform_daemon' from /home/matt/IdeaProjects/autoissimo/vendor/plugins/acts_as_ferret/lib/ferret_server.rb:86:in`start’  
from ./…/vendor/plugins/acts\_as\_ferret/lib/server\_manager.rb:53:in  
`send' from ./../vendor/plugins/acts_as_ferret/lib/server_manager.rb:53 from ./ferret_server:4:in`require’  
from ./ferret\_server:4

Having looked into this a little I can see that when a config value for  
the pid file is defined in the ferret\_server.yml file the unix\_daemon.rb  
gets passed the file path without the rails root appended. When no  
value is specified within the ferret\_server.yml file the default values  
defined in ferret\_server.rb are used and the unix\_daemon.rb file gets  
passed the full path and the server starts.

Any help greatly appreciated 🙂

---

<div class="post-metadata">

**Author:** ![vanderkerkoff](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/7feea3/32.png) [@vanderkerkoff](https://www.ruby-forum.com/u/vanderkerkoff)\
**Post date:** [November 9, 2009, 10:59am UTC](https://www.ruby-forum.com/t/drb-start-configuration-error/178667/2 "2009-11-09T10:59:39Z")

</div>

Apologies but there was a copy/paste error in the below stack trace:

No such file or directory - log/ferret\_server.pi

should be:

No such file or directory - log/ferret\_server.pid

I still have the error 🙂

Matt Davis wrote:

> Hi there,
> 
> I am using the acts\_as\_ferret plugin version 0.4.4 with rails 2.3.4 and  
> am getting an error when try to start the Drb server.
> 
> The error appears to be that the unix\_daemon cannot open the pid file.  
> However this only happens if I specify a config value:
> 
> pid\_file: log/ferret\_server.pid
> 
> in the ferret\_server.yml. If I do not then the default values from the  
> ferret\_server.rb file are used and the Drb server starts.
> 
> The error output is a follows:
> 
> /home/yellowpinky/my\_project/vendor/plugins/acts\_as\_ferret/lib/unix\_daemon.rb:53:in  
> `initialize': No such file or directory - log/ferret_server.pi (Errno::ENOENT) from /home/matt/IdeaProjects/autoissimo/vendor/plugins/acts_as_ferret/lib/unix_daemon.rb:53:in `open’  
> from  
> /home/matt/IdeaProjects/autoissimo/vendor/plugins/acts\_as\_ferret/lib/unix\_daemon.rb:53:in  
> `write_pid_file' from /home/matt/IdeaProjects/autoissimo/vendor/plugins/acts_as_ferret/lib/unix_daemon.rb:12:in `platform\_daemon’  
> from  
> /home/matt/IdeaProjects/autoissimo/vendor/plugins/acts\_as\_ferret/lib/unix\_daemon.rb:41:in  
> `fork' from /home/matt/IdeaProjects/autoissimo/vendor/plugins/acts_as_ferret/lib/unix_daemon.rb:41:in `safefork’  
> from  
> /home/matt/IdeaProjects/autoissimo/vendor/plugins/acts\_as\_ferret/lib/unix\_daemon.rb:11:in  
> `platform_daemon' from /home/matt/IdeaProjects/autoissimo/vendor/plugins/acts_as_ferret/lib/ferret_server.rb:86:in `start’  
> from ./../vendor/plugins/acts\_as\_ferret/lib/server\_manager.rb:53:in  
> `send' from ./../vendor/plugins/acts_as_ferret/lib/server_manager.rb:53 from ./ferret_server:4:in `require’  
> from ./ferret\_server:4
> 
> Having looked into this a little I can see that when a config value for  
> the pid file is defined in the ferret\_server.yml file the unix\_daemon.rb  
> gets passed the file path without the rails root appended. When no  
> value is specified within the ferret\_server.yml file the default values  
> defined in ferret\_server.rb are used and the unix\_daemon.rb file gets  
> passed the full path and the server starts.
> 
> Any help greatly appreciated 🙂
