[Rails] Re: Edge Rails 3: Mongrel stuck in infinite loop, Unicorn missing uninitialized constant Rack::Runt
Yeah, I already read that in your comment on the Rails weblog. Thanks a lot! With the Rails prerelease gem, Unicorn seems to be working again. Problem solved. On Feb 5, 3:45 pm, Juanma Cervera wrote: > Hi Jan. > I had the same problem, even with other two othes gems, and I resolved > the issue adding the gems in Gemfile and doing 'bundle install'. > > the gems were: > > gem "cgi_multipart_eof_fix" > gem "fastthread" > gem "mongrel_experimental" > > all of them are required in mongrel.rb with sentecese like > > Mongrel::Gems.require 'cgi_multipart_eof_fix' (line 16) > Mongrel::Gems.require 'fastthread' (line 17) > Mongrel::Gems.require 'mongrel_experimental' (line 355) > > I don't know the diference with a normal require 'gem' statement, but I > think here is the problem. > > Hope this helps. > Juan M. Cervera > > -- > Posted viahttp://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
[Rails] Edge Rails 3: Mongrel stuck in infinite loop, Unicorn missing uninitialized constant Rack::Runtime
Hi, I wanted to try out Edge Rails 3 today and hit a serious problem trying to run mongrel. script/rails server mongrel just hangs. Interrupting and looking up the spot of the lockup revealed $LOAD_PATH.unshift 'projects/mongrel_experimental/lib/' Mongrel::Gems.require 'mongrel_experimental', ">=#{Mongrel::Const::MONGREL_VERSION}" at the bottom of mongrel.rb. This executes Mongrel::Gems.require which contains this wonderful ($%^##) infinite loop: begin # ActiveSupport breaks 'require' by making it always return a true value Kernel.require 'rubygems' version ? gem(library, version) : gem(library) retry rescue Gem::LoadError, LoadError, RuntimeError # puts "** #{library.inspect} could not be loaded" unless library == "mongrel_experimental" end Removing the two lines cited above from mongrel.rb cures the problem. This is however not a feasible solution, since these lines are in the system-wide mongrel gem and I don't think hacking around in these is a good idea. I tried Unicorn as well but it always presented me with a `load_missing_constant': uninitialized constant Rack::Runtime (NameError). Does anyone have an idea how to solve this? kind regards Jan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
[Rails] Re: Suggestions for a rails webhost...
cheap hosting for students http://javaprovider.net open cms works like a charm -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Suggestions for a rails webhost...
http://forum.webfaction.com/viewtopic.php?pid=9181#p9181 -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Rails install failure on VPS host - suggestions?
cheap hosting for students http://javaprovider.net no one can beat them -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Strange dependency error after going Ruby1.8.6, Rails 2.1.0 -> Ruby1.8.7, Rails 2.1.2
Ah, sorry, that was a little quick. Actually the bug is caused by the resource_controller plugin. My bad. I posted a report in the resource_controller group. regards Jan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Strange dependency error after going Ruby1.8.6, Rails 2.1.0 -> Ruby1.8.7, Rails 2.1.2
Well, the andand gem seems to be the culprit (http://github.com/ raganwald/andand/tree/master/lib/andand.rb). I'll contact the author about this. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Strange dependency error after going Ruby1.8.6, Rails 2.1.0 -> Ruby1.8.7, Rails 2.1.2
Ah, yes, thanks. I'll try to investigate this a bit further. The case you linked to describes a different problem though, it seems. In my case the model (Price) and the ApplicationHelper are fairly vanilla, not loading any fancy external libraries through ways untrackable by Rails dependency mechanisms. That's what's bothering me so much (after all, I got my code running by pulling the Price reference out of the helper), all this seems to indicate a bug somewhere in the dependency/ autoreload mechanism. Jan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Strange dependency error after going Ruby1.8.6, Rails 2.1.0 -> Ruby1.8.7, Rails 2.1.2
Ok, I tried Rails 2.1.2, 2.1.1 and 2.1.0 The error shows up in all versions. I guess that means it has something to do with the Ruby Update (1.8.6 - > 1.8.7)? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Strange dependency error after going Ruby1.8.6, Rails 2.1.0 -> Ruby1.8.7, Rails 2.1.2
Yeah, I can confirm that. I moved the Price.find_all_by_sessiontype(sessiontype) out of the helper method and now everything seems to work. I still think this error shouldn't have happened in the first place. I tried to investigate, but the dependency loader is so full of Voodoo that I can't figure it out. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Strange dependency error after going Ruby1.8.6, Rails 2.1.0 -> Ruby1.8.7, Rails 2.1.2
Oh, damn, sorry, of course. I forgot, here it is: 19 def price_options_for(sessiontype) 20options_for_select (Price.find_all_by_sessiontype(sessiontype).map { |p| 21 ["#{p.format} #{german_price(p.price, true)}", p.format] 22}) 23 end Other Methods in the helper never throw an exception.. After posting my original message I poked around the code a little bit further. I think accessing the "Price" model might cause the error. But, uh, that's not something that should happen, right? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Strange dependency error after going Ruby1.8.6, Rails 2.1.0 -> Ruby1.8.7, Rails 2.1.2
Hi, I'm getting an error I just can't find any cause for. The error is "A copy of ApplicationHelper has been removed from the module tree but is still active!" and gets thrown in a Template that uses a method defined in my ApplicationHelper. The error occurs only in development mode. The error did not occur before my switch to Ruby 1.8.7 and Rails 2.1.2 minutes ago. I have absolutely no clue about what could be causing this. The problem occurs on windows as well as MacOS X 10.5 Any help would be appreciated. regards Jan Stacktrace: ActionView::TemplateError (A copy of ApplicationHelper has been removed from the module tree but is still active!) on line #57 of photosessions/show.html.erb: 54: 55: 56: 57: <%= price_options_for(@photosession.typ) %> 58: 59: 60: /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/ active_support/dependencies.rb:250:in `load_missing_constant' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/ active_support/dependencies.rb:468:in `const_missing' app/helpers/application_helper.rb:20:in `price_options_for' app/views/photosessions/show.html.erb:57:in `_run_erb_47app47views47photosessions47show46html46erb' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_view/ base.rb:342:in `send' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_view/ base.rb:342:in `execute' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_view/ template_handlers/compilable.rb:29:in `send' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_view/ template_handlers/compilable.rb:29:in `render' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_view/ template.rb:35:in `render' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_view/ template.rb:22:in `render_template' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_view/ base.rb:248:in `render_file' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---