Neo4j - 在服务器上重新启动服务后,找不到图

问题描述 投票:0回答:1

我们必须在服务器上重新启动 Neo4j 服务,因为依赖 Neo4j 的整个软件功能导致了 500 个错误。

因此我们重新启动了服务,我们可以看到 neo4j 重新上线,并且也显示在 Destop 应用程序上。

但是我们现在遇到了这个错误:

production.ERROR: Neo4j errors detected. First one with code "Neo.ClientError.Procedure.ProcedureCallFailed" and message "Failed to invoke procedure `gds.nodeSimilarity.filtered.write`: Caused by: java.util.NoSuchElementException: Graph with name `users` does not exist on database `neo4j`. It might exist on another database." {"exception":"[object] (Laudis\\Neo4j\\Exception\\Neo4jException(code: 0): Neo4j errors detected. First one with code \"Neo.ClientError.Procedure.ProcedureCallFailed\" and message \"Failed to invoke procedure `gds.nodeSimilarity.filtered.write`: Caused by: java.util.NoSuchElementException: Graph with name `users` does not exist on database `neo4j`. It might exist on another database.\" at /var/www/html/XXX/vendor/laudis/neo4j-php-client/src/Exception/Neo4jException.php:50)

刚刚在服务器上重新启动了服务,所以我们预计它会像以前一样。

laravel neo4j
1个回答
0
投票

所以这是一个关于投影图的错误,

users
,在服务器重新启动后不存在用于 GDS 调用,这是预期的。

GDS 投影图仅存在于内存中,并且无法在重新启动后保留。此问题已得到解决,并提供了有关备份以处理这些问题的建议:

https://neo4j.com/docs/graph-data-science/current/management-ops/backup-restore/

在 Neo4j 图形数据科学库中,图形和机器学习模型存储在内存中。这主要是出于性能原因,但缺点是关闭数据库后数据将丢失。已经有一些概念可以规避此限制,例如在写入模式下运行算法、将图形导出到 csv 或存储模型。本节中描述的备份和恢复过程将提供一种简单而统一的方法来保存图形和模型,以便在数据库重新启动后将它们加载回内存中。

© www.soinside.com 2019 - 2024. All rights reserved.