English 中文(简体)
铁路服务器
原标题:Rails server doesn t respond

视窗7号机器上的铁路3.07号——在周末经过升级至Ruby 1.9.2,但后来又陷入问题,从那时起又回到1.8.7。 在恢复我对地段的跟踪和重新安装后,申请最终用铁路发射:

=> Booting WEBrick
=> Rails 3.0.7 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2011-08-15 14:05:28] INFO  WEBrick 1.3.1
[2011-08-15 14:05:28] INFO  ruby 1.8.7 (2011-02-18) [i386-mingw32]
[2011-08-15 14:05:28] INFO  WEBrick::HTTPServer#start: pid=3692 port=3000

但我无法进入该网站。 浏览器只是坐在“为当地东道方开车”的地方,铁路绝对没有任何产出。 我对甚至如何调查这一问题或可能产生什么问题感到失望? 只要我能够告诉我,我的我的我的SQL就正在运行。 事实上,我甚至能够成功地通过铁路网发射和使用奥果,但WEBrick拒绝向我提供任何网页。 我是否应当研究任何标志? 或者,任何人都知道什么可能产生类似的行为?

我所发现的唯一错误是,我关闭了服务器,因此,我可以告诉它们是否相关,但这里我收到的是:

`[2011-08-15 13:59:24] ERROR Errno::ECONNABORTED: An established connection was aborted by the software in your host machine.
        C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/httpresponse.rb:324:in`write 
        C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/httpresponse.rb:324:in`<< 
        C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/httpresponse.rb:324:in`_write_data 
        C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/httpresponse.rb:180:in`send_header 
        C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/httpresponse.rb:103:in`send_response 
        C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/httpserver.rb:79:in `run 
        C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:173:in `start_thread 
        C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:162:in `start 
        C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:162:in `start_thread 
        C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:95:in `start 
        C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:92:in `each 
        C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:92:in `start 
        C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:23:in `start 
        C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:82:in `start 
        C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rack-1.2.3/lib/rack/handler/webrick.rb:13:in `run 
        C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rack-1.2.3/lib/rack/server.rb:217:in `start 
        C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/commands/server.rb:65:in `start 
        C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/commands.rb:30
        C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/commands.rb:27:in `tap 
        C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/commands.rb:27
        script/rails:6:in `require 
        script/rails:6
        C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/whiny_nil.rb:48:in `method_missing : undefined method `shutdown  for nil:NilClass (NoMethodError)
        from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rack-1.2.3/lib/rack/handler/webrick.rb:17:in `shutdown 
        from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rack-1.2.3/lib/rack/server.rb:211:in `start 
        from C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:113:in `call 
        from C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:113:in `join 
        from C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:113:in `start 
        from C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:113:in `each 
        from C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:113:in `start 
        from C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:23:in `start 
        from C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:82:in `start 
        from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rack-1.2.3/lib/rack/handler/webrick.rb:13:in `run 
        from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rack-1.2.3/lib/rack/server.rb:217:in `start 
        from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/commands/server.rb:65:in `start 
        from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/commands.rb:30
        from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/commands.rb:27:in `tap 
        from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/commands.rb:27
        from script/rails:6:in `require 
        from script/rails:6`

甚至找不到任何其他东西。 只有我可能担心的是,在周末进行[预定的]升级过程中,我确实做了“Windows Update”和收集了十几个或两个新的“Windows pad”,但很难想象会造成这种情况?

其他环境信息(就我所知,自升级前没有任何变化):

D:devsrcsoletronSitessoletronspree>gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.5
  - RUBY VERSION: 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32]
  - INSTALLATION DIRECTORY: C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8
  - RUBY EXECUTABLE: C:/RailsInstaller/Ruby1.8.7/bin/ruby.exe
  - EXECUTABLE DIRECTORY: C:/RailsInstaller/Ruby1.8.7/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-mingw32
  - GEM PATHS:
     - C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8
     - C:/Users/aslepak/.gem/ruby/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/

D:devsrcsoletronSitessoletronspree>rails -v
Rails 3.0.7

D:devsrcsoletronSitessoletronspree>bundle list
Gems included by the bundle:
  * abstract (1.0.0)
  * actionmailer (3.0.7)
  * actionpack (3.0.7)
  * activemerchant (1.14.0)
  * activemodel (3.0.7)
  * activerecord (3.0.7)
  * activeresource (3.0.7)
  * activesupport (3.0.7)
  * acts_as_list (0.1.2)
  * addressable (2.2.6)
  * arel (2.0.10)
  * aws-s3 (0.6.2)
  * bcrypt-ruby (2.1.4)
  * braintree (2.10.2)
  * builder (2.1.2)
  * bundler (1.0.17)
  * cancan (1.6.4)
  * crack (0.1.8)
  * deface (0.5.2a 21574e8)
  * devise (1.3.3)
  * erubis (2.6.6)
  * evernote (1.1.0)
  * faker (0.9.5)
  * faraday (0.6.1)
  * fgraph (0.6.1)
  * heroku (2.4.1)
  * highline (1.5.1)
  * httparty (0.7.8)
  * i18n (0.5.0)
  * jquery-rails (0.2.6)
  * koala (1.1.0)
  * launchy (2.0.5)
  * mail (2.2.19)
  * meta_search (1.0.5)
  * mime-types (1.16)
  * multi_json (1.0.3)
  * multi_xml (0.2.2)
  * multipart-post (1.1.3)
  * mysql2 (0.2.6)
  * nested_set (1.6.4)
  * nokogiri (1.5.0)
  * oa-core (0.2.6)
  * oa-oauth (0.2.6)
  * oauth (0.4.5)
  * oauth2 (0.4.1)
  * orm_adapter (0.0.5)
  * paperclip (2.3.8)
  * polyglot (0.3.2)
  * rack (1.2.3)
  * rack-mount (0.6.14)
  * rack-test (0.5.7)
  * rails (3.0.7)
  * railties (3.0.7)
  * rake (0.9.2)
  * rd_find_by_param (0.1.1)
  * rd_resource_controller (1.0.1)
  * rd_unobtrusive_date_picker (0.1.0)
  * rest-client (1.6.3)
  * sequel (3.20.0)
  * sinatra (1.0)
  * spree (0.60.0)
  * spree_api (0.60.0)
  * spree_auth (0.60.0)
  * spree_core (0.60.0)
  * spree_dash (0.60.0)
  * spree_heroku (1.1.0 0471de9)
  * spree_promo (0.60.0)
  * spree_sample (0.60.0)
  * spree_social (1.1)
  * sqlite3 (1.3.4)
  * sqlite3-ruby (1.3.3)
  * state_machine (0.9.4)
  * stringex (1.0.3)
  * taps (0.3.23)
  * term-ansicolor (1.0.6)
  * thor (0.14.6)
  * thrift (0.6.0)
  * thrift_client (0.6.3)
  * treetop (1.4.10)
  * tzinfo (0.3.29)
  * warden (1.0.5)
  * will_paginate (3.0.pre2)
  * xml-simple (1.1.0)
问题回答

暂无回答




相关问题
rails collection_select vs. select

collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

Auth-code with A-Za-z0-9 to use in an URL parameter

As part of a web application I need an auth-code to pass as a URL parameter. I am currently using (in Rails) : Digest::SHA1.hexdigest((object_id + rand(255)).to_s) Which provides long strings like : ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

activerecord has_many :through find with one sql call

I have a these 3 models: class User < ActiveRecord::Base has_many :permissions, :dependent => :destroy has_many :roles, :through => :permissions end class Permission < ActiveRecord::...

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

Text Editor for Ruby-on-Rails

guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...

How to get SQL queries for each user where env is production

I’m developing an application dedicated to generate statistical reports, I would like that user after saving their stat report they save sql queries too. To do that I wrote the following module: ...

热门标签