[Mongrel] Following your Mongrel thread

Luis Lavena luislavena at gmail.com
Sat Aug 12 11:14:19 EDT 2006


On 8/11/06, Matthew Bass <pelargir at gmail.com> wrote:
> Hello, Luis. I've been following your Mongrel thread here:
> http://rubyforge.org/pipermail/mongrel-users/2006-May/000210.html
>
> I'm also running Win2K and have been trying to get Mongrel running as a
> service, without much luck. I tried running daemon_test.rb like you said and
> was able to get it to work, however, I had to add the lib directory to the
> load path on the Ruby call, like so:
>
> ruby -I..\lib daemon_test.rb install
>
> Otherwise, I got an error about not being able to find win32/service. I'm
> wondering if this has something to do with my problem running mongrel_rails
> start? Every time I try to start the service, I get that message about it
> "not starting in a timely manner." No error log or anything.
>
> I'd appreciate any advice you might have.
>
> Thanks,
> Matt
>
>

Hello Matt, I'm forwarding this to the list to everyone knows about it:

win32-service (or win32/service) in its current state: sucks, but sucks badly.

Part of the fault is ms side, their complex way to implement services
is broken between releases of the NT OS.

I maintain a few tools written in C as service for NT 4, later updated
to 2000 and now XP (and 2003 server, if worth it).

On all the 3-4 OS, it sometimes throw errors that make me look like an idiot.

The other "guilty" is Ruby, with their protective green threads and
their lack of scalability. Problems raises trying to get back from a C
thread to ruby interpreter thread without breaking everything.

A few weeks back, a patch was sent to Dan Berger to handle this in a
pretty (or better) way...

I cannot managed to make rails works good in it.

Why? enter Thread-UN-Safety world!

If I run a plain mongrel server, make it service and manage it...
everything is ok. When you throw in all the fat Rails run... it
crash... left threads behind... stop responding...

I don't think is Rails fault! (this could be interpreted as a irony).

Anyway, after all this mambo-jumbo, I guess will need to look into this.

Call next week my "Solve the f*ckin win32-service problem so rails
runs nicely on windows" week.

Good weekend for everyone.

-- 
Luis Lavena
Multimedia systems
-
Leaders are made, they are not born. They are made by hard effort,
which is the price which all of us must pay to achieve any goal that
is worthwhile.
Vince Lombardi


More information about the Mongrel-users mailing list