gpt4 book ai didi

Neo4j 服务不会在 Debian 上以导入的数据库启动

转载 作者:行者123 更新时间:2023-12-02 03:24:30 27 4
gpt4 key购买 nike

我最近在我的 Debian 7.8 安装中使用了 neo4j。太棒了!

今天我使用 neo4j-import 工具导入了大约 100000 个节点和 150000 个关系。我停止了 neo4j 服务并将导入的数据库复制到/var/lib/neo4j/data/graph.db - 但现在 Neo4j 服务无法启动

Starting Neo4j Server...WARNING: not changing user
process [4963]... waiting for server to be ready....... Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.

这很奇怪,因为它不会等待 120 秒来启动 - 最多 5 秒。唯一产生的日志是/var/log/neo4j 中的 console.log

2015-07-01 00:10:24.363+0000 INFO  [API] Setting startup timeout to: 120000ms based on 120000
2015-07-01 00:10:26.501+0000 INFO [API] Successfully shutdown Neo4j Server.

这不是很有用。当我删除数据库时,neo4j 能够启动。我将 graph.db 复制到我的 Windows 安装中,它运行良好,我可以搜索节点等,所以它可能与我的 Debian 上的配置有关?我在/etc/neo4j/neo4j-server.properties 添加了一行

 org.neo4j.server.startup_timeout=0

但这并没有改变,服务启动仍然在几秒后超时。有什么想法吗?

这是 graph.db messages.log - 当我尝试启动服务时没有附加任何内容

2015-07-01 01:58:12.142+0000 INFO  [org.neo4j]: Import starting
2015-07-01 01:58:12.282+0000 INFO [org.neo4j]: Creating new db @ /var/www/ddl/scripts/./graph.db/neostore
2015-07-01 01:58:13.238+0000 INFO [org.neo4j]: Missing counts store, rebuilding it.
2015-07-01 01:58:13.607+0000 INFO [org.neo4j]: No lucene scan store index found, this might just be first use. Preparing to rebuild.
2015-07-01 01:58:13.663+0000 INFO [org.neo4j]: No lucene scan store index found, this might just be first use. Preparing to rebuild.
2015-07-01 01:58:13.952+0000 INFO [org.neo4j]: Rebuilding lucene scan store, this may take a while
2015-07-01 01:58:13.955+0000 INFO [org.neo4j]: Lucene scan store rebuilt (roughly -1 nodes)
2015-07-01 01:58:30.337+0000 INFO [org.neo4j]: IMPORT DONE in 18s 182ms. Imported:
95941 nodes
158227 relationships
369482 properties
2015-07-01 01:58:30.341+0000 INFO [org.neo4j]: About to rotate counts store at transaction 1 to [/var/www/ddl/scripts/./graph.db/neostore.counts.db.b], from [/var/www/ddl/scripts/./graph.db/neostore.counts.db.a].
2015-07-01 01:58:30.344+0000 INFO [org.neo4j]: Successfully rotated counts store at transaction 1 to [/var/www/ddl/scripts/./graph.db/neostore.counts.db.b], from [/var/www/ddl/scripts/./graph.db/neostore.counts.db.a].

最佳答案

事实证明,我需要做的是确保我的权限是正确的。我用

修复了它
chown -r Neo4j:adm graph.db

现在似乎一切正常。我认为如果 Neo4j 无法访问 graph.db,它应该会发出某种警告。现在它只是退出而没有任何日志

关于Neo4j 服务不会在 Debian 上以导入的数据库启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31150716/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com