Neo4j - 连接重置过多 - 来自 Rails 控制台上的 Ruby
Neo4j - too many connections resets - from Ruby on Rails console
这里只有一个连接和用户。
d = l.descriptions.first
Language#descriptions 1200270ms MATCH language137, language137-[rel1:`DESCRIBED_IN`]->(result_descriptions:`Description`) WHERE (ID(language137) = {ID_language137}) RETURN result_descriptions | {:ID_language137=>137}
Faraday::TimeoutError: too many connection resets (due to Net::ReadTimeout - Net::ReadTimeout) after 0 requests on 70156828873380, last used 1438628883.105085 seconds ago
之后,在服务器重新启动之前不允许其他连接。
这里有什么问题?
这里更详细地说明了我正在尝试做的事情:选择一种语言,即英语。获取英文描述的数量。搜索第一个英文描述。这从不 returns 或传递连接错误。在最后一个的长 运行 期间,没有其他连接可以打开到数据库。
irb(main):001:0> l = Language.find_by(iso_639_2_code: 'eng')
CYPHER 316ms MATCH (n:`Language`) WHERE (n.iso_639_2_code = {n_iso_639_2_code}) RETURN n LIMIT {limit_1} | {:n_iso_639_2_code=>"eng", :limit_1=>1}
=> #<Language uuid: nil, english_name_of_language: "English", french_name_of_language: "anglais", german_name_of_language: "Englisch", iso_639_1_code: "en", iso_639_2_code: "eng", spoken_in: "English, a West Germanic language is the first language for about 309–400 million people. See: Countries by Languages - English Speaking Countries.">
irb(main):002:0>
irb(main):005:0* n = l.descriptions.count
Language#descriptions 17749ms MATCH language137, language137-[rel1:`DESCRIBED_IN`]->(result_descriptions:`Description`) WHERE (ID(language137) = {ID_language137}) RETURN count(result_descriptions) AS result_descriptions | {:ID_language137=>137}
=> 2107041
irb(main):006:0> d = l.descriptions.first
我认为我们修复了这是 gem 的 5.0 版。你能试试升级吗?
该问题已移至 neo4jrb git 存储库并由 neo4j 维护者解决,建议从 5.0.9
升级到 gem 核心版本 5.0.11
如果您的 Neo4j 数据库服务器变得无响应,您可能会看到此错误。要解决此问题,请重新启动 Neo4j 数据库服务器。
bundle exec rake neo4j:stop
bundle exec rake neo4j:start
这里只有一个连接和用户。
d = l.descriptions.first
Language#descriptions 1200270ms MATCH language137, language137-[rel1:`DESCRIBED_IN`]->(result_descriptions:`Description`) WHERE (ID(language137) = {ID_language137}) RETURN result_descriptions | {:ID_language137=>137}
Faraday::TimeoutError: too many connection resets (due to Net::ReadTimeout - Net::ReadTimeout) after 0 requests on 70156828873380, last used 1438628883.105085 seconds ago
之后,在服务器重新启动之前不允许其他连接。 这里有什么问题?
这里更详细地说明了我正在尝试做的事情:选择一种语言,即英语。获取英文描述的数量。搜索第一个英文描述。这从不 returns 或传递连接错误。在最后一个的长 运行 期间,没有其他连接可以打开到数据库。
irb(main):001:0> l = Language.find_by(iso_639_2_code: 'eng')
CYPHER 316ms MATCH (n:`Language`) WHERE (n.iso_639_2_code = {n_iso_639_2_code}) RETURN n LIMIT {limit_1} | {:n_iso_639_2_code=>"eng", :limit_1=>1}
=> #<Language uuid: nil, english_name_of_language: "English", french_name_of_language: "anglais", german_name_of_language: "Englisch", iso_639_1_code: "en", iso_639_2_code: "eng", spoken_in: "English, a West Germanic language is the first language for about 309–400 million people. See: Countries by Languages - English Speaking Countries.">
irb(main):002:0>
irb(main):005:0* n = l.descriptions.count
Language#descriptions 17749ms MATCH language137, language137-[rel1:`DESCRIBED_IN`]->(result_descriptions:`Description`) WHERE (ID(language137) = {ID_language137}) RETURN count(result_descriptions) AS result_descriptions | {:ID_language137=>137}
=> 2107041
irb(main):006:0> d = l.descriptions.first
我认为我们修复了这是 gem 的 5.0 版。你能试试升级吗?
该问题已移至 neo4jrb git 存储库并由 neo4j 维护者解决,建议从 5.0.9
升级到 gem 核心版本 5.0.11如果您的 Neo4j 数据库服务器变得无响应,您可能会看到此错误。要解决此问题,请重新启动 Neo4j 数据库服务器。
bundle exec rake neo4j:stop
bundle exec rake neo4j:start