I''m trying to upgrade my rails install on Windows XP from 0.13.1 to 0.14.2 and am have a number of problems. Has anyone done this successfully yet? I followed the simple steps found at http://documentation.rubyonrails.com/release_notes/upgrading_from_0131_to_10.html but cannot get things going again. I noticed that "host" has been replaced by "socket" in the database.yml file. How would I set that up to work in Windows? I can''t find any resource that speak to this change. Using the default fails. I tried adding host back, but that hasn''t worked either. This is most likely relate to the database.yml config, but I cannot get webrick started either. I get the following error: => Rails application started on http://0.0.0.0:3000 => Ctrl-C to shutdown server; call with --help for options [2005-10-25 22:36:14] INFO WEBrick 1.3.1 [2005-10-25 22:36:14] INFO ruby 1.8.2 (2004-12-25) [i386-mswin32] [2005-10-25 22:36:14] WARN TCPServer Error: Only one usage of each socket addre ss (protocol/network address/port) is normally permitted. - bind(2) c:/ruby/lib/ruby/1.8/webrick/utils.rb:62:in `initialize'': Only one usage of each socket address (protocol/network address/port) is normally permitted. - bind(2) (Errno::EADDRINUSE) from c:/ruby/lib/ruby/1.8/webrick/utils.rb:62:in `new'' from c:/ruby/lib/ruby/1.8/webrick/utils.rb:62:in `create_listeners'' from c:/ruby/lib/ruby/1.8/webrick/utils.rb:59:in `each'' from c:/ruby/lib/ruby/1.8/webrick/utils.rb:59:in `create_listeners'' from c:/ruby/lib/ruby/1.8/webrick/server.rb:72:in `listen'' from c:/ruby/lib/ruby/1.8/webrick/server.rb:63:in `initialize'' from c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:24:in `initialize'' from c:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/webrick_server.rb:6 1:in `new'' from c:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/webrick_server.rb:6 1:in `dispatch'' from c:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/commands/server.rb: 59 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `re quire__'' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `re quire'' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.2/lib/active_suppo rt/dependencies.rb:213:in `require'' from script/server:3 Any help would be greatly appreciated. --Ryan
I just changed it back to host and it worked for me. I cheated... I copied my old config file :) The webrick issue you''ve got there is the same one I get if I try to run more than one webrick on port 3000.... Or if something else is using port 3000. Dunno if that helps you or not... But I tried :) -bph -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Ryan Wood Sent: Tuesday, October 25, 2005 9:52 PM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: [Rails] 0.14.2 and Windows -- anyone upgraded yet? I''m trying to upgrade my rails install on Windows XP from 0.13.1 to 0.14.2 and am have a number of problems. Has anyone done this successfully yet? I followed the simple steps found at http://documentation.rubyonrails.com/release_notes/upgrading_from_0131_t o_10.html but cannot get things going again. I noticed that "host" has been replaced by "socket" in the database.yml file. How would I set that up to work in Windows? I can''t find any resource that speak to this change. Using the default fails. I tried adding host back, but that hasn''t worked either. This is most likely relate to the database.yml config, but I cannot get webrick started either. I get the following error: => Rails application started on http://0.0.0.0:3000 => Ctrl-C to shutdown server; call with --help for options [2005-10-25 22:36:14] INFO WEBrick 1.3.1 [2005-10-25 22:36:14] INFO ruby 1.8.2 (2004-12-25) [i386-mswin32] [2005-10-25 22:36:14] WARN TCPServer Error: Only one usage of each socket addre ss (protocol/network address/port) is normally permitted. - bind(2) c:/ruby/lib/ruby/1.8/webrick/utils.rb:62:in `initialize'': Only one usage of each socket address (protocol/network address/port) is normally permitted. - bind(2) (Errno::EADDRINUSE) from c:/ruby/lib/ruby/1.8/webrick/utils.rb:62:in `new'' from c:/ruby/lib/ruby/1.8/webrick/utils.rb:62:in `create_listeners'' from c:/ruby/lib/ruby/1.8/webrick/utils.rb:59:in `each'' from c:/ruby/lib/ruby/1.8/webrick/utils.rb:59:in `create_listeners'' from c:/ruby/lib/ruby/1.8/webrick/server.rb:72:in `listen'' from c:/ruby/lib/ruby/1.8/webrick/server.rb:63:in `initialize'' from c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:24:in `initialize'' from c:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/webrick_server.rb:6 1:in `new'' from c:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/webrick_server.rb:6 1:in `dispatch'' from c:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/commands/server.rb: 59 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `re quire__'' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `re quire'' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.2/lib/active_suppo rt/dependencies.rb:213:in `require'' from script/server:3 Any help would be greatly appreciated. --Ryan _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Thanks for the response. I think I worked it out. I was using RadRails which had spawned an instance of webrick in the background that I wasn''t aware of. I simply used the old database.yml as well and it worked. I just think it''s a little odd that the ''host'' option is removed from the default install now with no comments as to why. I think it would be much more helpful to newbie if it was added back even if it is commented out. Just my $0.02. Thanks again! --Ryan On 10/25/05, Hogan, Brian P. <HOGANBP-VnAisaAFmHY@public.gmane.org> wrote:> I just changed it back to host and it worked for me. I cheated... I > copied my old config file :) > > The webrick issue you''ve got there is the same one I get if I try to run > more than one webrick on port 3000.... Or if something else is using > port 3000. > > Dunno if that helps you or not... But I tried :) > > -bph > > > > > -----Original Message----- > From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Ryan Wood > Sent: Tuesday, October 25, 2005 9:52 PM > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: [Rails] 0.14.2 and Windows -- anyone upgraded yet? > > > I''m trying to upgrade my rails install on Windows XP from 0.13.1 to > 0.14.2 and am have a number of problems. Has anyone done this > successfully yet? I followed the simple steps found at > http://documentation.rubyonrails.com/release_notes/upgrading_from_0131_t > o_10.html > but cannot get things going again. > > I noticed that "host" has been replaced by "socket" in the database.yml > file. How would I set that up to work in Windows? I can''t find any > resource that speak to this change. Using the default fails. I tried > adding host back, but that hasn''t worked either. > > This is most likely relate to the database.yml config, but I cannot get > webrick started either. I get the following error: > > => Rails application started on http://0.0.0.0:3000 > => Ctrl-C to shutdown server; call with --help for options [2005-10-25 > 22:36:14] INFO WEBrick 1.3.1 [2005-10-25 22:36:14] INFO ruby 1.8.2 > (2004-12-25) [i386-mswin32] [2005-10-25 22:36:14] WARN TCPServer Error: > Only one usage of each socket addre ss (protocol/network address/port) > is normally permitted. - bind(2) > c:/ruby/lib/ruby/1.8/webrick/utils.rb:62:in `initialize'': Only one usage > of each socket address (protocol/network address/port) is normally > permitted. - bind(2) > (Errno::EADDRINUSE) > from c:/ruby/lib/ruby/1.8/webrick/utils.rb:62:in `new'' > from c:/ruby/lib/ruby/1.8/webrick/utils.rb:62:in > `create_listeners'' > from c:/ruby/lib/ruby/1.8/webrick/utils.rb:59:in `each'' > from c:/ruby/lib/ruby/1.8/webrick/utils.rb:59:in > `create_listeners'' > from c:/ruby/lib/ruby/1.8/webrick/server.rb:72:in `listen'' > from c:/ruby/lib/ruby/1.8/webrick/server.rb:63:in `initialize'' > from c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:24:in > `initialize'' > from > c:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/webrick_server.rb:6 > 1:in `new'' > from > c:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/webrick_server.rb:6 > 1:in `dispatch'' > from > c:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/commands/server.rb: > 59 > from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `re > quire__'' > from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `re > quire'' > from > c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.2/lib/active_suppo > rt/dependencies.rb:213:in `require'' > from script/server:3 > > Any help would be greatly appreciated. > > --Ryan > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Yeah that threw me on Friday of last week. I was teaching a student about Rails and we had just opened up the file.... Boy was I shocked. :) -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Ryan Wood Sent: Tuesday, October 25, 2005 11:03 PM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails] 0.14.2 and Windows -- anyone upgraded yet? Thanks for the response. I think I worked it out. I was using RadRails which had spawned an instance of webrick in the background that I wasn''t aware of. I simply used the old database.yml as well and it worked. I just think it''s a little odd that the ''host'' option is removed from the default install now with no comments as to why. I think it would be much more helpful to newbie if it was added back even if it is commented out. Just my $0.02. Thanks again! --Ryan On 10/25/05, Hogan, Brian P. <HOGANBP-VnAisaAFmHY@public.gmane.org> wrote:> I just changed it back to host and it worked for me. I cheated... I > copied my old config file :) > > The webrick issue you''ve got there is the same one I get if I try to > run more than one webrick on port 3000.... Or if something else is > using port 3000. > > Dunno if that helps you or not... But I tried :) > > -bph > > > > > -----Original Message----- > From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Ryan Wood > Sent: Tuesday, October 25, 2005 9:52 PM > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: [Rails] 0.14.2 and Windows -- anyone upgraded yet? > > > I''m trying to upgrade my rails install on Windows XP from 0.13.1 to > 0.14.2 and am have a number of problems. Has anyone done this > successfully yet? I followed the simple steps found at > http://documentation.rubyonrails.com/release_notes/upgrading_from_0131 > _t > o_10.html > but cannot get things going again. > > I noticed that "host" has been replaced by "socket" in the > database.yml file. How would I set that up to work in Windows? I can''t> find any resource that speak to this change. Using the default fails. > I tried adding host back, but that hasn''t worked either. > > This is most likely relate to the database.yml config, but I cannot > get webrick started either. I get the following error: > > => Rails application started on http://0.0.0.0:3000 > => Ctrl-C to shutdown server; call with --help for options [2005-10-25> 22:36:14] INFO WEBrick 1.3.1 [2005-10-25 22:36:14] INFO ruby 1.8.2 > (2004-12-25) [i386-mswin32] [2005-10-25 22:36:14] WARN TCPServer > Error: Only one usage of each socket addre ss (protocol/network > address/port) is normally permitted. - bind(2) > c:/ruby/lib/ruby/1.8/webrick/utils.rb:62:in `initialize'': Only one > usage of each socket address (protocol/network address/port) is > normally permitted. - bind(2) > (Errno::EADDRINUSE) > from c:/ruby/lib/ruby/1.8/webrick/utils.rb:62:in `new'' > from c:/ruby/lib/ruby/1.8/webrick/utils.rb:62:in > `create_listeners'' > from c:/ruby/lib/ruby/1.8/webrick/utils.rb:59:in `each'' > from c:/ruby/lib/ruby/1.8/webrick/utils.rb:59:in > `create_listeners'' > from c:/ruby/lib/ruby/1.8/webrick/server.rb:72:in `listen'' > from c:/ruby/lib/ruby/1.8/webrick/server.rb:63:in `initialize'' > from c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:24:in > `initialize'' > from > c:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/webrick_server.rb:6 > 1:in `new'' > from > c:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/webrick_server.rb:6 > 1:in `dispatch'' > from > c:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/commands/server.rb: > 59 > from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `re > quire__'' > from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `re > quire'' > from > c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.2/lib/active_suppo > rt/dependencies.rb:213:in `require'' > from script/server:3 > > Any help would be greatly appreciated. > > --Ryan > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails