I''m getting the following exceptions when running mongrel_rails. Any ideas what might be causing the problem? Error details... $ mongrel_rails /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel/command.rb:168:in `run'': When creating '''': undefined method `downcase'' for nil:NilClass (NoMethodError) from /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.3 /bin/mongrel_rails:224 from /opt/local/bin/mongrel_rails:16:in `load'' from /opt/local/bin/mongrel_rails:16 $ mongrel_rails start Running Mongrel server in development mode at 0.0.0.0:3000 Server ready. ERROR(NoMethodError): undefined method `readpartial'' for #<TCPSocket:0x24f2274> /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel.rb:352:in `process_client'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel.rb:332:in `initialize'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel.rb:331:in `timeout'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel.rb:331:in `initialize'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel.rb:328:in `initialize'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel.rb:328:in `new'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel.rb:328:in `initialize'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel.rb:328:in `times'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel.rb:328:in `initialize'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.3/bin/mongrel_rails:166:in `new'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.3/bin/mongrel_rails:166:in `start_mongrel'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.3/bin/mongrel_rails:181:in `run'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel/command.rb:183:in `run'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.3/bin/mongrel_rails:224 /opt/local/bin/mongrel_rails:16:in `load'' /opt/local/bin/mongrel_rails:16 Environment details... $ gem list mongrel *** LOCAL GEMS *** mongrel (0.3.3) A small fast HTTP library and server that runs Rails, Camping, and Nitro apps. $ gem list gem_plugin *** LOCAL GEMS *** gem_plugin (0.2.1) A plugin system based only on rubygems that uses dependencies only $ gem list daemons *** LOCAL GEMS *** daemons (1.0.4) A toolkit to create and control daemons in different ways $ script/console Loading development environment.>> Rails::Info=> About your application''s environment Ruby version 1.8.2 (powerpc-darwin8.2.0) RubyGems version 0.9.2 Rails version 1.0.0 Active Record version 1.13.2 Action Pack version 1.11.2 Action Web Service version 1.0.0 Action Mailer version 1.1.5 Active Support version 1.2.5 Application root ************** Environment development Database adapter mysql Thanks. -- James. http://blog.floehopper.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070429/ed4ca5c8/attachment.html
Upgrade your Mongrel to the latest (1.0.1), and try again. James Mead wrote:> I''m getting the following exceptions when running mongrel_rails. Any > ideas what might be causing the problem? > > Error details... > > $ mongrel_rails > /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel/command.rb:168:in > `run'': When creating '''': undefined method `downcase'' for nil:NilClass > (NoMethodError) > from > /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.3/bin/mongrel_rails:224 > from /opt/local/bin/mongrel_rails:16:in `load'' > from /opt/local/bin/mongrel_rails:16 > > $ mongrel_rails start > Running Mongrel server in development mode at 0.0.0.0:3000 > <http://0.0.0.0:3000> > Server ready. > ERROR(NoMethodError): undefined method `readpartial'' for > #<TCPSocket:0x24f2274> > /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel.rb:352:in > `process_client'' > /opt/local/lib/ruby/gems/1.8/gems/mongrel- 0.3.3/lib/mongrel.rb:332:in > `initialize'' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel.rb:331:in > `timeout'' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel.rb:331:in > `initialize'' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel.rb:328:in > `initialize'' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel.rb:328:in `new'' > /opt/local/lib/ruby/gems/1.8/gems/mongrel- 0.3.3/lib/mongrel.rb:328:in > `initialize'' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel.rb:328:in > `times'' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel.rb:328:in > `initialize'' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.3/bin/mongrel_rails:166:in > `new'' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.3/bin/mongrel_rails:166:in > `start_mongrel'' > /opt/local/lib/ruby/gems/1.8/gems/mongrel- > 0.3.3/bin/mongrel_rails:181:in `run'' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.3/lib/mongrel/command.rb:183:in > `run'' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-0.3.3/bin/mongrel_rails:224 > /opt/local/bin/mongrel_rails:16:in `load'' > /opt/local/bin/mongrel_rails:16 > > Environment details... > > $ gem list mongrel > > *** LOCAL GEMS *** > > mongrel (0.3.3) > A small fast HTTP library and server that runs Rails, Camping, and > Nitro apps. > > $ gem list gem_plugin > > *** LOCAL GEMS *** > > gem_plugin (0.2.1) > A plugin system based only on rubygems that uses dependencies only > > $ gem list daemons > > *** LOCAL GEMS *** > > daemons (1.0.4) > A toolkit to create and control daemons in different ways > > $ script/console > Loading development environment. >> > Rails::Info > => About your application''s environment > Ruby version 1.8.2 (powerpc-darwin8.2.0) > RubyGems version 0.9.2 > Rails version 1.0.0 > Active Record version 1.13.2 > Action Pack version 1.11.2 > Action Web Service version 1.0.0 > Action Mailer version 1.1.5 > Active Support version 1.2.5 > Application root ************** > Environment development > Database adapter mysql > > Thanks. > -- > James. > http://blog.floehopper.org > > > ------------------------------------------------------------------------ > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users
On 29/04/07, Will Green <will at hotgazpacho.com> wrote:> > Upgrade your Mongrel to the latest (1.0.1), and try again. >Using gem install or gem update - I always get 0.3.3 version of mongrel. Presumably a mirror issue...? However, I downloaded the 1.0.1 gem and tried to install it, but it looks like mongrel needs ruby 1.8.4 or greater and I only have 1.8.2 on this machine. $ sudo gem install /Users/jamesmead/downloads/mongrel-1.0.1.gem--include-dependencies Password: ERROR: While executing gem ... (RuntimeError) Error instaling /Users/jamesmead/downloads/mongrel-1.0.1.gem: mongrel requires Ruby version >= 1.8.4 $ ruby --version ruby 1.8.2 (2004-12-25) [powerpc-darwin8.2.0] So I assume my only option is to upgrade my ruby version...? -- James. http://blog.floehopper.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070429/d516ab4f/attachment.html
On Apr 29, 2007, at 6:44 AM, James Mead wrote:> On 29/04/07, Will Green <will at hotgazpacho.com> wrote: > Upgrade your Mongrel to the latest (1.0.1), and try again. > > Using gem install or gem update - I always get 0.3.3 version of > mongrel. Presumably a mirror issue...? > > However, I downloaded the 1.0.1 gem and tried to install it, but it > looks like mongrel needs ruby 1.8.4 or greater and I only have > 1.8.2 on this machine. > > $ sudo gem install /Users/jamesmead/downloads/mongrel- 1.0.1.gem -- > include-dependencies > Password: > ERROR: While executing gem ... (RuntimeError) > Error instaling /Users/jamesmead/downloads/mongrel-1.0.1.gem: > mongrel requires Ruby version >= 1.8.4 > > $ ruby --version > ruby 1.8.2 (2004-12-25) [powerpc-darwin8.2.0] > > So I assume my only option is to upgrade my ruby version...? > -- > James. > http://blog.floehopper.orgJames- Mongrel has *always* required ruby 1.8.4 or later. So you will have to upgrade ruby if you plan on using mongrel peridion. Thanks -- Ezra Zygmuntowicz -- Lead Rails Evangelist -- ez at engineyard.com -- Engine Yard, Serious Rails Hosting -- (866) 518-YARD (9273)
Reasonably Related Threads
- script/server vs mongrel_rails start issue
- mongrel on linux error - custom_require.rb:27:in `gem_original_require'': no such file to load -- (LoadErro
- Error in mongrel_rails script with Cygwin/Mongrel/Rails
- How to get a decent stack trace?
- mongrel cluster issues, plain old mongrel OK