ERROR变量Errno :: ECONNRESET:通过对
gem 'rails', '3.0.0'
gem 'devise'
gem 'bson_ext', '>= 1.0.7'
gem 'bson', '>= 1.0.7'
gem 'mongo_mapper', :branch => 'rails3', :git => 'http://github.com/jnunemaker/mongomapper.git'
gem 'devise-mongo_mapper', :git => 'git://github.com/collectiveidea/devise-mongo_mapper'
连接复位使用上述设置,我得到的请求以下错误:ERROR变量Errno :: ECONNRESET:通过对
Started GET "https://stackoverflow.com/users/sign_out" for 127.0.0.1 at 2010-09-27 13:16:30 +0300
Processing by Devise::SessionsController#destroy as HTML
Redirected to http://localhost:3000/
Completed 302 Found in 19ms
[2010-09-27 13:16:31] ERROR Errno::ECONNRESET: Connection reset by peer
/usr/local/ruby/lib/ruby/1.9.1/webrick/httpserver.rb:56:in `eof?'
/usr/local/ruby/lib/ruby/1.9.1/webrick/httpserver.rb:56:in `run'
/usr/local/ruby/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
Started GET "https://stackoverflow.com/users/edit" for 127.0.0.1 at 2010-09-27 13:16:35 +0300
Processing by Devise::RegistrationsController#edit as HTML
Completed in 16ms
[2010-09-27 13:16:35] ERROR Errno::ECONNRESET: Connection reset by peer
/usr/local/ruby/lib/ruby/1.9.1/webrick/httpserver.rb:56:in `eof?'
/usr/local/ruby/lib/ruby/1.9.1/webrick/httpserver.rb:56:in `run'
/usr/local/ruby/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
用户模型:
class User
include MongoMapper::Document
plugin MongoMapper::Devise
devise :registerable, :database_authenticatable, :recoverable
end
想法?
我快速的猜测是,这看起来像你有你的会话和protect_from_forgery在踢一个问题。
我有一个类似的问题,砸了我的头靠在墙上几天,它竟然是我将整个对象分配给会话对象,而不仅仅是id。简要说明,非GET请求是触发protect_from_forgery的请求。
我刚将一个应用程序从OpenShift 2迁移到OpenShift 3,现在我得到了这个。我怀疑这个问题可能是你描述的问题,但是我的'session [:...]'作业看起来很好。它可能是我可以'grep'的其他任何东西吗? – user569825 2017-10-04 08:51:45
WebRick已被替换为Thin。
执行以下工作对我来说
的Gemfile:
宝石 '薄'
捆绑安装
的WEBrick已被替换为薄。
执行以下工作对我来说
的Gemfile:
gem 'thin'
bundle install
该选项还参与了我的项目
这是大约一年前的前一篇文章的重复内容,请考虑删除或添加新内容以避免downvotes。 – jasonleonhard 2016-02-29 18:42:31
添加这个固定的问题,我development.rb文件。
config.assets.raise_runtime_errors =真
config.web_console.whitelisted_ips = replace_this_with_the_public_ip
的观点是什么?它是标准设计视图还是您定制了它? – Josh 2011-12-12 03:36:28