Browse the Ruby on Rails Community.

You are here: Forums Ask a Rails expert Tracking down an issue...

Replytotopic

Tracking down an issue

Posted in Forums : Ask a Rails expert

 
20064666954644d813e6326

Authority 0
Posting Rating 70
Sign in to rate this post

So I have this problem or bug that is driving me nuts trying to find. The main issue being that I can’t duplicate it, nor can anyone in my office.

So any advice on where to start trying to find out whats wrong would be really really helpful.

Our setup is apache with mod_proxy in front of 10 mongrels. The problem is with our “contribution” page(s). It uses a SOAP call to process the credit card with a third party. As far as I know it works all the time, but some of the time for some people, apache returns a 502 Proxy Error. From the looks of everything, the rails process completes just fine. The contribution is created, the soap call to 3rd party is approved and the thank you email is “sent”, yet the get a 502 error.

Where do I go from here? It almost seems like a timeout error, but how do I verify that and what settings do I tweak?

 
20064666954644d813e6326

Authority 0
Posting Rating 70
Sign in to rate this post

After digging a bit more.. It looks like the production log never shows the “completed” line for these requests…

It logs the redering calls just fine, but then just jumps to the next request…

......
Rendering template within layouts/application_contribution
Rendering contributions/thankyou

Processing PagesController#show (for 65.55.208.43 at 2008-05-11 16:17:02) [GET]

 
Profile

Authority 12
Posting Rating 97
Sign in to rate this post

Is it connecting to the SOAP service during rails request processing? Maybe it falls over if the user hits the “stop” button in their browser while the SOAP call is taking place.

 
20064666954644d813e6326

Authority 0
Posting Rating 70
Sign in to rate this post

Looks more an more like it is a timeout issue and that apache is timing out.. but then the rails process finishes..

I could test my theory but the credit card processor is down… joy

Replytotopic

Other Recent Topics

Ask a Rails expert : how to write in model

Ask a Rails expert : how to show the params value in page.alert

Ask a Rails expert : Cutomize Will_Paginate next & previouse links

Ask a Rails expert : support AJAX pagination with Will_Paginate plug-in

Ask a Rails expert : Inheritance Determination in View

Ask a Rails expert : Install rails application

Ask a Rails expert : custom sql query

Ask a Rails expert : session handling does not work with REST API

Ask a Rails expert : Display WSDL

Ask a Rails expert : Howto respond a XML error message when there is no @active_record_obj?

Formatting Help
  • *bold*       _italics_      
    bq. (quotes)
  • "DSC":http://www.dsc.net
  • * or # (lists)
or cancel