# Ferret DRb on windows?

**URL:** <https://www.ruby-forum.com/t/ferret-drb-on-windows/113093>\
**Category:** Ferret\
**Created:** [August 27, 2007, 3:59pm UTC](https://www.ruby-forum.com/t/ferret-drb-on-windows/113093 "2007-08-27T15:59:47Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![neongrau](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/34f0e0/32.png) [@neongrau](https://www.ruby-forum.com/u/neongrau)\
**Post date:** [August 27, 2007, 3:59pm UTC](https://www.ruby-forum.com/t/ferret-drb-on-windows/113093/1 "2007-08-27T15:59:47Z")

</div>

i’m running a bunch of proxybalanced mongrels on a windows server.  
and since the memory consumption of all those mongrels is getting too  
high i wanted to set up the DRb’ed ferret server.

but script/ferret\_start doesn’t work and seems to be written for linux  
(unix) only.

is there a way to run it on windows?

---

<div class="post-metadata">

**Author:** ![neongrau](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/34f0e0/32.png) [@neongrau](https://www.ruby-forum.com/u/neongrau)\
**Post date:** [August 27, 2007, 4:23pm UTC](https://www.ruby-forum.com/t/ferret-drb-on-windows/113093/2 "2007-08-27T16:23:41Z")

</div>

On Mon, Aug 27, 2007 at 03:59:47PM +0200, neongrau \_\_ wrote:

> i’m running a bunch of proxybalanced mongrels on a windows server.  
> and since the memory consumption of all those mongrels is getting too  
> high i wanted to set up the DRb’ed ferret server.
> 
> but script/ferret\_start doesn’t work and seems to be written for linux  
> (unix) only.
> 
> is there a way to run it on windows?

yes, see there:

[http://www.pluitsolutions.com/2007/07/30/acts-as-ferret-drbserver-win32-service/](http://www.pluitsolutions.com/2007/07/30/acts-as-ferret-drbserver-win32-service/)

cheers,  
Jens

–  
Jens Krämer  
[http://www.jkraemer.net/](http://www.jkraemer.net/) - Blog  
[http://www.omdb.org/](http://www.omdb.org/) - The new free film database

---

<div class="post-metadata">

**Author:** ![neongrau](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/34f0e0/32.png) [@neongrau](https://www.ruby-forum.com/u/neongrau)\
**Post date:** [August 27, 2007, 4:29pm UTC](https://www.ruby-forum.com/t/ferret-drb-on-windows/113093/3 "2007-08-27T16:29:33Z")

</div>

awesome!

thanks alot!

i was searching google like crazy and couldn’t find anything myself.

---

<div class="post-metadata">

**Author:** ![neongrau](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/34f0e0/32.png) [@neongrau](https://www.ruby-forum.com/u/neongrau)\
**Post date:** [November 15, 2007, 5:36pm UTC](https://www.ruby-forum.com/t/ferret-drb-on-windows/113093/4 "2007-11-15T17:36:27Z")

</div>

today i’ve upgraded to the latest trunk to use the new :page / :per\_page  
options.  
but since then i can’t start the service anymore ☹

Initializing FerretDaemon…  
Starting Ferret DRb server…  
c:/test\_app/script/ferret\_daemon:69:in `service_init' : undefined method`start’ for ActsAsFerret::Remote::Server:Class  
(  
NoMethodError  
)

from c:/test\_app/script/ferret\_daemon:88:in `mainloop’

from c:/test\_app/script/ferret\_daemon:88

was there a change in the DRb part that breaks s.th. on windows?

---

<div class="post-metadata">

**Author:** ![neongrau](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/34f0e0/32.png) [@neongrau](https://www.ruby-forum.com/u/neongrau)\
**Post date:** [November 15, 2007, 6:00pm UTC](https://www.ruby-forum.com/t/ferret-drb-on-windows/113093/5 "2007-11-15T18:00:27Z")

</div>

ok, just tested svn rev. 257 (the one before the “unified drb server  
start/stop script by Peter J.” and that one works.

---

<div class="post-metadata">

**Author:** ![neongrau](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/34f0e0/32.png) [@neongrau](https://www.ruby-forum.com/u/neongrau)\
**Post date:** [June 13, 2008, 5:19pm UTC](https://www.ruby-forum.com/t/ferret-drb-on-windows/113093/6 "2008-06-13T17:19:53Z")

</div>

neongrau \_\_ wrote:

> ok, just tested svn rev. 257 (the one before the “unified drb server  
> start/stop script by Peter J.” and that one works.

Guys,

I have been at this for 3 days now with no luck getting a DRb server  
going. I have a production site on a Windows box with Apache, 5 mongrels  
and using aaf rev. 257 (as suggested here) and ferret 0.11.4 (mswin32).

I cannot even get ferret\_daemon going on the console.

ruby script/ferret\_daemon -c -e production

gives me

Initializing FerretDaemon…  
Starting Ferret DRb server…  
script/ferret\_daemon:69:in `service_init': undefined method`start’ for  
ActsAsFe  
rret::Remote::Server:Class (NoMethodError)  
from script/ferret\_daemon:51:in `initialize' from script/ferret_daemon:87:in`new’  
from script/ferret\_daemon:87

I have tried everything … or so it seems. Various versions of ferret  
and aaf have been installed, uninstalled, patched and burnt… no luck.

Any help will be much appreciated.

Thank you,

Karthik

---

<div class="post-metadata">

**Author:** ![neongrau](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/34f0e0/32.png) [@neongrau](https://www.ruby-forum.com/u/neongrau)\
**Post date:** [June 13, 2008, 5:56pm UTC](https://www.ruby-forum.com/t/ferret-drb-on-windows/113093/7 "2008-06-13T17:56:00Z")

</div>

neongrau \_\_ wrote:

> Karthik Reddy wrote:
> 
> > Initializing FerretDaemon…  
> > Starting Ferret DRb server…  
> > script/ferret\_daemon:69:in `service_init': undefined method`start’ for  
> > ActsAsFe  
> > rret::Remote::Server:Class (NoMethodError)  
> > from script/ferret\_daemon:51:in `initialize' from script/ferret_daemon:87:in`new’  
> > from script/ferret\_daemon:87
> 
> this looks like the error i got with any newer revision than 257
> 
> can you double check that you have that exact revison?
> 
> i’m also using “ferret-0.11.5-mswin32” now.
> 
> and “ruby 1.8.5 (2007-06-07 patchlevel 52) [i386-mswin32]”  
> (because i had issues with 1.8.6 and the official 1.8.5 has an earlier  
> patchlevel with a massive memory leak when using the ADO driver for  
> MSSQL).
> 
> and since i’ve switched to using pure ASCII in my index it’s working  
> quite nicely

Wow, thank you for that quick reponse there neongrau.

I am using ruby 1.8.5 (2006-12-25 patchlevel 12) [i386-mswin32], my  
database is on mysql. I was running “ferret-0.11.5-mswin32” before and  
have switched back to it now (after your reply).

Definitely got revision 257 of aaf.

Should I try updating ruby? How would I get to your patchlevel?

Cheers - K

---

<div class="post-metadata">

**Author:** ![neongrau](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/34f0e0/32.png) [@neongrau](https://www.ruby-forum.com/u/neongrau)\
**Post date:** [June 13, 2008, 5:33pm UTC](https://www.ruby-forum.com/t/ferret-drb-on-windows/113093/8 "2008-06-13T17:33:44Z")

</div>

Karthik Reddy wrote:

> Initializing FerretDaemon…  
> Starting Ferret DRb server…  
> script/ferret\_daemon:69:in `service_init': undefined method`start’ for  
> ActsAsFe  
> rret::Remote::Server:Class (NoMethodError)  
> from script/ferret\_daemon:51:in `initialize' from script/ferret_daemon:87:in`new’  
> from script/ferret\_daemon:87

this looks like the error i got with any newer revision than 257

can you double check that you have that exact revison?

i’m also using “ferret-0.11.5-mswin32” now.

and “ruby 1.8.5 (2007-06-07 patchlevel 52) [i386-mswin32]”  
(because i had issues with 1.8.6 and the official 1.8.5 has an earlier  
patchlevel with a massive memory leak when using the ADO driver for  
MSSQL).

and since i’ve switched to using pure ASCII in my index it’s working  
quite nicely

---

<div class="post-metadata">

**Author:** ![neongrau](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/34f0e0/32.png) [@neongrau](https://www.ruby-forum.com/u/neongrau)\
**Post date:** [June 13, 2008, 6:25pm UTC](https://www.ruby-forum.com/t/ferret-drb-on-windows/113093/9 "2008-06-13T18:25:26Z")

</div>

Karthik Reddy wrote:

> Definitely got revision 257 of aaf.  
> thats really strange, i don’t remember that i did any modifications but  
> if you want i could mail what i currently have in my plugins dir.

> Should I try updating ruby? How would I get to your patchlevel?  
> worth a try, just browse their ftp server, should be [ftp.ruby-lang.org](http://ftp.ruby-lang.org)

maybe it has s.th. to do with the win32-service gem, which one do you  
have?  
(“win32-service-0.5.2-mswin32” is the one i got atm)
