Jump to content

Recommended Posts

Posted

Escalating...

 

Re: Mongrel issue when starting Ruby applications using Rails 3.0 [Case 43320]

There are no current plans yet to support Rails 3+ due to the mongrel issues with that version. Mongrel still has issues working with Rails 2.3.8 actually for properly passing cookies and headers.

 

I do agree it would be helpful to consider mod_rails with passenger over mongrel, but that's simply my opinion and not any official recommendation from cPanel itself

  • Replies 33
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Ugh... this is annoying, considering that I already switched my scripts to use Rails 3.0. Let me see if there is any way out...

 

Looks like one option is to get rid of Mongrel and use mod_rails instead. However, that will mean having to manually restart by creating a blank file, and having to do some configuration with .htaccess files.

 

Alternately, could somebody having this issue try to add the following to their Rails gemfile?

gem "mongrel"
gem "cgi_multipart_eof_fix"
gem "fastthread"
gem "mongrel_experimental"

 

Since we're planning to switch Rails accounts to Charlie eventually, I'm thinking that it might make more sense to avoid downgrading our version of Rails.

Posted

Adding those lines to gemfile (and getting my app to work at all) would mean that I have to port my app to rails 3 first. Since tomorrow is the first day of classes, I will see how fast I can do it!

Posted

As I'm having the same problem, I tried adding those gems to the Gemfile, but it couldn't find mognrel-experimental. When I removed it from the Gemfile, the original problem was still there. Trying to install the mongrel-experimental gem resulted in this:

 

make
gcc -I. -I/usr/lib/ruby/1.8/x86_64-linux -I/usr/lib/ruby/1.8/x86_64-linux -I.   -fPIC -g -O2   -c fastthread.c
make: execvp: gcc: Permission denied
make: *** [fastthread.o] Error 127

Posted

Oops! Should have had an underscore there instead of a dash. The gem should now be installed... please try again.

Posted
/usr/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/resolver.rb:129:in `resolve': Bundler could not find compatible versions for gem "mongrel": (Bundler::VersionConflict)
  In Gemfile:
    mongrel_experimental depends on
      mongrel (= 1.1)

    mongrel (1.1.5)

Posted
I've downgraded Mongrel to version 1.1... can you try now?

 

Still no luck:

/usr/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/runtime.rb:27:in `setup': You have already activated mongrel 1.1.5, but your Gemfile requires mongrel 1.1. Consider using bundle exec. (Gem::LoadError)
    from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/spec_set.rb:12:in `each'

 

Posted
I've downgraded Mongrel to version 1.1... can you try now?

 

Still no luck:

/usr/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/runtime.rb:27:in `setup': You have already activated mongrel 1.1.5, but your Gemfile requires mongrel 1.1. Consider using bundle exec. (Gem::LoadError)
    from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/spec_set.rb:12:in `each'

 

Where do you see those error messages?

Posted

Probably from a cron run. You can run cron jobs and get the output by email.

Posted
Looks like I installed 1.1, but didn't uninstall 1.1.5. Could you try again now?

 

Looks like we're back at the original error :(

For those asking where I see the errors, it's in mongrel.log in the application's log directory.

Posted

In mongrel.log, I'm seeing this instead:

 

/usr/lib/ruby/gems/1.8/gems/will_paginate-2.3.12/lib/will_paginate.rb:39:in `enable_activerecord': undefined method `returning' for WillPaginate:Module (NoMethodError)
    from /usr/lib/ruby/gems/1.8/gems/will_paginate-2.3.12/lib/will_paginate.rb:88

 

EDIT: I don't see anything of significance in other logs

Posted

This isn't looking pretty...

 

At this point, I'm relatively close to having Charlie set up. Perhaps you guys would be cool with just waiting it out?

Guest
This topic is now closed to further replies.

×
×
  • Create New...