Broken mongrels after Rails 2.3.11 upgrade

At work we ran into a problem with Mongrel crashing after upgrading to Rails 2.3.11. The errors were:

Tue May 25 20:24:52 +0300 2010: Error calling Dispatcher.dispatch #<NoMethodError: You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.split>

as well as:

The error occurred while evaluating nil.[]

We found Lighthouse issue #4690 covering the problem. The issue linked to gist: 471663 GitHub with a fix for the problem. The gist contained some comments to resolve some issues, namely an “illformed requirement” error and applying the fix for rails versions other than 2.3.8.

After a bit of tweaking we ended up with an initializer that worked for us.

Advertisement

One Response to “Broken mongrels after Rails 2.3.11 upgrade”

  1. Upgrading to rails 2.3.11 – A selenium and mongrel odyssey « Antonio Carpentieri Says:

    [...] http://rcaguilar.wordpress.com/2011/02/14/broken-mongrels-after-rails-2-3-11-upgrade/ [...]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.