Upgrading to rails 0.10.0 leads to the following: ----- => Rails application started on http://0.0.0.0:3002 [2005-02-24 16:45:35] INFO WEBrick 1.3.1 [2005-02-24 16:45:35] INFO ruby 1.8.2 (2004-12-25) [powerpc-darwin7.7.0] [2005-02-24 16:45:35] WARN TCPServer Error: Address already in use - bind(2) [2005-02-24 16:45:35] INFO WEBrick::HTTPServer#start: pid=936 port=3002 #<NameError: constant Controllers::HostError not defined> ["/opt/local/lib/ruby/gems/1.8/gems/activesupport-1.0.0/lib/active_support/dependencies.rb:123:in `remove_const''", "/opt/local/lib/ruby/gems/1.8/gems/activesupport-1.0.0/lib/active_support/dependencies.rb:123:in `send''", "/opt/local/lib/ruby/gems/1.8/gems/activesupport-1.0.0/lib/active_support/dependencies.rb:123:in `clear!''", "/opt/local/lib/ruby/gems/1.8/gems/activesupport-1.0.0/lib/active_support/dependencies.rb:121:in `each''", "/opt/local/lib/ruby/gems/1.8/gems/activesupport-1.0.0/lib/active_support/dependencies.rb:121:in `clear!''", "/opt/local/lib/ruby/gems/1.8/gems/rails-0.10.0/lib/dispatcher.rb:49:in `reset_application''", "/opt/local/lib/ruby/gems/1.8/gems/rails-0.10.0/lib/dispatcher.rb:36:in `dispatch''", "/Volumes/Users/www/snuadh/bada/public/dispatch.rb:10", "/opt/local/lib/ruby/gems/1.8/gems/activesupport-1.0.0/lib/active_support/dependencies.rb:182:in `load''", "/opt/local/lib/ruby/gems/1.8/gems/activesupport-1.0.0/lib/active_support/dependencies.rb:182:in `load''", "/opt/local/lib/ruby/gems/1.8/gems/rails-0.10.0/lib/webrick_server.rb:82:in `handle_dispatch''", "/opt/local/lib/ruby/gems/1.8/gems/rails-0.10.0/lib/webrick_server.rb:34:in `do_GET''", "/opt/local/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `__send__''", "/opt/local/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `service''", "/opt/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service''", "/opt/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run''", "/opt/local/lib/ruby/1.8/webrick/server.rb:155:in `start_thread''", "/opt/local/lib/ruby/1.8/webrick/server.rb:144:in `start''", "/opt/local/lib/ruby/1.8/webrick/server.rb:144:in `start_thread''", "/opt/local/lib/ruby/1.8/webrick/server.rb:94:in `start''", "/opt/local/lib/ruby/1.8/webrick/server.rb:89:in `each''", "/opt/local/lib/ruby/1.8/webrick/server.rb:89:in `start''", "/opt/local/lib/ruby/1.8/webrick/server.rb:79:in `start''", "/opt/local/lib/ruby/1.8/webrick/server.rb:79:in `start''", "/opt/local/lib/ruby/gems/1.8/gems/rails-0.10.0/lib/webrick_server.rb:20:in `dispatch''", "./script/server:51"] [2005-02-24 16:45:44] ERROR `/bada'' not found. 127.0.0.1 - - [24/Feb/2005:16:45:44 CET] "GET /bada HTTP/1.1" 404 274 - -> /bada ----- knowing that there s nothing in development.log that indicates a problem: ---- Processing BadaController#index (for 127.0.0.1 at Thu Feb 24 16:45:44 CET 2005) Parameters: {:controller=>"bada", :action=>"index"} Redirected to http://localhost:3002/bada/license Completed in 0.004839 (206 reqs/sec) ----- Any idea? -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto-0kjVc+YyuDZX+h8frlqCcVAUjnlXr6A1@public.gmane.org Darwin snuadh.freenix.org Kernel Version 7.8.0: Wed Dec 22 14:26:17 PST 2004
* Ollivier Robert <roberto-0kjVc+YyuDZX+h8frlqCcVAUjnlXr6A1@public.gmane.org> [0212 16:12]:> Upgrading to rails 0.10.0 leads to the following: > > ----- > => Rails application started on http://0.0.0.0:3002 > [2005-02-24 16:45:35] INFO WEBrick 1.3.1 > [2005-02-24 16:45:35] INFO ruby 1.8.2 (2004-12-25) [powerpc-darwin7.7.0] > [2005-02-24 16:45:35] WARN TCPServer Error: Address already in use - > bind(2) > [2005-02-24 16:45:35] INFO WEBrick::HTTPServer#start: pid=936 port=3002 > #<NameError: constant Controllers::HostError not defined>Something else is on port 3002? webrick binds to all IPs now rather than just localhost, try the ''-b'' flag. Rest of the errors don''t ring a bell... -- ''Oh. Your. God.'' -- Bender Rasputin :: Jack of All Trades - Master of Nuns
According to Dick Davies:> Something else is on port 3002? > > webrick binds to all IPs now rather than just localhost, try the ''-b'' flag. > Rest of the errors don''t ring a bell...No, bound on port 3002/localhost w/o anything else running on that port. -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto-0kjVc+YyuDZX+h8frlqCcVAUjnlXr6A1@public.gmane.org Darwin snuadh.freenix.org Kernel Version 7.8.0: Wed Dec 22 14:26:17 PST 2004
According to Ollivier Robert:> No, bound on port 3002/localhost w/o anything else running on that port.Interesting datapoint: HostError is defined only on windows platform so something is thinking I''m running is although it is a OSX machine (note that the common part is the "win" in Darwin/windows which is a probelm I''ve encountered before). -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto-0kjVc+YyuDZX+h8frlqCcVAUjnlXr6A1@public.gmane.org Darwin snuadh.freenix.org Kernel Version 7.8.0: Wed Dec 22 14:26:17 PST 2004
eric-O2zf8en5V9XYtjvyW6yDsg@public.gmane.org
2005-Feb-24 18:40 UTC
[0.10.0] Update problem
Call me a rank newbie but I tried to upgrade my installation of rails like this: $ gem install --version ''0.10.0'' rails It *seems* to work but then I try this: $ rails --version rails 1.8.1 What is ''1.8.1'' and why is it not ''0.10.0''? TIA Eric -- ------------------------------------------------------------------------ # Eric A Lucas | __|__ # "Oh, I have slipped the surly bond | *---oOo---* # of earth and danced the skies on | __|__ __|__ # laughter-silvered wings... | *---oOo---* *---oOo---* # -- John Gillespie Magee Jr. |
On 24-Feb-2005, at 13:40, eric-O2zf8en5V9XYtjvyW6yDsg@public.gmane.org wrote:> $ gem install --version ''0.10.0'' rails > > It *seems* to work but then I try this: > > $ rails --version > rails 1.8.1 > > What is ''1.8.1'' and why is it not ''0.10.0''? >That looks like the Ruby version. Try this instead: gem search rails --local On my system it says: *** LOCAL GEMS *** rails (0.9.4) Web-application framework with template engine, control-flow layer, and ORM. Regards, JJ
* eric-O2zf8en5V9XYtjvyW6yDsg@public.gmane.org <eric-O2zf8en5V9XYtjvyW6yDsg@public.gmane.org> [0236 18:36]:> Call me a rank newbie but I tried to upgrade my installation of > rails like this: > > $ gem install --version ''0.10.0'' railsJust a ''gem update'' will do it> It *seems* to work but then I try this: > > $ rails --version > rails 1.8.1 > > What is ''1.8.1'' and why is it not ''0.10.0''?That sounds like your ruby version. try ''gem list''. -- ''Ugh, it''s like there''s a party in my mouth and everyone''s throwing up.'' -- Fry Rasputin :: Jack of All Trades - Master of Nuns
According to Ollivier Robert:> Interesting datapoint: HostError is defined only on windows platform so > something is thinking I''m running is although it is a OSX machine (note > that the common part is the "win" in Darwin/windows which is a probelm I''ve > encountered before).I''ve found the source of the problem: I''m using the Ruby module called Sys::Host (ruby-sys-host) to get my own hostname and it seems that since 0.10.0 it is not compatible with some internals of Rails... -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto-0kjVc+YyuDZX+h8frlqCcVAUjnlXr6A1@public.gmane.org Darwin snuadh.freenix.org Kernel Version 7.8.0: Wed Dec 22 14:26:17 PST 2004
eric-O2zf8en5V9XYtjvyW6yDsg@public.gmane.org
2005-Feb-25 00:10 UTC
Re: [0.10.0] Update problem
On Thu, Feb 24, 2005 at 02:08:59PM -0500, John Johnson wrote:> On 24-Feb-2005, at 13:40, eric-O2zf8en5V9XYtjvyW6yDsg@public.gmane.org wrote: > > $ gem install --version ''0.10.0'' rails > > > >It *seems* to work but then I try this: > > > > $ rails --version > > rails 1.8.1 > > > >What is ''1.8.1'' and why is it not ''0.10.0''? > > > That looks like the Ruby version. > > Try this instead: > > gem search rails --local > > On my system it says: > > *** LOCAL GEMS *** > > rails (0.9.4) > Web-application framework with template engine, control-flow layer, > and ORM. > > Regards, > JJOkay, now I see this: $ gem search rails --local *** LOCAL GEMS *** rails (0.10.0, 0.9.4.1) Web-application framework with template engine, control-flow layer, and ORM. Looks like I need to remove 0.9.4.1 ? Eric -- ------------------------------------------------------------------------ # Eric A Lucas | __|__ # "Oh, I have slipped the surly bond | *---oOo---* # of earth and danced the skies on | __|__ __|__ # laughter-silvered wings... | *---oOo---* *---oOo---* # -- John Gillespie Magee Jr. |
On Thu, 24 Feb 2005 19:10:12 -0500, eric-O2zf8en5V9XYtjvyW6yDsg@public.gmane.org <eric-O2zf8en5V9XYtjvyW6yDsg@public.gmane.org> wrote:> On Thu, Feb 24, 2005 at 02:08:59PM -0500, John Johnson wrote: > > On 24-Feb-2005, at 13:40, eric-O2zf8en5V9XYtjvyW6yDsg@public.gmane.org wrote: > > > $ gem install --version ''0.10.0'' rails > > > > > >It *seems* to work but then I try this: > > > > > > $ rails --version > > > rails 1.8.1 > > > > > >What is ''1.8.1'' and why is it not ''0.10.0''? > > > > > That looks like the Ruby version. > > > > Try this instead: > > > > gem search rails --local > > > > On my system it says: > > > > *** LOCAL GEMS *** > > > > rails (0.9.4) > > Web-application framework with template engine, control-flow layer, > > and ORM. > > > > Regards, > > JJ > > Okay, now I see this: > $ gem search rails --local > > *** LOCAL GEMS *** > > rails (0.10.0, 0.9.4.1) > Web-application framework with template engine, control-flow layer, > and ORM. > > Looks like I need to remove 0.9.4.1 ? > > EricNo, there''s no reason to remove old versions (unless you need the disk space or something). You can even specify what version of each rails components you want to use. So keeping old versions of rails around could be useful, in case you don''t want to use the new version(s). Joe