Ruby Forum Ferret > Ferret DRb on windows?

Posted by neongrau __ (neongrau)
on 27.08.2007 15:59
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?
Posted by Jens Kraemer (Guest)
on 27.08.2007 16:23
(Received via mailing list)
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/

cheers,
Jens


--
Jens Krämer
http://www.jkraemer.net/ - Blog
http://www.omdb.org/     - The new free film database
Posted by neongrau __ (neongrau)
on 27.08.2007 16:29
awesome!

thanks alot!

i was searching google like crazy and couldn't find anything myself.
Posted by neongrau __ (neongrau)
on 15.11.2007 17:36
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?
Posted by neongrau __ (neongrau)
on 15.11.2007 18:00
ok, just tested svn rev. 257 (the one before the "unified drb server 
start/stop script by Peter Jones" and that one works.
Posted by Karthik Reddy (redster)
on 13.06.2008 17:19
neongrau __ wrote:
> ok, just tested svn rev. 257 (the one before the "unified drb server 
> start/stop script by Peter Jones" 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
Posted by neongrau __ (neongrau)
on 13.06.2008 17:33
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
Posted by Karthik Reddy (redster)
on 13.06.2008 17:56
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
Posted by neongrau __ (neongrau)
on 13.06.2008 18:25
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

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)