Guest Geoff Posted January 1, 2011 Posted January 1, 2011 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
Ashoat Posted January 4, 2011 Posted January 4, 2011 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.
fengshaun Posted January 5, 2011 Author Posted January 5, 2011 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!
On Freund Posted January 12, 2011 Posted January 12, 2011 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
Ashoat Posted January 12, 2011 Posted January 12, 2011 Oops! Should have had an underscore there instead of a dash. The gem should now be installed... please try again.
On Freund Posted January 12, 2011 Posted January 12, 2011 /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)
Ashoat Posted January 12, 2011 Posted January 12, 2011 I've downgraded Mongrel to version 1.1... can you try now?
On Freund Posted January 12, 2011 Posted January 12, 2011 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'
Ashoat Posted January 12, 2011 Posted January 12, 2011 Looks like I installed 1.1, but didn't uninstall 1.1.5. Could you try again now?
fengshaun Posted January 12, 2011 Author Posted January 12, 2011 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?
Guest Geoff Posted January 13, 2011 Posted January 13, 2011 Probably from a cron run. You can run cron jobs and get the output by email.
On Freund Posted January 13, 2011 Posted January 13, 2011 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.
fengshaun Posted January 14, 2011 Author Posted January 14, 2011 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
Ashoat Posted January 14, 2011 Posted January 14, 2011 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?
fengshaun Posted January 14, 2011 Author Posted January 14, 2011 I'm not in a rush, but I'm not sure about others.
Recommended Posts