简体   繁体   English

Rails 3.1:ECONNRESET(对等方重置连接

[英]Rails 3.1: ECONNRESET (Connection reset by peer

I am running a Rails 3.1.我正在运行 Rails 3.1。 When I connect to my page (hosted via webrick), I am unable to connect from other computers.当我连接到我的页面(通过 webrick 托管)时,我无法从其他计算机连接。 However, if I connect using localhost:3000, it works.但是,如果我使用 localhost:3000 进行连接,则它可以工作。 This used to work on Rails 3.0 -- using the same router -- but now it doesn't.这曾经在 Rails 3.0 上工作——使用相同的路由器——但现在不行了。 Does anyone know what could be wrong?有谁知道可能有什么问题? Here is the error:这是错误:

Started GET "/" for 192.168.1.102 at 2011-11-16 21:26:06 -0500
  Processing by MainController#index as HTML
Rendered main/index.html.erb within layouts/application (0.9ms)
Completed 200 OK in 12ms (Views: 11.2ms | ActiveRecord: 0.0ms)
[2011-11-16 21:26:06] ERROR Errno::ECONNRESET: Connection reset by peer
    /Users/derek/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:56:in `eof?'
    /Users/derek/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:56:in `run'
    /Users/derek/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'

In my case the issue was because the port 3000 was being blocked by the network where the server was part of.在我的情况下,问题是因为端口 3000 被服务器所在的网络阻止。 Once that block was removed, it works fine.一旦该块被移除,它就可以正常工作。

This error will be generated anytime when the server doesn't want to talk to you, eg.当服务器不想与您交谈时,将随时生成此错误,例如。 because of auth failure or service outage.由于身份验证失败或服务中断。

I got the same error.. when I am trying to upload 40+ MB Video file.当我尝试上传 40+ MB 的视频文件时,我遇到了同样的错误。

Let me know if you get solution of this...如果您得到解决方案,请告诉我...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Errno :: ECONNRESET:对等重置连接 - Errno::ECONNRESET: Connection reset by peer Rails 3.0发送电子邮件错误:Errno :: ECONNRESET(对等连接重置) - Rails 3.0 Sending Email Error: Errno::ECONNRESET (Connection reset by peer) Errno::ECONNRESET:Rails 中的对等方使用 rest-client 重置连接 - Errno::ECONNRESET: Connection reset by peer in Rails using rest-client rails db:migrate导致Errno :: ECONNRESET,在capistrano部署期间由对等方重置连接 - rails db:migrate causing Errno::ECONNRESET, Connection reset by peer during capistrano deployment 无法使用Rails中的Fog将照片上传到S3:同级重置连接(Errno :: ECONNRESET) - Can't upload photos to S3 with Fog in Rails : Connection reset by peer (Errno::ECONNRESET) HTTParty read_nonblock连接由对等Errno :: ECONNRESET重置 - HTTParty read_nonblock connection reset by peer Errno::ECONNRESET nginx,unicorn和rails通过对等错误重置连接 - connection reset by peer error with nginx, unicorn and rails 使用Savon over HTTPS的Rails:对等重置连接 - Rails with Savon over HTTPS: Connection reset by peer Jekyll 错误 Errno::ECONNRESET: 连接由 peer @ io_fillbuf 重置 - fd:17 - Jekyll ERROR Errno::ECONNRESET: Connection reset by peer @ io_fillbuf - fd:17 http 方:`connect':连接由对等方重置 - SSL_connect (Errno::ECONNRESET) - http party: `connect': Connection reset by peer - SSL_connect (Errno::ECONNRESET)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM