PRoblem with Mongrel

Hi,

I have a strange problem.
I have a mongrel cluster and when i am trying to access my url, then it
s failing 1 out of 10 times.
Then we tried it by accessing the url by specifying the mongrel id and
we found that from the series only one i.e. the first one was failing.
The mongrel ids were from 10000 to 10003 and only the 10000 mongrel id
wasnt respoding.
Any suggestions?

Neha

Look at the mongrel logs? How is it ‘failing’?

Vish

We have a pdf-writer installed on that box and when we try to access
that module then it says
PDF is not a class/module.

I assume all mongrels are on that box and it’s happening to this alone?

Try:

  1. Force all the mongrels to exit. `ps ax | grep mongrel’ shouldn’t
    show anything alive. This mongrel could be a remnant.
  2. Where do you load PDF::Writer? Try requiring it early, in
    environment.rb
  3. PDF::Writer seems to have problems. Switch to an alternative?
    http://wiki.rubyonrails.org/rails/pages/HowtoGeneratePDFs
  4. Google the exact error, it helps a lot.

Regards,
Vish

Vishnu G. wrote:

I assume all mongrels are on that box and it’s happening to this alone?

Try:

  1. Force all the mongrels to exit. `ps ax | grep mongrel’ shouldn’t
    show anything alive. This mongrel could be a remnant.
  2. Where do you load PDF::Writer? Try requiring it early, in
    environment.rb
  3. PDF::Writer seems to have problems. Switch to an alternative?
    http://wiki.rubyonrails.org/rails/pages/HowtoGeneratePDFs
  4. Google the exact error, it helps a lot.

Regards,
Vish

That was of gr8 help.
We moved the require stmts to environment.rb and it’s working till now.
Thanks for the help.